From edcf2aee05d0bdfea4a4964f5715a6afb352aa6c Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 26 Feb 2003 17:27:56 +0000 Subject: [PATCH] add link parameter --- libs/plugins/function.html_image.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php index 081ddfd7..cc16a57e 100644 --- a/libs/plugins/function.html_image.php +++ b/libs/plugins/function.html_image.php @@ -28,6 +28,8 @@ function smarty_function_html_image($params, &$smarty) $height = ''; $width = ''; $extra = ''; + $prefix = ''; + $suffix = ''; $basedir = isset($GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']) ? $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'] : '/'; @@ -45,6 +47,10 @@ function smarty_function_html_image($params, &$smarty) case 'width': $width = $_val; break; + case 'link': + $prefix = ''; + $suffix = ''; + break; default: $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; break; @@ -77,7 +83,7 @@ function smarty_function_html_image($params, &$smarty) $smarty->trigger_error("html_image: '$_image_path' is not a valid image file", E_USER_ERROR); } - return ""; + return $prefix . "" . $suffix; } /* vim: set expandtab: */