detail page updates
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Mar 2016 16:54:53 +0000 (11:54 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Mar 2016 16:54:53 +0000 (11:54 -0500)
Adding js for the detail so calendars work
Moving the event title up the page.

models/front/events/detail.php
views/front/events/detail.html

index 6779e16..f87aa25 100644 (file)
@@ -82,6 +82,15 @@ class GLmMembersFront_events_detail extends GlmDataEvents
         }
 
         $categories = $this->getCategories();
+        wp_register_script(
+            'event-dashboard-js',
+            GLM_MEMBERS_EVENTS_PLUGIN_BASE_URL . '/js/dashboard.js',
+            'jquery-datepicker',
+            GLM_MEMBERS_EVENTS_PLUGIN_VERSION,
+            true
+        );
+        wp_enqueue_script('event-dashboard-js');
+
 
         switch ($action) {
         case 'event-detail':
index 5d3e485..ab5049f 100644 (file)
@@ -4,6 +4,9 @@
             {include file='front/events/shortCuts.html'}
     </div>
     <div class="row">
+        <div class="small-12 column">
+            <h1>{$event.title}</h1>
+        </div>
         <div class="small-12 column">
             <img style="margin: 15px;" src="http://placehold.it/730x280">
         </div>
@@ -16,7 +19,7 @@
                 <div class="small-7 column">
                     <div class="row">
                         <div class="small-12 column"><strong>{$event.starting}</strong></div>
-                        <div class="small-12 column"><strong>{$event.title}</strong><br>
+                        <div class="small-12 column">
                             {$event.street}<br>
                             {$event.city}, {$event.state} {$event.zip}
                         </div>