From: pdontthink Date: Tue, 2 Jan 2007 06:38:34 +0000 (+0000) Subject: Add name attribute to hyperlink template X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca11c6f11a806681da4c7cf7de4db761e2f7aea6;p=squirrelmail.git Add name attribute to hyperlink template git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12042 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/html.php b/functions/html.php index ecdafd2e..cfd0652a 100644 --- a/functions/html.php +++ b/functions/html.php @@ -27,13 +27,15 @@ * @param string $class The CSS class name (OPTIONAL; default * not used) * @param string $id The ID name (OPTIONAL; default not used) + * @param string $name The anchor name (OPTIONAL; default not used) * * @return string The desired hyperlink tag. * * @since 1.5.2 * */ -function create_hyperlink($uri, $text, $target='', $onclick='', $class='', $id='') { +function create_hyperlink($uri, $text, $target='', $onclick='', + $class='', $id='', $name='') { global $oTemplate; @@ -43,6 +45,7 @@ function create_hyperlink($uri, $text, $target='', $onclick='', $class='', $id=' $oTemplate->assign('onclick', $onclick); $oTemplate->assign('class', $class); $oTemplate->assign('id', $id); + $oTemplate->assign('name', $name); return $oTemplate->fetch('hyperlink.tpl'); diff --git a/templates/default/hyperlink.tpl b/templates/default/hyperlink.tpl index 52156d82..7b31e5b4 100644 --- a/templates/default/hyperlink.tpl +++ b/templates/default/hyperlink.tpl @@ -13,6 +13,7 @@ * + $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) * * @copyright © 1999-2006 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License @@ -27,4 +28,4 @@ extract($t); -?>> +?>>