SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 272 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

There are two image
types, image.administrator and image.site.
We will look at image.site, in order to demonstrate how it works. This is an
example of how to use it with an image named edit.png:
echo JHTML::_('image.site', 'edit.png');
This will output an image tag for the image named edit.png. The image will
be located in the currently selected template images sub-folder. If there isn't an
image in that folder named edit.png, the image will be located in the folder
/images/M_images.
Rendering Output
[ 204 ]
We can change these directories using the $directory and $param_directory
parameters.
Administrator
Get an image tag for a backend image.
Parameters file Name of the image file
[directory] Default directory; default is images
[param]
Overriding image file name; intended for use with
JParameter
[param_directory] Overriding directory; default is images
[alt] Alternative text
[name] Deprecated
[type]
Get image tag or image location; default is true
(get image tag)
[align]
Image-tag alignment attribute value; default is
middle
Returns Image tag or image location
Site
Get an image tag for a frontend image.


Pages:
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6