Update event detail page view file.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 16 Oct 2018 15:50:40 +0000 (11:50 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 16 Oct 2018 15:50:40 +0000 (11:50 -0400)
correcting the nesting of the location display and the location.

glm-member-db-events/views/front/events/agenda.html
style.css

index c92d895..d252219 100644 (file)
                                                         {/if}
                                                          )
                                                         </div>
-                                                        {if $event.locations.city.name}
-                                                           <div class="glm-agenda-city">City: {$event.locations.city.name}</div>
-                                                        {/if}
                                                     {/if}
                                                 {/if}
                                             {/foreach}
+
+                                        {if $event.locations.city.name}
+                                           <div class="glm-agenda-city">City: {$event.locations.city.name}</div>
+                                        {/if}
+
                                         <div class="day-times-wrapper">
                                             {if !$event.all_day && $showTime}
                                                 {if $event.starting_date|date_format:"%l:%M %P" == $event.ending_date|date_format:"%l:%M %P"}
@@ -85,7 +87,7 @@
                                             {/if}
                                         </div>
                                         <div class="event-contents clearfix">
-                                            {if $event.locations}
+                                            {if isset( $event.locations.name ) && $event.locations.name}
                                                 <div class="glm-agenda-city">Location: {$event.locations.name}</div>
                                             {/if}
                    
         </div>
     </div>
 
-
-
-    <script type="text/javascript">
+<script>
         jQuery(document).ready(function($) {
 
             var fullCalendarLoaded  = false;
 
         });
     </script>
-
index 23ca700..d5931c7 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: visitalpena2018
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for Alpena CVB
-Version: 0.0.1
+Version: 1.0.0
 */