Add name attribute to hyperlink template
[squirrelmail.git] / templates / default / hyperlink.tpl
index 653599316ca331553cab925891ef3fc7037ae99b..7b31e5b41eea60528503062539407c42606c84c2 100644 (file)
   *      + $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)
+  *      + $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
   * @version $Id$
   * @package squirrelmail
-  * @subpackage plugins
+  * @subpackage templates
   */
 
 
@@ -29,4 +28,4 @@
 extract($t);
 
 
-?><a href="<?php echo $uri ?>"<?php if (!empty($target)) echo ' target="' . $target . '"'; ?><?php if (!empty($onclick)) echo ' onclick="' . $onclick . '"'; ?>><?php echo $text; ?></a>
+?><a href="<?php echo $uri ?>"<?php if (!empty($target)) echo ' target="' . $target . '"'; ?><?php if (!empty($onclick)) echo ' onclick="' . $onclick . '"'; ?><?php if (!empty($name)) echo ' name="' . $name . '"'; ?><?php if (!empty($class)) echo ' class="' . $class . '"'; ?><?php if (!empty($id)) echo ' id="' . $id . '"'; ?>><?php echo $text; ?></a>