{title help="User Calendar" url="tiki-minical.php?view=$view"}{tr}Mini Calendar{/tr}{/title} {include file='tiki-mytiki_bar.tpl'}
{button href="tiki-minical.php#add" class="btn btn-primary" _text="{tr}Add{/tr} "} {button href="tiki-minical_export.php" class="btn btn-primary" _text="{tr}Export{/tr}"} {button href="tiki-minical_prefs.php#import" class="btn btn-primary" _text="{tr}Import{/tr}"} {button href="tiki-minical_prefs.php" class="btn btn-info" _text="{tr}Prefs{/tr}"} {button href="tiki-minical.php?view=daily" class="btn btn-info" _text="{tr}Daily{/tr}"} {button href="tiki-minical.php?view=weekly" class="btn btn-info" _text="{tr}Weekly{/tr}"} {button href="tiki-minical.php?view=list" class="btn btn-info" _text="{tr}List{/tr}"}
{tr}Upcoming Events{/tr}
{section name=ix loop=$upcoming} {sectionelse} {norecords} {/section}
{$upcoming[ix].start|tiki_short_datetime} {if $upcoming[ix].topicId} {if $upcoming[ix].topic.isIcon eq 'y'} {tr}topic image{/tr} {else} {tr}topic image{/tr} {/if} {/if} {$upcoming[ix].title}
{include file="modules/mod-calendar.tpl.nocache"}

{if $view eq 'daily'} {icon name='backward' style="vertical-align:middle"} {$pdate|tiki_long_date} {icon name='forward' style="vertical-align:middle"} {section name=ix loop=$slots} {/section}
{$slots[ix].start|tiki_short_time} {section name=jj loop=$slots[ix].events} {if $slots[ix].events[jj].topicId} {if $slots[ix].events[jj].topic.isIcon eq 'y'} {tr}topic image{/tr} {else} {tr}topic image{/tr} {/if} {/if} {$slots[ix].events[jj].title|escape} {icon name='remove' alt="{tr}Remove{/tr}" style="vertical-align:middle;"}
{/section}
{/if} {if $view eq 'weekly'} {icon name='backward'} {$week_start|tiki_date_format:"%b"} {$week_start|tiki_date_format:"%d"}-{$week_end|tiki_date_format:"%b"} {$week_end|tiki_date_format:"%d"} {icon name='forward'} {section name=ix loop=$slots} {/section}
{$slots[ix].start|tiki_date_format:"%a"}
{$slots[ix].start|tiki_date_format:"%d"}
{section name=jj loop=$slots[ix].events} {$slots[ix].events[jj].start|tiki_short_time}: {if $slots[ix].events[jj].topicId} {if $slots[ix].events[jj].topic.isIcon eq 'y'} {tr}topic image{/tr} {else} {tr}topic image{/tr} {/if} {/if} {$slots[ix].events[jj].title} {/section}
{/if} {if $view eq 'list' and (count($channels) > 0 or $find ne '')} {include file='find.tpl'} {tr}Remove old events{/tr}
{section name=user loop=$channels} {/section}
{tr}Title{/tr} {tr}Start{/tr} {tr}duration{/tr} {tr}Topic{/tr}
{$channels[user].title} {$channels[user].start|tiki_short_datetime} {math equation="x / 3600" x=$channels[user].duration format="%d"} {tr}h{/tr} {math equation="(x % 3600) / 60" x=$channels[user].duration} {tr}mins{/tr} {if $channels[user].topicId} {if $channels[user].topic.isIcon eq 'y'} {tr}topic image{/tr} {else} {tr}topic image{/tr} {/if} {/if}
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} {/if}

{if $eventId}{tr}Edit Event{/tr}{else}{tr}Add Event{/tr}{/if}


{html_select_date time=$ev_pdate end_year="+4" field_order=$prefs.display_field_order} {tr}at{/tr} {html_select_time minute_interval=5 time=$ev_pdate_h display_seconds=false use_24_hours=$use_24hr_clock}
{if $duration_hours>1}{tr}hours{/tr}{else}{tr}hour{/tr}{/if}
{tr}minutes{/tr}
{if $eventId} {/if}