{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* Displays current and upcoming public Events Listing as an HTML page. *} {include file="CRM/common/jsortable.tpl"} {if $registration_links}{/if} {foreach from=$events key=uid item=event} {if $registration_links}{/if} {/foreach}
{ts}Event{/ts} {ts}When{/ts} {ts}Location{/ts} {ts}Category{/ts} {ts}Email{/ts}{ts}Register{/ts}
{$event.title} {if $event.summary}{$event.summary} ({ts}read more{/ts}...){else} {/if} {if $event.start_date}{$event.start_date|crmDate}{if $event.end_date}
{ts}through{/ts}
{strip} {* Only show end time if end date = start date *} {if $event.end_date|date_format:"%Y%m%d" == $event.start_date|date_format:"%Y%m%d"} {$event.end_date|crmDate:0:1} {else} {$event.end_date|crmDate} {/if}{/strip}{/if} {else}{ts}(not available){/ts}{/if}
{if $event.is_show_location EQ 1 AND $event.location}{$event.location}{else}{ts}(not available){/ts}{/if} {if $event.event_type}{$event.event_type}{else} {/if} {if $event.contact_email}{$event.contact_email}{else} {/if}{$event.registration_link_text}