API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JHTMLImage::administrator | ( | $ | file, |
$ | directory = '/images/' , |
||
$ | param = NULL , |
||
$ | param_directory = '/images/' , |
||
$ | alt = NULL , |
||
$ | attribs = null , |
||
$ | type = 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 | The file name, eg foobar.png |
string | The path to the image |
int | empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder |
string | Another path. Only used for the contact us form based on the value of the imagelist parm |
string | Alt text |
array | An associative array of attributes to add |
boolean | True (default) to display full tag, false to return just the path |
Références $file, $image, $mainframe, $type, JURI::base(), et JArrayHelper::toString().
JHTMLImage::site | ( | $ | file, |
$ | folder = '/images/M_images/' , |
||
$ | altFile = NULL , |
||
$ | altFolder = '/images/M_images/' , |
||
$ | alt = NULL , |
||
$ | attribs = null , |
||
$ | 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 | The file name, eg foobar.png |
string | The path to the image |
int | empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder |
string | Another path. Only used for the contact us form based on the value of the imagelist parm |
string | Alt text |
array | An associative array of attributes to add |
boolean | True (default) to display full tag, false to return just the path |
Références $file, $folder, $mainframe, $path, JURI::base(), et JArrayHelper::toString().