Function _image
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.
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/utility_helper.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/utility_helper.php
string |
$file |
<p>The image file name with path excluding the base directory name (FILE or IMAGE) without leading slash.</p> |
string |
$caption = '' |
The image caption |
string |
$dimension = '0x0' |
The desired dimension in "widthxheight" |
array |
$attributes = array() |
The HTML attributes in array like key => value |