only displaying front page events section if there are events
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 28 Jun 2017 15:23:49 +0000 (11:23 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 28 Jun 2017 15:23:49 +0000 (11:23 -0400)
not showing the performances section if there are no events to display

glm-member-db-events/views/front/events/homePage.html

index 3545bea..58e2b72 100644 (file)
@@ -1,3 +1,4 @@
+{if !empty({$events})}
 <div id="glm-event-wrapper">
    
 
@@ -71,9 +72,7 @@
                          </div>
                     </div>
                     <div class="front-event-info front-event-links small-12 large-3 columns">
-                        {if $event.ticket_url}
-                            <a class="front-event-link subscribe-link" target="_blank" href="{$event.ticket_url}">Subscribe</a>
-                        {/if}
+                        <a class="front-event-link subscribe-link" href="">Subscribe</a>
                         <a class="front-event-link learn-link" href="{$siteBaseUrl}{$pageSlug}/{if !$customPage}{$event.name_slug}/{else}?eventId={$event.id}{/if}">Learn More</a>
                     </div>
                 </div>
@@ -98,3 +97,4 @@
        });
     });
 </script>
+{/if}
\ No newline at end of file