| 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} |
| 85 | <div class="vevent crm-event-id-{$event.id} crm-block crm-event-info-form-block"> |
| 86 | <div class="event-info"> |
| 87 | {* Display top buttons only if the page is long enough to merit duplicate buttons *} |
| 88 | {if $event.summary or $event.description} |
| 89 | <div class="actionlinks-top"> |
| 90 | {crmRegion name="event-page-eventinfo-actionlinks-top"} |
| 91 | {if $allowRegistration} |
| 92 | <div class="action-link section register_link-section register_link-top"> |
| 93 | <a href="{$registerURL}" title="{$registerText}" class="button crm-register-button"><span>{$registerText}</span></a> |
| 94 | </div> |
| 95 | {/if} |
| 96 | {/crmRegion} |
| 97 | </div> |
| 98 | {/if} |
| 99 | |
| 100 | {if $event.summary} |
| 101 | <div class="crm-section event_summary-section"> |
| 102 | {$event.summary} |
| 103 | </div> |
| 104 | {/if} |
| 105 | {if $event.description} |
| 106 | <div class="crm-section event_description-section summary"> |
| 107 | {$event.description} |
| 108 | </div> |
| 109 | {/if} |
| 110 | <div class="clear"></div> |
| 111 | <div class="crm-section event_date_time-section"> |
| 112 | <div class="label"><label>{ts}When{/ts}</label></div> |
| 113 | <div class="content"> |
| 114 | <abbr class="dtstart" title="{$event.event_start_date|crmDate}"> |
| 115 | {$event.event_start_date|crmDate}</abbr> |
| 116 | {if $event.event_end_date} |
| 117 | {ts}through{/ts} |
| 118 | {* Only show end time if end date = start date *} |
| 119 | {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"} |
| 120 | <abbr class="dtend" title="{$event.event_end_date|crmDate:0:1}"> |
| 121 | {$event.event_end_date|crmDate:0:1} |
| 122 | </abbr> |
| 123 | {else} |
| 124 | <abbr class="dtend" title="{$event.event_end_date|crmDate}"> |
| 125 | {$event.event_end_date|crmDate} |
| 126 | </abbr> |
| 127 | {/if} |
| 128 | {/if} |
| 129 | </div> |
| 130 | <div class="clear"></div> |
| 131 | </div> |
| 132 | |
| 133 | {if $isShowLocation} |
| 134 | |
| 135 | {if $location.address.1} |
| 136 | <div class="crm-section event_address-section"> |
| 137 | <div class="label"><label>{ts}Location{/ts}</label></div> |
| 138 | <div class="content">{$location.address.1.display|nl2br}</div> |
| 139 | <div class="clear"></div> |
| 140 | </div> |
| 141 | {/if} |
| 142 | |
| 143 | {if ( $event.is_map && $config->mapProvider && |
| 144 | ( is_numeric($location.address.1.geo_code_1) || |
| 145 | ( $config->mapGeoCoding && $location.address.1.city AND $location.address.1.state_province ) ) ) } |
| 146 | <div class="crm-section event_map-section"> |
| 147 | <div class="content"> |
| 148 | {assign var=showDirectly value="1"} |
| 149 | {include file="CRM/Contact/Form/Task/Map/`$config->mapProvider`.tpl" fields=$showDirectly} |
| 150 | <br /><a href="{$mapURL}" title="{ts}Show large map{/ts}">{ts}Show large map{/ts}</a> |
| 151 | </div> |
| 152 | <div class="clear"></div> |
| 153 | </div> |
| 154 | {/if} |
| 155 | |
| 156 | {/if}{*End of isShowLocation condition*} |
| 157 | |
| 158 | |
| 159 | {if $location.phone.1.phone || $location.email.1.email} |
| 160 | <div class="crm-section event_contact-section"> |
| 161 | <div class="label"><label>{ts}Contact{/ts}</label></div> |
| 162 | <div class="content"> |
| 163 | {* loop on any phones and emails for this event *} |
| 164 | {foreach from=$location.phone item=phone} |
| 165 | {if $phone.phone} |
| 166 | {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: |
| 167 | <span class="tel">{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} </span> <br /> |
| 168 | {/if} |
| 169 | {/foreach} |
| 170 | |
| 171 | {foreach from=$location.email item=email} |
| 172 | {if $email.email} |
| 173 | {ts}Email:{/ts} <span class="email"><a href="mailto:{$email.email}">{$email.email}</a></span> |
| 174 | {/if} |
| 175 | {/foreach} |
| 176 | </div> |
| 177 | <div class="clear"></div> |
| 178 | </div> |
| 179 | {/if} |
| 180 | |
| 181 | {if $event.is_monetary eq 1 && $feeBlock.value} |
| 182 | <div class="crm-section event_fees-section"> |
| 183 | <div class="label"><label>{$event.fee_label}</label></div> |
| 184 | <div class="content"> |
| 185 | <table class="form-layout-compressed fee_block-table"> |
| 186 | {foreach from=$feeBlock.value name=fees item=value} |
| 187 | {assign var=idx value=$smarty.foreach.fees.iteration} |
| 188 | {* Skip price field label for quick_config price sets since it duplicates $event.fee_label *} |
| 189 | {if $feeBlock.lClass.$idx} |
| 190 | {assign var="lClass" value=$feeBlock.lClass.$idx} |
| 191 | {else} |
| 192 | {assign var="lClass" value="fee_level-label"} |
| 193 | {/if} |
| 194 | {if $isQuickConfig && $lClass EQ "price_set_option_group-label"} |
| 195 | {* Skip price field label for quick_config price sets since it duplicates $event.fee_label *} |
| 196 | {else} |
| 197 | <tr> |
| 198 | <td class="{$lClass} crm-event-label">{$feeBlock.label.$idx}</td> |
| 199 | {if $isPriceSet & $feeBlock.isDisplayAmount.$idx} |
| 200 | <td class="fee_amount-value right">{$feeBlock.value.$idx|crmMoney}</td> |
| 201 | {/if} |
| 202 | </tr> |
| 203 | {/if} |
| 204 | {/foreach} |
| 205 | </table> |
| 206 | </div> |
| 207 | <div class="clear"></div> |
| 208 | </div> |
| 209 | {/if} |
| 210 | |
| 211 | |
| 212 | {include file="CRM/Custom/Page/CustomDataView.tpl"} |
| 213 | |
| 214 | <div class="actionlinks-bottom"> |
| 215 | {crmRegion name="event-page-eventinfo-actionlinks-bottom"} |
| 216 | {if $allowRegistration} |
| 217 | <div class="action-link section register_link-section register_link-bottom"> |
| 218 | <a href="{$registerURL}" title="{$registerText}" class="button crm-register-button"><span>{$registerText}</span></a> |
| 219 | </div> |
| 220 | {/if} |
| 221 | {/crmRegion} |
| 222 | </div> |
| 223 | { if $event.is_public } |
| 224 | <br />{include file="CRM/Event/Page/iCalLinks.tpl"} |
| 225 | {/if} |
| 226 | |
| 227 | {if $event.is_share } |
| 228 | {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=1 fe=1 h=1}{/capture} |
| 229 | {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl} |
| 230 | {/if} |
| 231 | </div> |
| 232 | </div> |
| 233 | {literal} |
| 234 | <script type="text/javascript"> |
| 235 | |
| 236 | cj('body').click(function() { |
| 237 | cj('#crm-event-links-list').hide(); |
| 238 | cj('#crm-participant-list').hide(); |
| 239 | }); |
| 240 | |
| 241 | cj('#crm-event-configure-link').click(function(event) { |
| 242 | cj('#crm-event-links-list').toggle(); |
| 243 | cj('#crm-participant-list').hide(); |
| 244 | event.stopPropagation(); |
| 245 | }); |
| 246 | |
| 247 | cj('#crm-participant-links').click(function(event) { |
| 248 | cj('#crm-participant-list').toggle(); |
| 249 | cj('#crm-event-links-list').hide(); |
| 250 | event.stopPropagation(); |
| 251 | }); |
| 252 | |
| 253 | </script> |
| 254 | {/literal} |