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) |
f7b996c3 |
14 | * |
15 | * @copyright © 1999-2006 The SquirrelMail Project Team |
16 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
17 | * @version $Id$ |
18 | * @package squirrelmail |
c3420f94 |
19 | * @subpackage templates |
f7b996c3 |
20 | */ |
21 | |
22 | |
23 | // retrieve the template vars |
24 | // |
25 | extract($t); |
26 | |
27 | |
28 | ?><a href="<?php echo $uri ?>"<?php if (!empty($target)) echo ' target="' . $target . '"'; ?><?php if (!empty($onclick)) echo ' onclick="' . $onclick . '"'; ?>><?php echo $text; ?></a> |