-
Notifications
You must be signed in to change notification settings - Fork 4
/
plugin_calendar.tpl
33 lines (29 loc) · 1.75 KB
/
plugin_calendar.tpl
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
29
30
31
32
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/back.gif"}" style="border: 0px" /></a>
{/if}
</td>
<td colspan="5" class="serendipity_calendarHeader" style="text-align: center; ">
<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/forward.gif"}" 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:" "}{if isset($day.properties.Active) and $day.properties.Active}</a>{/if}</td>
{/foreach}
</tr>
{/foreach}
</table>