JHTMLImage
Utility class working with images
Located in /joomla/html/html/image.php (line 26)
JHTMLImage (Subpackage HTML)
void
administrator
(string $file, [string $directory = '/images/'], [int $param = NULL], [string $param_directory = '/images/'], [string $alt = NULL], [array $attribs = null], [boolean $type = 1])
void
site
(string $file, [string $folder = '/images/M_images/'], [int $altFile = NULL], [string $altFolder = '/images/M_images/'], [string $alt = NULL], [array $attribs = null], [boolean $asTag = 1])
Checks to see if an image exists in the current templates image directory if it does it loads this image. Otherwise the default image is loaded.
Also can be used in conjunction with the menulist param to create the chosen image load the default or use no image
- string $file: The file name, eg foobar.png
- string $directory: The path to the image
- int $param: empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder
- string $param_directory: Another path. Only used for the contact us form based on the value of the imagelist parm
- string $alt: Alt text
- array $attribs: An associative array of attributes to add
- boolean $type: True (default) to display full tag, false to return just the path
Checks to see if an image exists in the current templates image directory if it does it loads this image. Otherwise the default image is loaded.
Also can be used in conjunction with the menulist param to create the chosen image load the default or use no image
- string $file: The file name, eg foobar.png
- string $folder: The path to the image
- int $altFile: empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder
- string $altFolder: Another path. Only used for the contact us form based on the value of the imagelist parm
- string $alt: Alt text
- array $attribs: An associative array of attributes to add
- boolean $asTag: True (default) to display full tag, false to return just the path




JHTMLImage (Subpackage HTML)