[-*Smarty*-]
[-config_load file="default.conf"-]
[-*Load the Language Definitions*-]
[-config_load file="lang.$USER_LANG"-]
[-if $SHOW_TITLE eq 1-]
[-$UPCOMING_EVENTS_TITLE-]:
|
[-else-]
[-* we want to include our stylesheet for this view*-]
[-fetch file="$TPL_STYLE_PATH/calendarblock.css" assign="css"-]
[-eval var=$css-]
[-/if-]
[-counter start=0 assign=eventcount-]
[-foreach name=dates item=events key=date from=$A_EVENTS-]
[-if $date > $TODAY_DATE-]
[-foreach name=eventloop key=id item=event from=$events-]
[-if $eventcount < $DISPLAY_LIMIT-]
[-if $event.alldayevent != true-]
[-if $24HOUR_TIME -]
[-assign var="timestamp" value=$event.startTime|date_format:#_PC_TIME_FORMAT_24#-]
[-else-]
[-assign var="timestamp" value=$event.startTime|date_format:#_PC_TIME_FORMAT_12#-]
[-/if-]
[-else-]
[-assign var="timestamp" value=""-]
[-/if-]
[-/if-]
[-counter-]
[-/foreach-]
[-/if-]
[-/foreach-]
[-if $eventcount == 0-]
[-/if-]