cvs: smarty /libs/plugins function.html_image.php
"Monte Ohrt" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmohrt1107283905@cvsserver> |
mohrt Tue Feb 1 13:51:45 2005 EDT
Modified files:
/smarty/libs/plugins function.html_image.php
Log:
remove border tag
http://cvs.php.net/diff.php/smarty/libs/plugins/function.html_image.php?r1=1.32&r2=1.33&ty=u
Index: smarty/libs/plugins/function.html_image.php
diff -u smarty/libs/plugins/function.html_image.php:1.32 smarty/libs/plugins/function.html_image.php:1.33
--- smarty/libs/plugins/function.html_image.php:1.32 Fri Jan 21 12:46:15 2005
+++ smarty/libs/plugins/function.html_image.php Tue Feb 1 13:51:42 2005
@@ -15,14 +15,13 @@
* Purpose: format HTML tags for the image<br>
* Input:<br>
* - file = file (and path) of image (required)
- * - border = border width (optional, default 0)
* - height = image height (optional, default actual height)
* - image =image width (optional, default actual width)
* - basedir = base directory for absolute paths, default
* is environment variable DOCUMENT_ROOT
*
* Examples: {html_image file="images/masthead.gif"}
- * Output: <img src="images/masthead.gif" border=0 width=400 height=23>
+ * Output: <img src="images/masthead.gif" width=400 height=23>
* @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image}
* (Smarty online manual)
* @author Monte Ohrt <monte at ohrt dot com>
@@ -40,7 +39,6 @@
$alt = '';
$file = '';
- $border = 0;
$height = '';
$width = '';
$extra = '';
@@ -51,7 +49,6 @@
foreach($params as $_key => $_val) {
switch($_key) {
case 'file':
- case 'border':
case 'height':
case 'width':
case 'dpi':
@@ -134,7 +131,7 @@
$height = round($height * $_resize);
}
- return $prefix . '<img src="'.$file.'" alt="'.$alt.'" border="'.$border.'" width="'.$width.'" height="'.$height.'"'.$extra.' />' . $suffix;
+ return $prefix . '<img src="'.$file.'" alt="'.$alt.'" width="'.$width.'" height="'.$height.'"'.$extra.' />' . $suffix;
}
/* vim: set expandtab: */
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php