{* file: plugin_eventcal_calweek.tpl - 2015-12-04, Ian *} {if $plugin_eventcal_cal_sedweek} {* navigate through this months calendar weeks only *}
{* cwnm gt = greater than in php write > cwnm_first *} {if $plugin_eventcal_cal_sedweek.0.cwnm gt $plugin_eventcal_cal_sedweek.0.cwnm_first}
{/if}
{$CONST.PLUGIN_EVENTCAL_TEXT_CW}{$plugin_eventcal_cal_sedweek.0.cwnm}
{$plugin_eventcal_cal_cmonth}
{* cwnm_month eq = equal in php write == eventcal_month *} {if $plugin_eventcal_cal_sedweek.0.cwnm_m eq $plugin_eventcal_cal_m}
{/if}
{foreach from=$plugin_eventcal_cal_sedweek.0.days item="day" name="weeknum"} {if $plugin_eventcal_cal_sedweek.0.cwnm_days[$smarty.foreach.weeknum.iteration] != 0} {/if} {if $day.arrdata} {foreach from=$day.arrdata item="ad" name="daynum"} {/foreach} {else} {/if} {/foreach} {* now build the selected week like it is in month table *} {foreach from=$plugin_eventcal_cal_sedweek.0.head item="r"} {/foreach} {foreach from=$plugin_eventcal_cal_sedweek item="week"} {if $week.days} {foreach from=$week.days item="day"} {/foreach} {/if} {/foreach}
{$CONST.PLUGIN_EVENTCAL_TEXT_CW}{$plugin_eventcal_cal_sedweek.0.cwnm} :: {$plugin_eventcal_cal_sedweek.0.head[$smarty.foreach.weeknum.iteration]}, {if $plugin_eventcal_cal_sedweek.0.cwnm_days[$smarty.foreach.weeknum.iteration] le $plugin_eventcal_cal_sedweek.0.cwnm_lastday}{$plugin_eventcal_cal_sedweek.0.cwnm_days[$smarty.foreach.weeknum.iteration]}{/if}
{$smarty.foreach.daynum.iteration} {$ad.sdesc} {if $is_eventcal_ical} ical single feed{else} {/if} {$ad.sdato}{if $ad.tipo > 1 }{if $ad.tipo == 6} {$CONST.PLUGIN_EVENTCAL_TEXT_INTERVAL}: {$CONST.PLUGIN_EVENTCAL_TEXT_YEARLY}{else} {$CONST.PLUGIN_EVENTCAL_TEXT_TO} {$ad.edato}{/if}{if $ad.tipo == 5} {$CONST.PLUGIN_EVENTCAL_TEXT_INTERVAL}: {$CONST.PLUGIN_EVENTCAL_TEXT_BIWEEK}{/if}{/if} {$ad.app_by}
{$ad.ldesc|nl2br}{if $ad.url}{/if}
{$r}
{$week.cwnm}
{if $day.today == 'today'}
{$CONST.CAL_EVENT_TODAY}
{elseif $day.today == 'blank'} {else} {/if}
{$day.label|default:' '}
{if !$day.arrdata} {/if} {foreach from=$day.arrdata item="r"}{* start=1 *} {$r.sdesc}
{/foreach}
{* cwnm gt = greater than in php write > cwnm_first *} {if $plugin_eventcal_cal_sedweek.0.cwnm gt $plugin_eventcal_cal_sedweek.0.cwnm_first}
{/if}
{$CONST.PLUGIN_EVENTCAL_TEXT_CW}{$plugin_eventcal_cal_sedweek.0.cwnm}
{$plugin_eventcal_cal_cmonth}
{* cwnm_month eq = equal in php write == eventcal_month *} {if $plugin_eventcal_cal_sedweek.0.cwnm_m eq $plugin_eventcal_cal_m}
{/if}
{/if}