This is the discussion topic for the Image Tools extension.
Visit http://extensions.pivotx.net/entry/30/imagetools for more info or download.
if ((!empty($params['w'])) && (!empty($params['h']))) {
$img = sprintf("<img src=\"%s\" alt=\"%s\" width=\"%s\" height=\"%s\"%s />",
$url,
htmlentities($title, ENT_QUOTES),
$params['w'],
$params['h'],
$class
);
} else {
$img = sprintf("<img src=\"%s\" alt=\"%s\"%s />",
$url,
htmlentities($title, ENT_QUOTES),
$class
);
}
$title = basename($params['src']);
if (empty($title)) {
$info = pathinfo($params['src']);
$glue = array('_', '-');
$title = ucwords(str_replace($glue, ' ', basename($params['src'],'.'.$info['extension'])));
}
Users browsing this forum: No registered users and 2 guests