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) |
14 | * + $extra - any extra text to be directly inserted into the hyperlink |
15 | * (note to core developers - PLEASE AVOID using this, as it |
16 | * usually means you are adding template-engine specific output |
17 | * to the core) |
18 | * |
19 | * @copyright © 1999-2006 The SquirrelMail Project Team |
20 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
21 | * @version $Id$ |
22 | * @package squirrelmail |
c3420f94 |
23 | * @subpackage templates |
f7b996c3 |
24 | */ |
25 | |
26 | |
27 | // retrieve the template vars |
28 | // |
29 | extract($t); |
30 | |
31 | |
32 | ?><a href="<?php echo $uri ?>"<?php if (!empty($target)) echo ' target="' . $target . '"'; ?><?php if (!empty($onclick)) echo ' onclick="' . $onclick . '"'; ?>><?php echo $text; ?></a> |