Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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"> | |
38 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit all events')} | |
39 | ||
40 | <li><div id="crm-event-links-wrapper"> | |
41 | <div id="crm-event-configure-link"><span title="{ts}Configure this event.{/ts}"><div class="icon settings-icon"></div></span></div> | |
42 | <div class="ac_results" id="crm-event-links-list" style="margin-left: -25px;"> | |
43 | <div class="crm-event-links-list-inner"> | |
44 | <ul> | |
45 | <li><a title="{ts}Info and Settings{/ts}" href="{crmURL p='civicrm/event/manage/settings' q="reset=1&action=update&id=`$event.id`"}">{ts}Info and Settings{/ts}</a></li> | |
46 | <li><a title="{ts}Location{/ts}" href="{crmURL p='civicrm/event/manage/location' q="reset=1&action=update&id=`$event.id`"}">{ts}Location{/ts}</a></li> | |
47 | <li><a title="{ts}Fees{/ts}" href="{crmURL p='civicrm/event/manage/fee' q="reset=1&action=update&id=`$event.id`"}">{ts}Fees{/ts}</a></li> | |
48 | <li><a title="{ts}Online Registration{/ts}" href="{crmURL p='civicrm/event/manage/registration' q="reset=1&action=update&id=`$event.id`"}">{ts}Online Registration{/ts}</a></li> | |
49 | <li><a title="{ts}Schedule Reminders{/ts}" href="{crmURL p='civicrm/event/manage/reminder' q="reset=1&action=update&id=`$event.id`"}">{ts}Schedule Reminders{/ts}</a></li> | |
50 | {if $eventCartEnabled} | |
51 | <li><a title="{ts}Conference Slots{/ts}" href="{crmURL p='civicrm/event/manage/conference' q="reset=1&action=update&id=`$event.id`"}">{ts}Conference Slots{/ts}</a></li> | |
52 | {/if} | |
53 | <li><a title="{ts}Tell a Friend{/ts}" href="{crmURL p='civicrm/event/manage/friend' q="reset=1&action=update&id=`$event.id`"}">{ts}Tell a Friend{/ts}</a></li> | |
54 | <li><a title="{ts}Personal Campaign Pages{/ts}" href="{crmURL p='civicrm/event/manage/pcp' q="reset=1&action=update&id=`$event.id`"}">{ts}Personal Campaign Pages{/ts}</a></li> | |
55 | </ul> | |
56 | </div> | |
57 | </div> | |
58 | </div></li> | |
59 | ||
60 | {/if} | |
61 | <li><div id="crm-participant-wrapper"> | |
62 | <div id="crm-participant-links"><span title="{ts}Participant listing links.{/ts}"><div class="icon search-icon"></div></div> | |
63 | <div class="ac_results" id="crm-participant-list" style="margin-left: -25px;"> | |
64 | <div class="crm-participant-list-inner"> | |
65 | <ul> | |
66 | {if $findParticipants.statusCounted} | |
67 | <li><a class="crm-participant-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=true"}">{$findParticipants.statusCounted|replace:'/':', '}</a></li> | |
68 | {/if} | |
69 | ||
70 | {if $findParticipants.statusNotCounted} | |
71 | <li><a class="crm-participant-not-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=false"}">{$findParticipants.statusNotCounted|replace:'/':', '}</a> | |
72 | </li> | |
73 | {/if} | |
74 | {if $participantListingURL} | |
75 | <li><a class="crm-participant-listing" href="{$participantListingURL}">{ts}Public Participant Listing{/ts}</a></li> | |
76 | {/if} | |
77 | </ul> | |
78 | </div> | |
79 | </div> | |
80 | </div></li> | |
81 | </ul> | |
82 | <div class="clear"></div> | |
83 | </div> | |
84 | {/if} | |
569df8ec | 85 | <div class="vevent crm-event-id-{$event.id} crm-block crm-event-info-form-block"> |
6a488035 TO |
86 | <div class="event-info"> |
87 | {if $event.summary} | |
88 | <div class="crm-section event_summary-section"> | |
89 | {if $allowRegistration} | |
90 | <div class="action-link section register_link-section register_link-top"> | |
91 | <a href="{$registerURL}" title="{$registerText}" class="button crm-register-button"><span>{$registerText}</span></a> | |
92 | </div> | |
93 | {/if} | |
94 | {$event.summary} | |
95 | </div> | |
96 | {/if} | |
97 | {if $event.description} | |
98 | <div class="crm-section event_description-section summary"> | |
99 | {* Put the top register link to the right of description if no summary *} | |
100 | {if $allowRegistration && !$event.summary} | |
101 | <div class="action-link section register_link-section register_link-top"> | |
102 | <a href="{$registerURL}" title="{$registerText}" class="button crm-register-button"><span>{$registerText}</span></a> | |
103 | </div> | |
104 | {/if} | |
105 | {$event.description} | |
106 | </div> | |
107 | {/if} | |
108 | <div class="clear"></div> | |
109 | <div class="crm-section event_date_time-section"> | |
110 | <div class="label"><label>{ts}When{/ts}</label></div> | |
111 | <div class="content"> | |
112 | <abbr class="dtstart" title="{$event.event_start_date|crmDate}"> | |
113 | {$event.event_start_date|crmDate}</abbr> | |
114 | {if $event.event_end_date} | |
115 | {ts}through{/ts} | |
116 | {* Only show end time if end date = start date *} | |
117 | {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"} | |
118 | <abbr class="dtend" title="{$event.event_end_date|crmDate:0:1}"> | |
119 | {$event.event_end_date|crmDate:0:1} | |
120 | </abbr> | |
121 | {else} | |
122 | <abbr class="dtend" title="{$event.event_end_date|crmDate}"> | |
123 | {$event.event_end_date|crmDate} | |
124 | </abbr> | |
125 | {/if} | |
126 | {/if} | |
127 | </div> | |
128 | <div class="clear"></div> | |
129 | </div> | |
130 | ||
131 | {if $isShowLocation} | |
132 | ||
133 | {if $location.address.1} | |
134 | <div class="crm-section event_address-section"> | |
135 | <div class="label"><label>{ts}Location{/ts}</label></div> | |
136 | <div class="content">{$location.address.1.display|nl2br}</div> | |
137 | <div class="clear"></div> | |
138 | </div> | |
139 | {/if} | |
140 | ||
141 | {if ( $event.is_map && $config->mapProvider && | |
142 | ( is_numeric($location.address.1.geo_code_1) || | |
143 | ( $config->mapGeoCoding && $location.address.1.city AND $location.address.1.state_province ) ) ) } | |
144 | <div class="crm-section event_map-section"> | |
145 | <div class="content"> | |
146 | {assign var=showDirectly value="1"} | |
147 | {include file="CRM/Contact/Form/Task/Map/`$config->mapProvider`.tpl" fields=$showDirectly} | |
148 | <br /><a href="{$mapURL}" title="{ts}Show large map{/ts}">{ts}Show large map{/ts}</a> | |
149 | </div> | |
150 | <div class="clear"></div> | |
151 | </div> | |
152 | {/if} | |
153 | ||
154 | {/if}{*End of isShowLocation condition*} | |
155 | ||
156 | ||
157 | {if $location.phone.1.phone || $location.email.1.email} | |
158 | <div class="crm-section event_contact-section"> | |
159 | <div class="label"><label>{ts}Contact{/ts}</label></div> | |
160 | <div class="content"> | |
161 | {* loop on any phones and emails for this event *} | |
162 | {foreach from=$location.phone item=phone} | |
163 | {if $phone.phone} | |
164 | {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: | |
41e8cd12 | 165 | <span class="tel">{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} </span> <br /> |
6a488035 TO |
166 | {/if} |
167 | {/foreach} | |
168 | ||
169 | {foreach from=$location.email item=email} | |
170 | {if $email.email} | |
171 | {ts}Email:{/ts} <span class="email"><a href="mailto:{$email.email}">{$email.email}</a></span> | |
172 | {/if} | |
173 | {/foreach} | |
174 | </div> | |
175 | <div class="clear"></div> | |
176 | </div> | |
177 | {/if} | |
178 | ||
179 | {if $event.is_monetary eq 1 && $feeBlock.value} | |
180 | <div class="crm-section event_fees-section"> | |
181 | <div class="label"><label>{$event.fee_label}</label></div> | |
182 | <div class="content"> | |
183 | <table class="form-layout-compressed fee_block-table"> | |
184 | {foreach from=$feeBlock.value name=fees item=value} | |
185 | {assign var=idx value=$smarty.foreach.fees.iteration} | |
186 | {* Skip price field label for quick_config price sets since it duplicates $event.fee_label *} | |
187 | {if $feeBlock.lClass.$idx} | |
188 | {assign var="lClass" value=$feeBlock.lClass.$idx} | |
189 | {else} | |
190 | {assign var="lClass" value="fee_level-label"} | |
191 | {/if} | |
192 | {if $isQuickConfig && $lClass EQ "price_set_option_group-label"} | |
193 | {* Skip price field label for quick_config price sets since it duplicates $event.fee_label *} | |
194 | {else} | |
195 | <tr> | |
196 | <td class="{$lClass} crm-event-label">{$feeBlock.label.$idx}</td> | |
197 | {if $isPriceSet & $feeBlock.isDisplayAmount.$idx} | |
198 | <td class="fee_amount-value right">{$feeBlock.value.$idx|crmMoney}</td> | |
199 | {/if} | |
200 | </tr> | |
201 | {/if} | |
202 | {/foreach} | |
203 | </table> | |
204 | </div> | |
205 | <div class="clear"></div> | |
206 | </div> | |
207 | {/if} | |
208 | ||
209 | ||
210 | {include file="CRM/Custom/Page/CustomDataView.tpl"} | |
211 | ||
212 | {if $allowRegistration} | |
213 | <div class="action-link section register_link-section register_link-bottom"> | |
214 | <a href="{$registerURL}" title="{$registerText}" class="button crm-register-button"><span>{$registerText}</span></a> | |
215 | </div> | |
216 | {/if} | |
217 | { if $event.is_public } | |
218 | <br />{include file="CRM/Event/Page/iCalLinks.tpl"} | |
219 | {/if} | |
220 | ||
221 | {if $event.is_share } | |
7e8bc026 | 222 | {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=1 fe=1 h=1}{/capture} |
6a488035 TO |
223 | {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl} |
224 | {/if} | |
225 | </div> | |
226 | </div> | |
227 | {literal} | |
228 | <script type="text/javascript"> | |
229 | ||
230 | cj('body').click(function() { | |
231 | cj('#crm-event-links-list').hide(); | |
232 | cj('#crm-participant-list').hide(); | |
233 | }); | |
234 | ||
235 | cj('#crm-event-configure-link').click(function(event) { | |
236 | cj('#crm-event-links-list').toggle(); | |
237 | cj('#crm-participant-list').hide(); | |
238 | event.stopPropagation(); | |
239 | }); | |
240 | ||
241 | cj('#crm-participant-links').click(function(event) { | |
242 | cj('#crm-participant-list').toggle(); | |
243 | cj('#crm-event-links-list').hide(); | |
244 | event.stopPropagation(); | |
245 | }); | |
246 | ||
247 | </script> | |
248 | {/literal} |