class JHtmlImage


Located at : UKNOWVA_ROOT/libraries/joomla/html/html/image.php

Utility class working with images.

Methods

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) deprecated

Checks to see if an image exists in the current templates image directory.

static string
administrator(string $file, string $folder = '/images/', integer $altFile = null, string $altFolder = '/images/', string $alt = null, array $attribs = null, boolean $asTag = true) deprecated

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.

Details

at line 41
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) deprecated

deprecated 12.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.

Parameters

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.

Return Value

string The value for the src or if $asTag is true, the full img html.

at line 117
static string administrator(string $file, string $folder = '/images/', integer $altFile = null, string $altFolder = '/images/', string $alt = null, array $attribs = null, boolean $asTag = true) deprecated

deprecated 12.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

Parameters

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.

Return Value

string The src or the full img tag if $asTag is true.