X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fhyperlink.tpl;h=f9c9a6ff9aec12d68828fa4c99a55ab16e508886;hb=12b5083f3a42f72abae7a594c776c8fe7214b57d;hp=ec105c2935fda7873e801165af045ee85d2d050e;hpb=1ce4618201e0e72e5c15be37d25ad3900c8247ca;p=squirrelmail.git
diff --git a/templates/default/hyperlink.tpl b/templates/default/hyperlink.tpl
index ec105c29..f9c9a6ff 100644
--- a/templates/default/hyperlink.tpl
+++ b/templates/default/hyperlink.tpl
@@ -6,11 +6,19 @@
* 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)
+ * + $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
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
@@ -25,4 +33,16 @@
extract($t);
-?>>
+echo ' $value) {
+ echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
+}
+echo '>' . $text . '';
+
+