If no events then don't do output.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 6 Sep 2016 18:13:16 +0000 (14:13 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 6 Sep 2016 18:13:16 +0000 (14:13 -0400)
If no featured events then no output of the event foreach.

views/front/events/eventsFeed.html

index c6845a8..3f4b879 100644 (file)
@@ -4,6 +4,7 @@
 <div class="small-12 show-for-medium-up medium-3 large-2 columns">
     <a href="{$mainEventUrl}"><button>View All Events</button></a>
 </div>
+{if $events}
 <div class="small-12 columns">
     <div id="feed" class="row collapse">
         {foreach $events as $event}
@@ -17,3 +18,4 @@
         {/foreach}
     </div>
 </div>
+{/if}