Source code for file /pattemplate/patTemplate/Function/Img.php
Documentation is available at Img.php
* patTemplate function that returns a complete imagetag and
* width and height are extracted from the image
* $Id: Img.php 47 2005-09-15 02:55:27Z rhuk $
// Check to ensure this file is within the rest of the framework
* patTemplate function that returns a complete imagetag and
* width and height are extracted from the image
* $Id: Img.php 47 2005-09-15 02:55:27Z rhuk $
* @param array parameters of the function (= attributes of the tag)
* @param string content of the tag
* @return string content to insert into the template
function call ($params, $content)
$src=
$params['src'] ?
$params['src'] :
$content;
foreach ($params as $key =>
$value){
$imgstr=
sprintf('<img %s/>', $tags);