{* $Id$ *} {if $invalideid}
{tr}The calendarid parameter is invalid or contains an id that does not exist.{/tr}
{else}
{foreach from=$events item=event} {/foreach}
{tr}Upcoming Events{/tr}
{if $datetime eq 1} {capture name="start"}{$event.start|tiki_short_datetime}{/capture} {capture name="end"}{$event.end|tiki_short_datetime}{/capture} {$smarty.capture.start}{if $smarty.capture.start ne $smarty.capture.end}
{$smarty.capture.end}{/if} {else} {capture name="start"}{$event.start|tiki_short_date}{/capture} {capture name="end"}{$event.end|tiki_short_date}{/capture} {$smarty.capture.start}{if $smarty.capture.start ne $smarty.capture.end}
{$smarty.capture.end}{/if} {/if}
{$event.name|escape} {if $desc}
{$event.parsed}{/if}
{*Pagination *} {if !empty($events) && $usePagination ne 'n'} {pagination_links cant=$cant step=$maxEvents offset=$offset}{/pagination_links} {/if} {/if}