[-*Smarty*-] [-config_load file="default.conf"-] [-*Load the Language Definitions*-] [-config_load file="lang.$USER_LANG"-] [-if $SHOW_TITLE != 1-] [-* 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 eq $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 $SHOW_TITLE eq 1 && $eventcount eq 0-]
[-$TODAYS_EVENTS_TITLE-]

[-/if-]
[-/if-] [-counter-] [-/foreach-] [-/if-] [-/foreach-]