[-*Smarty*-] [-config_load file="default.conf"-] [-include file="$TPL_NAME/views/header.html"-] [-*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 $smarty.foreach.eventloop.iteration eq 1-] [-/if-]
[-if $USE_INT_DATES eq true-] [-assign var="format" value=#_PC_DATE_FORMAT_BLOCK_INT#-] [-else-] [-assign var="format" value=#_PC_DATE_FORMAT_BLOCK_STD#-] [-/if-] [-$date|pc_date_format:$format-]
[-/if-] [-counter-] [-/foreach-] [-/if-] [-/foreach-] [-if $eventcount == 0-]
[-$NO_EVENTS-]

[-/if-] [-include file="$TPL_NAME/views/footer.html"-]