{assign var=counter value=1} {assign var=days value=$this->getAttribute('days')} {assign var="months" value=$this->getAttribute('months')}
{foreach from=$children item=Child} {assign var=_Child value=$Child->load()} {assign var=Event value=\QUI\Calendar\EventManager::getEventById($Child->getAttribute('event.settings.id'))} {assign var=EventStartDate value=DateTime::createFromFormat('Y-m-d H:i', $Event->start_date)} {assign var=EventEndDate value=DateTime::createFromFormat('Y-m-d H:i', $Event->end_date)} {if $Event}
{assign var=counter value=$counter+1} {if $this->getAttribute('display') == 'simple'} {/if} {if $this->getAttribute('display') == 'modern'} {/if}
{/if} {/foreach}
{if $this->getAttribute('showPagination') && $sheets > 1} {$Pagination->create()} {/if}