Add name attribute to hyperlink template
[squirrelmail.git] / templates / default / hyperlink.tpl
CommitLineData
f7b996c3 1<?php
2
3/**
4 * hyperlink.tpl
5 *
6 * Template for constructing a hyperlink.
7 *
8 * The following variables are available in this template:
9 * + $uri - the target link location
10 * + $text - link text
11 * + $target - the location where the link should be opened
12 * (optional; may not be present)
13 * + $onclick - onClick JavaScript handler (optional; may not be present)
fdc515fd 14 * + $class - CSS class name (optional; may not be present)
522a2253 15 * + $id - ID name (optional; may not be present)
ca11c6f1 16 * + $name - Anchor name (optional; may not be present)
f7b996c3 17 *
18 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
19 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
20 * @version $Id$
21 * @package squirrelmail
c3420f94 22 * @subpackage templates
f7b996c3 23 */
24
25
26// retrieve the template vars
27//
28extract($t);
29
30
ca11c6f1 31?><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>