LuckyCoinkydink/templates/next/plugin_calendar.tpl
Matthias Mees 9290ee29da Move/rename 2k15 to next
The name has been changed to protect the innocent. (Meaning the
users. From confusion.)
2015-02-11 14:32:24 +01:00

36 lines
1.3 KiB
Smarty

<table class="calendar">
<thead>
<tr>
{foreach from=$plugin_calendar_dow item="dow"}
<th scope="col"><abbr title="{$dow.date|formatTime:"%A":false}">{$dow.date|formatTime:"%a":false}</abbr></th>
{/foreach}
</tr>
</thead>
<tfoot>
<tr>
<td class="prev">
{if $plugin_calendar_head.minScroll le $plugin_calendar_head.month_date}
<a href="{$plugin_calendar_head.uri_previous}">&larr;<span> {$CONST.BACK}</span></a>
{/if}
</td>
<td class="month" colspan="5">
<a href="{$plugin_calendar_head.uri_month}">{$plugin_calendar_head.month_date|formatTime:"%B '%y":false}</a>
</td>
<td class="next">
{if $plugin_calendar_head.maxScroll ge $plugin_calendar_head.month_date}
<a href="{$plugin_calendar_head.uri_next}"><span>{$CONST.FORWARD} </span>&rarr;</a>
{/if}
</td>
</tr>
</tfoot>
<tbody>
{foreach from=$plugin_calendar_weeks item="week"}
<tr>
{foreach from=$week.days item="day"}
<td class="{$day.classes}"{if isset($day.properties.Title)} title="{$day.properties.Title}"{/if}>{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}
</tbody>
</table>