Better white space and wrapping
[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 *
22387c8d 16 * @copyright 1999-2017 The SquirrelMail Project Team
3cb5a0bb 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
fd531824 37 ?><a href="<?php echo $link['URL']; ?>"<?php echo (empty($link['Target'])?'':' target="' . $link['Target'] . '"')?> style="white-space: nowrap;"><?php echo $link['Text']; ?></a><?php
3cb5a0bb 38
39 # Spit out a divider between each element
40 if ($count < count($links)-1) {
fd531824 41 ?>&nbsp;|
3cb5a0bb 42 <?php
43 }
44 }
45 ?>
d7c56989 46</small>