revert 20476
[civicrm-core.git] / templates / CRM / Event / Form / Registration / EventInfoBlock.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{* Block displays key event info for Registration Confirm and Thankyou pages *}
11<table class="form-layout">
12 <tr>
13 <td colspan="2">
14 {if $context EQ 'ThankYou'} {* Provide link back to event info page from Thank-you page *}
15 <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>
16 {else}
17 <strong>{$event.event_title}</strong>
18 {/if}
19 </td>
20 </tr>
b1141842 21 <tr><td>{ts}When{/ts}</td>
22 <td width="90%">
23 {$event.event_start_date|crmDate}
24 {if $event.event_end_date}
25 &nbsp; {ts}through{/ts} &nbsp;
26 {* Only show end time if end date = start date *}
27 {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}
28 {$event.event_end_date|crmDate:0:1}
29 {else}
30 {$event.event_end_date|crmDate}
31 {/if}
32 {/if}
6a488035
TO
33 </td>
34 </tr>
35
36 {if $isShowLocation}
37 {if $location.address.1}
c7deaaf0 38 <tr><td>{ts}Location{/ts}</td>
6a488035
TO
39 <td>
40 {$location.address.1.display|nl2br}
41 {if ( $event.is_map &&
42 $config->mapProvider &&
43 ( ( !empty($location.address.1.geo_code_1) && is_numeric($location.address.1.geo_code_1) ) ||
f425e142 44 ( !empty($location.address.1.city) AND !empty($location.address.1.state_province) ) ) ) }
6a488035
TO
45 <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>
46 {/if}
47 </td>
48 </tr>
49 {/if}
50 {/if}{*End of isShowLocation condition*}
51
52 {if $location.phone.1.phone || $location.email.1.email}
c7deaaf0 53 <tr><td>{ts}Contact{/ts}</td>
6a488035
TO
54 <td>
55 {* loop on any phones and emails for this event *}
56 {foreach from=$location.phone item=phone}
57 {if $phone.phone}
5d9ebb64 58 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
6a488035
TO
59 <br />
60 {/if}
61 {/foreach}
62
63 {foreach from=$location.email item=email}
64 {if $email.email}
65 {ts}Email:{/ts} <a href="mailto:{$email.email}">{$email.email}</a>
66 {/if}
67 {/foreach}
68 </td>
69 </tr>
70 {/if}
232624b1 71</table>