[-*Smarty*-] [-config_load file="default.conf"-] [-*Load the Language Definitions*-] [-config_load file="lang.$USER_LANG"-] [-* we want to include out stylesheet for this view*-] [-fetch file="$TPL_STYLE_PATH/month.css" assign="css"-] [-eval var=$css-] [-if $PRINT_VIEW != 1-] [-*Main Navigation*-] [-include file="$TPL_NAME/views/global/navigation.html"-] [-/if-] [-if $PRINT_VIEW != 1-] [-/if-]
<< [-$DATE|pc_date_format:#_PC_DATE_FORMAT_MY#-] >> [-pc_view_select label=#_PC_TPL_VIEW_LABEL# class=""-]
[-foreach from=$S_LONG_DAY_NAMES item=day-] [-/foreach-] [-* CREATE THE CALENDAR *-] [-foreach name=weeks item=days from=$CAL_FORMAT-] [-foreach name=days item=date from=$days-] [-if $date == $TODAY_DATE-] [-assign var="stylesheet" value="monthtoday"-] [-elseif ($date < $MONTH_START_DATE || $date > $MONTH_END_DATE)-] [-assign var="stylesheet" value="monthoff"-] [-else-] [-assign var="stylesheet" value="monthon"-] [-/if-] [-/foreach-] [-/foreach-]
[-$day-]
[-$date|date_format:"%d"-] [-if $smarty.foreach.days.iteration == 1-] [[-#_PC_MV_WEEK#-]] [-/if-] [-if $ACCESS_ADD eq true-] [-/if-]
[-*sort the events by category so we can make it pretty*-] [-pc_sort_events var="S_EVENTS" sort="time" order="asc" value=$A_EVENTS-] [-assign var="oldCat" value=""-] [-foreach name=events item=event from=$S_EVENTS.$date-] [-assign var="cCat" value=$event.catname-] [-if $oldCat != $cCat-] [-if $smarty.foreach.event.first != true-]
[-/if-]
[-$event.catname-]
[-/if-] [-* Here we determine if the event is an all day event or a timed event and determine how to display the time *-] [-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-] [-*assign var="title" value=$event.title|truncate:15:"...":true*-] [-assign var="title" value=$event.title|strip_tags-] [-else-] [-assign var="timestamp" value=""-] [-*assign var="title" value=$event.title|truncate:30:"...":true*-] [-assign var="title" value=$event.title|strip_tags-] [-/if-] [-assign var="desc" value=$event.hometext|truncate:255:"..."-] [-* Here we start the actual display of the event *-] [-$timestamp-] [-$title-]
[-assign var="oldCat" value=$event.catname-] [-if $smarty.foreach.event.last-] [-* we need to close out the
tag *-]
[-/if-] [-/foreach-]
[-if $PRINT_VIEW != 1-]
[-#_PC_THEME_PRINT#-]
[-/if-] [-*footer*-] [-include file="$TPL_NAME/views/global/footer.html"-]