X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fhyperlink.tpl;h=07fb14d231b661068ba9acd3c67c22002f1e4bf2;hb=e7d5ff29db69101e42cd491d2fa42d4f83cd35a4;hp=653599316ca331553cab925891ef3fc7037ae99b;hpb=f7b996c37914340010adedd03f5c014dd756d3f1;p=squirrelmail.git
diff --git a/templates/default/hyperlink.tpl b/templates/default/hyperlink.tpl
index 65359931..07fb14d2 100644
--- a/templates/default/hyperlink.tpl
+++ b/templates/default/hyperlink.tpl
@@ -6,21 +6,25 @@
* 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)
- * + $extra - any extra text to be directly inserted into the hyperlink
- * (note to core developers - PLEASE AVOID using this, as it
- * usually means you are adding template-engine specific output
- * to the core)
+ * + $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-2017 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
- * @subpackage plugins
+ * @subpackage templates
*/
@@ -29,4 +33,16 @@
extract($t);
-?>>
+echo ' $value) {
+ echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
+}
+echo '>' . $text . '';
+
+