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
static
string
administrator
(string $file, [string $folder = '/images/'], [integer $altFile = null], [string $altFolder = '/images/'], [string $alt = null], [array $attribs = null], [boolean $asTag = true])
-
string
$file: The file name, eg foobar.png.
-
string
$folder: The path to the image.
-
integer
$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 param.
-
string
$alt: Alternative text.
-
array
$attribs: An associative array of attributes to add.
-
boolean
$asTag: 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.
static
string
site
(string $file, [string $folder = '/images/system/'], [integer $altFile = null], [string $altFolder = '/images/system/'], [string $alt = null], [array $attribs = null], [boolean $asTag = true])
-
string
$file: The file name, eg foobar.png.
-
string
$folder: The path to the image.
-
integer
$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 param.
-
string
$alt: Alternative text.
-
array
$attribs: An associative array of attributes to add.
-
boolean
$asTag: True (default) to display full tag, false to return just the path.