There are too many modified files being committed without the copyright year being...
[squirrelmail.git] / templates / default / read_toolbar.tpl
1 <?php
2 /**
3 * read_toolbar.tpl
4 *
5 * This template generates the "Options" toolbar while reading a message.
6 *
7 * The following variables are available in this template:
8 *
9 * $links - array containing various elements to be displayed in the toolbar.
10 * Each element is an array representing an option that contains the
11 * following elements:
12 * $link['URL'] - URL needed to access the action
13 * $link['Text'] - Text to be displayed for the action.
14 * $link['Target'] - Optional link target
15 *
16 * @copyright &copy; 1999-2009 The SquirrelMail Project Team
17 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
18 * @version $Id$
19 * @package squirrelmail
20 * @subpackage templates
21 */
22
23 /** add required includes **/
24
25 /** extract template variables **/
26 extract($t);
27
28 /** Begin template **/
29 ?>
30 <small>
31 <?php
32 foreach ($links as $count=>$link) {
33 # Skip empty links
34 if (empty($link['Text']))
35 continue;
36
37 ?>
38 <a href="<?php echo $link['URL']; ?>"<?php echo (empty($link['Target'])?'':' target="' . $link['Target'] . '"')?>><?php echo $link['Text']; ?></a>
39 <?php
40
41 # Spit out a divider between each element
42 if ($count < count($links)-1) {
43 ?>
44 &nbsp;|&nbsp;
45 <?php
46 }
47 }
48 ?>
49 </small>