X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Fhyperlink.tpl;h=e62807f1f43443fc9fd8b59ef0f50d08e3055fd6;hp=50f83888b55f66263fb496e660bd0f6d20cd2a91;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=fdc515fddcbb4b1e4dcedc07614822e511a3bf54 diff --git a/templates/default/hyperlink.tpl b/templates/default/hyperlink.tpl index 50f83888..e62807f1 100644 --- a/templates/default/hyperlink.tpl +++ b/templates/default/hyperlink.tpl @@ -6,14 +6,21 @@ * Template for constructing a hyperlink. * * The following variables are available in this template: - * + $uri - the target link location - * + $text - link text - * + $target - the location where the link should be opened - * (optional; may not be present) - * + $onclick - onClick JavaScript handler (optional; may not be present) - * + $class - CSS class name (optional; may not be present) + * + $uri - the target link location + * + $text - link text + * + $target - the location where the link should be opened + * (optional; may not be present) + * + $onclick - onClick JavaScript handler (optional; may not be present) + * + $class - CSS class name (optional; may not be present) + * + $id - ID name (optional; may not be present) + * + $name - Anchor name (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 @@ -26,4 +33,16 @@ extract($t); -?>> +echo ' $value) { + echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"'); +} +echo '>' . $text . ''; + +