summaryrefslogtreecommitdiffstats
path: root/themes/default/templates/calendar.tpl
blob: 8c1d27eae8bbe0e7638b70feac04bd87ffaf3756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<table class="calendar">
 <tr>
  <td><a href="{$prev_month}" class="prevMonth">&lt;&lt;</a></td>
  <td colspan="5">
   {$current_month}
  </td>
  <td><a href="{$next_month}" class="nextMonth">&gt;&gt;</a></td>
 </tr>
 <tr>
  <td>M</td>
  <td>T</td>
  <td>W</td>
  <td>T</td>
  <td>F</td>
  <td>S</td>
  <td>S</td>
 </tr>
 <!-- matrix -->
 {section name="row" loop=$rows step=1}
  {section name="col" loop=8 step=1}
   {if isset($matrix[row][col]) }
    {$matrix[row][col]}
   {/if}
  {/section}
 {/section}
 <!-- /matrix -->
</table>