<< {$iPrevMonth|date_format:'%B %Y'} {$iCurrentMonth|date_format:'%B %Y'} {$iNextMonth|date_format:'%B %Y'} >>
{foreach from=$aCalendar item=aWeek name=acalendar} {foreach from=$aWeek key=iDay item=mDay name=aweek} {if $iDay == ''} {else} {/if} {/foreach} {/foreach}
{$iDay}

{if $mDay != 0} {assign var='i' value=0} {foreach from=$mDay item=aEvent name=aevents} {assign var='i' value=$i+1} {if $i < $iMaxCount} {elseif $i == $iMaxCount}
[{language text="view_all"}] {/if} {/foreach} {/if}