{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* Block displays key event info for Registration Confirm and Thankyou pages *} {if $isShowLocation} {if $location.address.1} {/if} {/if}{*End of isShowLocation condition*} {if $location.phone.1.phone || $location.email.1.email} {/if}
{if $context EQ 'ThankYou'} {* Provide link back to event info page from Thank-you page *} {$event.event_title} {else} {$event.event_title} {/if}
{ts}When{/ts} {$event.event_start_date|crmDate} {if $event.event_end_date}   {ts}through{/ts}   {* Only show end time if end date = start date *} {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"} {$event.event_end_date|crmDate:0:1} {else} {$event.event_end_date|crmDate} {/if} {/if}
{ts}Location{/ts} {$location.address.1.display|nl2br} {if ( $event.is_map && $config->mapProvider && ( ( !empty($location.address.1.geo_code_1) && is_numeric($location.address.1.geo_code_1) ) || ( !empty($location.address.1.city) AND !empty($location.address.1.state_province) ) ) ) }
{ts}Map this Location{/ts} {/if}
{ts}Contact{/ts} {* loop on any phones and emails for this event *} {foreach from=$location.phone item=phone} {if $phone.phone} {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{/if} {/foreach} {foreach from=$location.email item=email} {if $email.email} {ts}Email:{/ts} {$email.email} {/if} {/foreach}