]> git.mjollnir.org Git - s9y.git/commitdiff
calendar template for RTL languages
authoromidmottaghi <omidmottaghi>
Fri, 1 Jul 2005 14:35:57 +0000 (14:35 +0000)
committeromidmottaghi <omidmottaghi>
Fri, 1 Jul 2005 14:35:57 +0000 (14:35 +0000)
templates/default-rtl/plugin_calendar.tpl [new file with mode: 0644]

diff --git a/templates/default-rtl/plugin_calendar.tpl b/templates/default-rtl/plugin_calendar.tpl
new file mode 100644 (file)
index 0000000..47fdfd3
--- /dev/null
@@ -0,0 +1,33 @@
+<table style="width: 100%" cellspacing="0" cellpadding="0" class="serendipity_calendar">
+    <tr>
+        <td class="serendipity_calendarHeader">
+{if $plugin_calendar_head.minScroll le $plugin_calendar_head.month_date}
+            <a title="{$CONST.BACK}" href="{$plugin_calendar_head.uri_previous}"><img alt="{$CONST.BACK}" src="{serendipity_getFile file="img/forward.png"}" style="border: 0px" /></a>
+{/if}
+        </td>
+
+        <td colspan="5" class="serendipity_calendarHeader" style="text-align: center; vertical-align: bottom">
+            <b><a style="white-space: nowrap" href="{$plugin_calendar_head.uri_month}">{$plugin_calendar_head.month_date|formatTime:"%B '%y":false}</a></b>
+        </td>
+
+        <td class="serendipity_calendarHeader" style="text-align: right">
+{if $plugin_calendar_head.maxScroll ge $plugin_calendar_head.month_date}
+            <a title="{$CONST.FORWARD}" href="{$plugin_calendar_head.uri_next}"><img alt="{$CONST.FORWARD}" src="{serendipity_getFile file="img/back.png"}" style="border: 0px" /></a>
+{/if}
+        </td>
+    </tr>
+
+    <tr>
+    {foreach from=$plugin_calendar_dow item="dow"}
+        <td scope="col" abbr="{$dow.date|@formatTime:"%A":false}" title="{$dow.date|@formatTime:"%A":false}" class="serendipity_weekDayName" align="center">{$dow.date|@formatTime:"%a":false}</td>
+    {/foreach}
+    </tr>
+
+    {foreach from=$plugin_calendar_weeks item="week"}
+        <tr class="serendipity_calendar">
+        {foreach from=$week.days item="day"}
+            <td class="serendipity_calendarDay {$day.classes}">{if isset($day.properties.Active) and $day.properties.Active}<a href="{$day.properties.Link}">{/if}{$day.name|@default:"&#160;"}{if isset($day.properties.Active) and $day.properties.Active}</a>{/if}</td>
+        {/foreach}
+        </tr>
+    {/foreach}
+</table>