mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Fix link bug in html_image function, also make output XHTML compatible
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
|||||||
|
- fix link functionality of html_image, also make
|
||||||
|
output XHTML compatible (Hinrich Donner, Monte)
|
||||||
- append "@" to default modifier vars/args
|
- append "@" to default modifier vars/args
|
||||||
supress possible warnings (Monte)
|
supress possible warnings (Monte)
|
||||||
- fix problem with escaped double quotes (Monte)
|
- fix problem with escaped double quotes (Monte)
|
||||||
|
@@ -56,7 +56,7 @@ function smarty_function_html_image($params, &$smarty)
|
|||||||
$width = $_val;
|
$width = $_val;
|
||||||
break;
|
break;
|
||||||
case 'link':
|
case 'link':
|
||||||
$prefix = '<a href="' . $link . '">';
|
$prefix = '<a href="' . $_val . '">';
|
||||||
$suffix = '</a>';
|
$suffix = '</a>';
|
||||||
break;
|
break;
|
||||||
case 'dpi':
|
case 'dpi':
|
||||||
@@ -112,7 +112,7 @@ function smarty_function_html_image($params, &$smarty)
|
|||||||
$height = round($height * $_resize);
|
$height = round($height * $_resize);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $prefix . '<img src="'.$file.'" border="'.$border.'" width="'.$width.'" height="'.$height.'"'.$extra.'>' . $suffix;
|
return $prefix . '<img src="'.$file.'" border="'.$border.'" width="'.$width.'" height="'.$height.'"'.$extra.' />' . $suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set expandtab: */
|
/* vim: set expandtab: */
|
||||||
|
Reference in New Issue
Block a user