Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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 | {* this template is used for displaying event information *} | |
27 | ||
28 | {if $registerClosed } | |
29 | <div class="spacer"></div> | |
30 | <div class="messages status no-popup"> | |
31 | <div class="icon inform-icon"></div> | |
32 | {ts}Registration is closed for this event{/ts} | |
33 | </div> | |
34 | {/if} | |
35 | {if call_user_func(array('CRM_Core_Permission','check'), 'access CiviEvent')} | |
36 | <div class="crm-actions-ribbon crm-event-manage-tab-actions-ribbon"> | |
37 | <ul id="actions"> | |
fdf80679 | 38 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit all events') && !empty($manageEventLinks)} |
209989e3 | 39 | <li> |
40 | <div id="crm-event-links-wrapper"> | |
746846f4 | 41 | <span id="crm-event-configure-link" class="crm-hover-button"> |
52604b19 | 42 | <span title="{ts}Configure this event.{/ts}" class="icon ui-icon-wrench"></span> |
746846f4 | 43 | </span> |
209989e3 | 44 | <div class="ac_results" id="crm-event-links-list" style="margin-left: -25px;"> |
45 | <div class="crm-event-links-list-inner"> | |
46 | <ul> | |
fdf80679 CW |
47 | {foreach from=$manageEventLinks item='link'} |
48 | <li> | |
5dfe51ad DG |
49 | {* Schedule Reminders requires a different query string. *} |
50 | {if $link.url EQ 'civicrm/event/manage/reminder'} | |
51 | <a href="{crmURL p=$link.url q="reset=1&action=browse&setTab=1&id=`$event.id`" fb=1}">{$link.title}</a> | |
52 | {else} | |
53 | <a href="{crmURL p=$link.url q="reset=1&action=update&id=`$event.id`" fb=1}">{$link.title}</a> | |
54 | {/if} | |
209989e3 | 55 | </li> |
fdf80679 | 56 | {/foreach} |
209989e3 | 57 | </ul> |
6a488035 | 58 | </div> |
209989e3 | 59 | </div> |
60 | </div> | |
61 | </li> | |
6a488035 | 62 | {/if} |
746846f4 CW |
63 | <li> |
64 | <div id="crm-participant-wrapper"> | |
65 | <span id="crm-participant-links" class="crm-hover-button"> | |
52604b19 | 66 | <span title="{ts}Participant listing links.{/ts}" class="icon ui-icon-search"></span> |
746846f4 CW |
67 | </span> |
68 | <div class="ac_results" id="crm-participant-list" style="margin-left: -25px;"> | |
69 | <div class="crm-participant-list-inner"> | |
70 | <ul> | |
71 | {if $findParticipants.statusCounted} | |
72 | <li><a class="crm-participant-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=true" fb=1}"><b>{ts}List counted participants{/ts}</b> ({$findParticipants.statusCounted|replace:'/':', '})</a></li> | |
73 | {/if} | |
6a488035 | 74 | |
746846f4 CW |
75 | {if $findParticipants.statusNotCounted} |
76 | <li><a class="crm-participant-not-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=false" fb=1}"><b>{ts}List uncounted participants{/ts}</b> ({$findParticipants.statusNotCounted|replace:'/':', '})</a> | |
77 | </li> | |
78 | {/if} | |
79 | {if $participantListingURL} | |
80 | <li><a class="crm-participant-listing" href="{$participantListingURL}">{ts}Public Participant Listing{/ts}</a></li> | |
81 | {/if} | |
82 | </ul> | |
6a488035 | 83 | </div> |
746846f4 CW |
84 | </div> |
85 | </div> | |
86 | </li> | |
6a488035 TO |
87 | </ul> |
88 | <div class="clear"></div> | |
89 | </div> | |
90 | {/if} | |
b470c682 | 91 | <div class="vevent crm-event-id-{$event.id} crm-block crm-event-info-form-block"> |
6a488035 | 92 | <div class="event-info"> |
2a60cb6a FG |
93 | {* Display top buttons only if the page is long enough to merit duplicate buttons *} |
94 | {if $event.summary or $event.description} | |
4afd2da7 | 95 | <div class="crm-actionlinks-top"> |
b7194698 | 96 | {crmRegion name="event-page-eventinfo-actionlinks-top"} |
6a488035 TO |
97 | {if $allowRegistration} |
98 | <div class="action-link section register_link-section register_link-top"> | |
99 | <a href="{$registerURL}" title="{$registerText}" class="button crm-register-button"><span>{$registerText}</span></a> | |
100 | </div> | |
101 | {/if} | |
b7194698 FG |
102 | {/crmRegion} |
103 | </div> | |
2a60cb6a FG |
104 | {/if} |
105 | ||
106 | {if $event.summary} | |
107 | <div class="crm-section event_summary-section"> | |
6a488035 TO |
108 | {$event.summary} |
109 | </div> | |
110 | {/if} | |
111 | {if $event.description} | |
112 | <div class="crm-section event_description-section summary"> | |
6a488035 TO |
113 | {$event.description} |
114 | </div> | |
115 | {/if} | |
116 | <div class="clear"></div> | |
117 | <div class="crm-section event_date_time-section"> | |
118 | <div class="label"><label>{ts}When{/ts}</label></div> | |
119 | <div class="content"> | |
120 | <abbr class="dtstart" title="{$event.event_start_date|crmDate}"> | |
121 | {$event.event_start_date|crmDate}</abbr> | |
122 | {if $event.event_end_date} | |
123 | {ts}through{/ts} | |
124 | {* Only show end time if end date = start date *} | |
125 | {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"} | |
126 | <abbr class="dtend" title="{$event.event_end_date|crmDate:0:1}"> | |
127 | {$event.event_end_date|crmDate:0:1} | |
128 | </abbr> | |
129 | {else} | |
130 | <abbr class="dtend" title="{$event.event_end_date|crmDate}"> | |
131 | {$event.event_end_date|crmDate} | |
132 | </abbr> | |
133 | {/if} | |
134 | {/if} | |
135 | </div> | |
136 | <div class="clear"></div> | |
137 | </div> | |
138 | ||
139 | {if $isShowLocation} | |
140 | ||
141 | {if $location.address.1} | |
142 | <div class="crm-section event_address-section"> | |
143 | <div class="label"><label>{ts}Location{/ts}</label></div> | |
144 | <div class="content">{$location.address.1.display|nl2br}</div> | |
145 | <div class="clear"></div> | |
146 | </div> | |
147 | {/if} | |
148 | ||
149 | {if ( $event.is_map && $config->mapProvider && | |
150 | ( is_numeric($location.address.1.geo_code_1) || | |
f425e142 | 151 | ( $location.address.1.city AND $location.address.1.state_province ) ) ) } |
6a488035 TO |
152 | <div class="crm-section event_map-section"> |
153 | <div class="content"> | |
154 | {assign var=showDirectly value="1"} | |
155 | {include file="CRM/Contact/Form/Task/Map/`$config->mapProvider`.tpl" fields=$showDirectly} | |
156 | <br /><a href="{$mapURL}" title="{ts}Show large map{/ts}">{ts}Show large map{/ts}</a> | |
157 | </div> | |
158 | <div class="clear"></div> | |
159 | </div> | |
160 | {/if} | |
161 | ||
162 | {/if}{*End of isShowLocation condition*} | |
163 | ||
164 | ||
165 | {if $location.phone.1.phone || $location.email.1.email} | |
166 | <div class="crm-section event_contact-section"> | |
167 | <div class="label"><label>{ts}Contact{/ts}</label></div> | |
168 | <div class="content"> | |
169 | {* loop on any phones and emails for this event *} | |
170 | {foreach from=$location.phone item=phone} | |
171 | {if $phone.phone} | |
45618a70 | 172 | {if $phone.phone_type_id}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: |
41e8cd12 | 173 | <span class="tel">{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} </span> <br /> |
6a488035 TO |
174 | {/if} |
175 | {/foreach} | |
176 | ||
177 | {foreach from=$location.email item=email} | |
178 | {if $email.email} | |
179 | {ts}Email:{/ts} <span class="email"><a href="mailto:{$email.email}">{$email.email}</a></span> | |
180 | {/if} | |
181 | {/foreach} | |
182 | </div> | |
183 | <div class="clear"></div> | |
184 | </div> | |
185 | {/if} | |
186 | ||
187 | {if $event.is_monetary eq 1 && $feeBlock.value} | |
188 | <div class="crm-section event_fees-section"> | |
189 | <div class="label"><label>{$event.fee_label}</label></div> | |
190 | <div class="content"> | |
191 | <table class="form-layout-compressed fee_block-table"> | |
192 | {foreach from=$feeBlock.value name=fees item=value} | |
193 | {assign var=idx value=$smarty.foreach.fees.iteration} | |
1393e47e | 194 | {* Skip price field label for quick_config price sets since it duplicates $event.fee_label *} |
6a488035 TO |
195 | {if $feeBlock.lClass.$idx} |
196 | {assign var="lClass" value=$feeBlock.lClass.$idx} | |
197 | {else} | |
198 | {assign var="lClass" value="fee_level-label"} | |
199 | {/if} | |
1393e47e | 200 | {if $isQuickConfig && $lClass EQ "price_set_option_group-label"} |
201 | {* Skip price field label for quick_config price sets since it duplicates $event.fee_label *} | |
202 | {else} | |
6a488035 TO |
203 | <tr> |
204 | <td class="{$lClass} crm-event-label">{$feeBlock.label.$idx}</td> | |
205 | {if $isPriceSet & $feeBlock.isDisplayAmount.$idx} | |
7f7fa13a | 206 | <td class="fee_amount-value right"> |
fe7983e7 | 207 | {if isset($feeBlock.tax_amount.$idx)} |
7f7fa13a | 208 | {$feeBlock.value.$idx} |
3a669c96 | 209 | {else} |
7f7fa13a | 210 | {$feeBlock.value.$idx|crmMoney} |
3a669c96 | 211 | {/if} |
7f7fa13a | 212 | </td> |
6a488035 TO |
213 | {/if} |
214 | </tr> | |
1393e47e | 215 | {/if} |
6a488035 TO |
216 | {/foreach} |
217 | </table> | |
218 | </div> | |
219 | <div class="clear"></div> | |
220 | </div> | |
221 | {/if} | |
222 | ||
223 | ||
224 | {include file="CRM/Custom/Page/CustomDataView.tpl"} | |
225 | ||
4afd2da7 | 226 | <div class="crm-actionlinks-bottom"> |
b7194698 | 227 | {crmRegion name="event-page-eventinfo-actionlinks-bottom"} |
2a60cb6a FG |
228 | {if $allowRegistration} |
229 | <div class="action-link section register_link-section register_link-bottom"> | |
6a488035 | 230 | <a href="{$registerURL}" title="{$registerText}" class="button crm-register-button"><span>{$registerText}</span></a> |
2a60cb6a FG |
231 | </div> |
232 | {/if} | |
b7194698 FG |
233 | {/crmRegion} |
234 | </div> | |
746846f4 | 235 | {if $event.is_public } |
6a488035 TO |
236 | <br />{include file="CRM/Event/Page/iCalLinks.tpl"} |
237 | {/if} | |
238 | ||
239 | {if $event.is_share } | |
7e8bc026 | 240 | {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=1 fe=1 h=1}{/capture} |
6a488035 TO |
241 | {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl} |
242 | {/if} | |
243 | </div> | |
244 | </div> | |
245 | {literal} | |
246 | <script type="text/javascript"> | |
247 | ||
248 | cj('body').click(function() { | |
249 | cj('#crm-event-links-list').hide(); | |
250 | cj('#crm-participant-list').hide(); | |
251 | }); | |
252 | ||
253 | cj('#crm-event-configure-link').click(function(event) { | |
254 | cj('#crm-event-links-list').toggle(); | |
255 | cj('#crm-participant-list').hide(); | |
256 | event.stopPropagation(); | |
257 | }); | |
258 | ||
259 | cj('#crm-participant-links').click(function(event) { | |
260 | cj('#crm-participant-list').toggle(); | |
261 | cj('#crm-event-links-list').hide(); | |
262 | event.stopPropagation(); | |
263 | }); | |
264 | ||
265 | </script> | |
266 | {/literal} |