wrapping location details in the reg list in a conditional for the icons
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Dec 2017 21:29:52 +0000 (16:29 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Dec 2017 21:29:52 +0000 (16:29 -0500)
icons showing even if there is no reg event data

views/front/registrations/list.html

index b715458..9d8f877 100644 (file)
                                 </div>
 
                             {/if}
-                            {if $event.hide_address.name == 'No'}                       
-                                <div class="glm-columns glm-small-12 glm-reg-list-details glm-reg-list-location">
-                                    {if !$event.use_member_location.value && isset($event.locations) && ($event.locations.name || $event.locations.address)}
-                                        {if $event.locations.name}{$event.locations.name}<br>{/if}
-                                    {/if}
-                                </div>                            
+                            {if $event.hide_address.name == 'No'}       
+                                {if !$event.use_member_location.value && isset($event.locations) && ($event.locations.name || $event.locations.address)}
+                                    <div class="glm-columns glm-small-12 glm-reg-list-details glm-reg-list-location">
+                                           {if $event.locations.name}{$event.locations.name}<br>{/if}
+                                    </div>        
+                                {/if}
                             {/if}          
                         </div>
                     </div>