Update of /cvsroot/php-blog/serendipity/templates/default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27865/templates/default
Added Files:
Tag: branch-smarty
plugin_calendar.tpl
Log Message:
- Convert the calendar into a Smarty tempate, and move it out of _functions.inc.php
--- NEW FILE: plugin_calendar.tpl ---
<table width="100%" cellspacing="0" cellpadding="0" class="serendipity_calendar">
<tr>
<td class="serendipity_calendarHeader" align="left">
{if $plugin_calendar_head.minScroll le $plugin_calendar_head.month_date}
<a title="Back" href="{$plugin_calendar_head.uri_previous}"><img alt="{$const.BACK}" src="{serendipity_getFile file="img/back.png"}" border="0"></a>
{/if}
</td>
<td colspan="5" class="serendipity_calendarHeader" align="center" valign="bottom">
<b><nobr><a href="{$plugin_calendar_head.uri_month}">{$plugin_calendar_head.month_date|formatTime:"%B '%y"}</a></nobr></b>
</td>
<td class="serendipity_calendarHeader" align="right">
{if $plugin_calendar_head.maxScroll ge $plugin_calendar_head.month_date}
<a title="Forward" href="{$plugin_calendar_head.uri_next}"><img alt="{$const.FORWARD}" src="{serendipity_getFile file="img/forward.png"}" border="0"></a>
{/if}
</td>
</tr>
<tr>
{foreach from=$plugin_calendar_dow item="dow"}
<td scope="col" abbr="{$dow.date|@formatTime:"%A"}" title="{$dow.date|@formatTime:"%A"}" class="serendipity_weekDayName" align="center">{$dow.date|@formatTime:"%a"|@truncate:2:""}</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 $day.properties.Active}<a href="{$day.properties.Link}">{/if}{$day.name|@default:" "}{if $day.properties.Active}</a>{/if}</td>
{/foreach}
</tr>
{/foreach}
</table>
|