Display an image fitting into the desired dimension
It expects the file existing in one of the directories ./files
(the constant FILE
)
and ./images
(the constant IMAGE
)
This function has dependency on file_helper. If there is no file_helper found,
the arguments $dimension
and $attributes
will be ignored.
Parameters | |||
---|---|---|---|
string
|
$file |
The image file name with path excluding the base directory name (FILE or IMAGE) without leading slash. |
# |
string
|
$caption = '' |
The image caption |
# |
string
|
$dimension = '0x0' |
The desired dimension in "widthxheight" |
# |
array
|
$attributes = [] |
The HTML attributes in array like key => value |
# |
Returns | |
---|---|
void
|