{include file='header.tpl'} {* $Id: browse_events.tpl 243 2009-11-14 02:58:23Z phil $ *}
{lang_print id=3000090} 
{lang_print id=3000208} 
{* CATEGORY JAVASCRIPT *} {literal} {/literal}
{section name=cat_loop loop=$cats} {* CATEGORY JAVASCRIPT *} {literal} {/literal}
0 && $cats[cat_loop].subcats != ""}style='cursor: pointer;' onClick="if($('subcats_{$cats[cat_loop].cat_id}').style.display == 'none') {literal}{{/literal} $('subcats_{$cats[cat_loop].cat_id}').style.display = ''; this.src='./images/icons/minus16.gif'; cat_minimized.set({$cats[cat_loop].cat_id}, 1); {literal}} else {{/literal} $('subcats_{$cats[cat_loop].cat_id}').style.display = 'none'; this.src='./images/icons/plus16.gif'; cat_minimized.set({$cats[cat_loop].cat_id}, 0); {literal}}{/literal}"{/if} border='0' class='icon'>{lang_print id=$cats[cat_loop].cat_title}
{/section}
{* NO EVENTS AT ALL *} {if $events|@count == 0}
{lang_print id=3000214}
{/if} {* DISPLAY PAGINATION MENU IF APPLICABLE *} {if $maxpage > 1}
{if $p != 1}« ‹{else}« ‹{/if} | {foreach from=$for item=foo} {$foo} {/foreach} | {if $p != $maxpage}› »{else}› »{/if}
{if $p_start == $p_end} {lang_sprintf id=184 1=$p_start 2=$total_events} {else} {lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_events} {/if}
Go to Page:
{/if} {section name=event_loop loop=$events}
{assign var=event_date_start value=$datetime->timezone($events[event_loop].event->event_info.event_date_start, $global_timezone)} {assign var=event_date_end value=$datetime->timezone($events[event_loop].event->event_info.event_date_end, $global_timezone)} {* NO END DATE *} {if !$events[event_loop].event->event_info.event_date_end} {lang_sprintf id=3000203 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start)} {* SAME-DAY EVENT *} {elseif $datetime->cdate("F j, Y", $event_date_start)==$datetime->cdate("F j, Y", $event_date_end)} {lang_sprintf id=3000202 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start) 3=$datetime->cdate($setting.setting_timeformat, $event_date_end)} {* MULTI-DAY EVENT *} {else} {lang_sprintf id=3000204 1=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_start) 2=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_end)} {/if}
{assign var='event_dateupdated' value=$datetime->time_since($events[event_loop].event->event_info.event_dateupdated)}{capture assign="updated"}{lang_sprintf id=$event_dateupdated[0] 1=$event_dateupdated[1]}{/capture} {lang_sprintf id=3000215 1=$events[event_loop].event->event_info.event_totalmembers} - {lang_sprintf id=3000216 1=$events[event_loop].event_creator->user_displayname 2=$url->url_create("profile", $events[event_loop].event_creator->user_info.user_username)} - {lang_sprintf id=3000217 1=$updated}
{$events[event_loop].event->event_info.event_desc|strip_tags|truncate:300:"...":true}
{/section} {* DISPLAY PAGINATION MENU IF APPLICABLE *} {if $maxpage > 1}
{if $p != 1}« ‹{else}« ‹{/if} | {foreach from=$for item=foo} {$foo} {/foreach} | {if $p != $maxpage}› »{else}› »{/if}
{if $p_start == $p_end} {lang_sprintf id=184 1=$p_start 2=$total_events} {else} {lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_events} {/if}
Go to Page:
{/if}
{include file='footer.tpl'}