Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2014-10-21-15-20-57
[civicrm-core.git] / templates / CRM / Event / Page / EventInfo.tpl
index 7087007be772809e2102784fd61a404e5821a5a2..f1ae519c2f90b13b3f428fd2c30e4931f2d0a0f6 100644 (file)
 {if call_user_func(array('CRM_Core_Permission','check'), 'access CiviEvent')}
 <div class="crm-actions-ribbon crm-event-manage-tab-actions-ribbon">
   <ul id="actions">
-{if call_user_func(array('CRM_Core_Permission','check'), 'edit all events')}
+{if call_user_func(array('CRM_Core_Permission','check'), 'edit all events') && !empty($manageEventLinks)}
   <li>
     <div id="crm-event-links-wrapper">
-      <div id="crm-event-configure-link"><span title="{ts}Configure this event.{/ts}"><div
-            class="icon settings-icon"></div></span></div>
+      <span id="crm-event-configure-link" class="crm-hover-button">
+        <span title="{ts}Configure this event.{/ts}" class="icon settings-icon"></span>
+      </span>
       <div class="ac_results" id="crm-event-links-list" style="margin-left: -25px;">
         <div class="crm-event-links-list-inner">
           <ul>
-            <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>
-            <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>
-            <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>
-            <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>
-            {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
-              <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>
+            {foreach from=$manageEventLinks item='link'}
+              <li>
+                <a href="{crmURL p=$link.url q="reset=1&action=update&id=`$event.id`" fb=1}">{$link.title}</a>
               </li>
-            {/if}
-            {if $eventCartEnabled}
-              <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>
-            {/if}
-            <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>
-            <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>
+            {/foreach}
           </ul>
         </div>
       </div>
     </div>
   </li>
 {/if}
-<li><div id="crm-participant-wrapper">
-        <div id="crm-participant-links"><span title="{ts}Participant listing links.{/ts}"><div class="icon search-icon"></div></div>
-        <div class="ac_results" id="crm-participant-list" style="margin-left: -25px;">
-             <div class="crm-participant-list-inner">
-               <ul>
-                    {if $findParticipants.statusCounted}
-                <li><a class="crm-participant-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=true"}"><b>{ts}List counted participants{/ts}</b> ({$findParticipants.statusCounted|replace:'/':', '})</a></li>
-              {/if}
+  <li>
+    <div id="crm-participant-wrapper">
+      <span id="crm-participant-links" class="crm-hover-button">
+        <span title="{ts}Participant listing links.{/ts}" class="icon search-icon"></span>
+      </span>
+      <div class="ac_results" id="crm-participant-list" style="margin-left: -25px;">
+        <div class="crm-participant-list-inner">
+          <ul>
+            {if $findParticipants.statusCounted}
+              <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>
+            {/if}
 
-                {if $findParticipants.statusNotCounted}
-            <li><a class="crm-participant-not-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=false"}"><b>{ts}List uncounted participants{/ts}</b> ({$findParticipants.statusNotCounted|replace:'/':', '})</a>
-            </li>
-              {/if}
-                {if $participantListingURL}
-                <li><a class="crm-participant-listing" href="{$participantListingURL}">{ts}Public Participant Listing{/ts}</a></li>
-              {/if}
-            </ul>
-             </div>
+            {if $findParticipants.statusNotCounted}
+              <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>
+              </li>
+            {/if}
+            {if $participantListingURL}
+              <li><a class="crm-participant-listing" href="{$participantListingURL}">{ts}Public Participant Listing{/ts}</a></li>
+            {/if}
+          </ul>
         </div>
-      </div></li>
+      </div>
+    </div>
+  </li>
   </ul>
   <div class="clear"></div>
 </div>
         {/if}
       {/crmRegion}
     </div>
-    { if $event.is_public }
+    {if $event.is_public }
         <br />{include file="CRM/Event/Page/iCalLinks.tpl"}
     {/if}