summaryrefslogtreecommitdiffstats
path: root/themes/arun/templates/calendar.tpl
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-02-23 00:04:14 -0800
committerArun Persaud <arun@nubati.net>2010-02-28 20:01:17 -0800
commit21e5440db59e4ee3ba71c3a8935a123cc48aea46 (patch)
tree44fcfc6a9c82d24d321ec5e55ba89df746030b82 /themes/arun/templates/calendar.tpl
parent8d922ef0624485c509978a8184e2b1d1c51a1fd7 (diff)
started my own theme
need to clean this up, some code should perhaps go into main, other should stay in my theme
Diffstat (limited to 'themes/arun/templates/calendar.tpl')
-rw-r--r--themes/arun/templates/calendar.tpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/themes/arun/templates/calendar.tpl b/themes/arun/templates/calendar.tpl
new file mode 100644
index 0000000..8c1d27e
--- /dev/null
+++ b/themes/arun/templates/calendar.tpl
@@ -0,0 +1,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>
+