Implement printer friendly through CSS also for non-javascript. This
[squirrelmail.git] / templates / default / read_toolbar.tpl
CommitLineData
3cb5a0bb 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.
a6519f05 14 * $link['Target'] - Optional link target
3cb5a0bb 15 *
16 * @copyright &copy; 1999-2006 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 **/
26extract($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
3cb5a0bb 37 ?>
a6519f05 38 <a href="<?php echo $link['URL']; ?>"<?php echo (empty($link['Target'])?'':' target="' . $link['Target'] . '"')?>><?php echo $link['Text']; ?></a>
3cb5a0bb 39 <?php
3cb5a0bb 40
41 # Spit out a divider between each element
42 if ($count < count($links)-1) {
43 ?>
44 &nbsp;|&nbsp;
45 <?php
46 }
47 }
48 ?>
d7c56989 49</small>