Convert example theme to directory-based theme.
[squirrelmail.git] / templates / default / option_groups.tpl
CommitLineData
2de8b87f 1<?php
2/**
3 * option_groups.tpl
4 *
5 * Template for rendering main option page blocks
64033e1c 6 *
7 * The following variables are available to this template:
8 * $page_title - string containing the title element for this page
9 * $options - array containing option blocks to be displayed. Each
10 * element in the array will contain the following fields:
11 * $el['url'] - The URL of the link to display that option page
12 * $el['name'] - The name of the option page
13 * $el['desc'] - string containing the description of that option block
14 * $el['js'] - boolean TRUE if the element requires javascript being enabled.
2de8b87f 15 *
16 * @copyright &copy; 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
2de8b87f 23/** extract variables */
24extract($t);
2de8b87f 25?>
64033e1c 26<div id="optionGroups">
27<table cellspacing="0">
28 <tr>
29 <td colspan="2" class="title">
30 <?php echo $page_title; ?>
31 </td>
32 </tr>
33 <tr>
34 <?php
35 foreach ($options as $index=>$option) {
36 ?>
37 <td class="optionElement">
38 <table cellspacing="0">
39 <tr>
40 <td class="optionName">
41 <a href=<?php echo '"'.$option['url'].'"'; ?>><?php echo $option['name']; ?></a>
42 </td>
43 </tr>
44 <tr>
45 <td class="optionDesc">
46 <?php echo $option['desc']; ?>
47 </td>
48 </tr>
49 </table>
50 </td>
51 <?php
52 if (($index+1) % 2 == 0) {
53 echo " </tr>\n <tr>\n";
54 }
55 }
56 ?>
57 </tr>
2de8b87f 58</table>
64033e1c 59</div>