Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* Block displays key event info for Registration Confirm and Thankyou pages *} | |
27 | <table class="form-layout"> | |
28 | <tr> | |
29 | <td colspan="2"> | |
30 | {if $context EQ 'ThankYou'} {* Provide link back to event info page from Thank-you page *} | |
31 | <a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.id`"}"title="{ts}View complete event information.{/ts}"><strong>{$event.event_title}</strong></a> | |
32 | {else} | |
33 | <strong>{$event.event_title}</strong> | |
34 | {/if} | |
35 | </td> | |
36 | </tr> | |
37 | <tr><td><label>{ts}When{/ts}</label></td> | |
38 | <td width="90%"> | |
39 | {$event.event_start_date|crmDate} | |
40 | {if $event.event_end_date} | |
41 | {ts}through{/ts} | |
42 | {* Only show end time if end date = start date *} | |
43 | {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"} | |
44 | {$event.event_end_date|crmDate:0:1} | |
45 | {else} | |
46 | {$event.event_end_date|crmDate} | |
47 | {/if} | |
48 | {/if} | |
49 | </td> | |
50 | </tr> | |
51 | ||
52 | {if $isShowLocation} | |
53 | {if $location.address.1} | |
54 | <tr><td><label>{ts}Location{/ts}</label></td> | |
55 | <td> | |
56 | {$location.address.1.display|nl2br} | |
57 | {if ( $event.is_map && | |
58 | $config->mapProvider && | |
59 | ( ( !empty($location.address.1.geo_code_1) && is_numeric($location.address.1.geo_code_1) ) || | |
60 | ( $config->mapGeoCoding && !empty($location.address.1.city) AND !empty($location.address.1.state_province) ) ) ) } | |
61 | <br/><a href="{crmURL p='civicrm/contact/map/event' q="reset=1&eid=`$event.id`"}" title="{ts}Map this Address{/ts}" target="_blank">{ts}Map this Location{/ts}</a> | |
62 | {/if} | |
63 | </td> | |
64 | </tr> | |
65 | {/if} | |
66 | {/if}{*End of isShowLocation condition*} | |
67 | ||
68 | {if $location.phone.1.phone || $location.email.1.email} | |
69 | <tr><td><label>{ts}Contact{/ts}</label></td> | |
70 | <td> | |
71 | {* loop on any phones and emails for this event *} | |
72 | {foreach from=$location.phone item=phone} | |
73 | {if $phone.phone} | |
5d9ebb64 | 74 | {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} |
6a488035 TO |
75 | <br /> |
76 | {/if} | |
77 | {/foreach} | |
78 | ||
79 | {foreach from=$location.email item=email} | |
80 | {if $email.email} | |
81 | {ts}Email:{/ts} <a href="mailto:{$email.email}">{$email.email}</a> | |
82 | {/if} | |
83 | {/foreach} | |
84 | </td> | |
85 | </tr> | |
86 | {/if} | |
232624b1 | 87 | </table> |