X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Fimage.tpl;h=7a7a80d901f2c920cab88700c14a4196643542f7;hp=d9d4fbaa1c4ca125d11da7f6467b1c8a8458b32a;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=efb5bde84d7323fd3699e54cdd8a65080a37db5a diff --git a/templates/default/image.tpl b/templates/default/image.tpl index d9d4fbaa..7a7a80d9 100644 --- a/templates/default/image.tpl +++ b/templates/default/image.tpl @@ -7,6 +7,7 @@ * * The following variables are available in this template: * + $src - the image source path + * + $id - ID name (optional; may not be present) * + $class - CSS class name (optional; may not be present) * + $alt - alternative link text * (optional; may not be present) @@ -25,8 +26,17 @@ * + $vspace - the image's vspace attribute value * (optional; may not be present) * + $onclick - onClick JavaScript handler (optional; may not be present) + * + $text_alternative - A text replacement for the entire + * image tag, if for some reason the + * image tag cannot or should not be + * produced (optional; may not be present) + * + $aAttribs - Any extra attributes: an associative array, where + * keys are attribute names, and values (which are + * optional and might be null) should be placed + * in double quotes as attribute values (optional; + * may not be present) * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright 1999-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -39,4 +49,21 @@ extract($t); -?> /> +echo '' . $alt . ' $value) { + echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"'); +} +echo ' />'; + +