removing city and location label if no data is present
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 13 Feb 2018 20:25:21 +0000 (15:25 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 13 Feb 2018 20:25:21 +0000 (15:25 -0500)
removing city and location label is no data is present in events agenda view

glm-member-db-events/views/front/events/agenda.html
search.php

index cfc2667..3c48d27 100644 (file)
@@ -75,7 +75,7 @@
                                                         {/if}
                                                          )
                                                         </div>
-                                                        {if $event.locations.city.name !== ''}
+                                                        {if $event.locations.city}
                                                            <div class="glm-agenda-city">City: {$event.locations.city.name}</div>
                                                         {/if}
                                                     {/if}
@@ -91,7 +91,7 @@
                                             {/if}
                                         </div>
                                         <div class="event-contents clearfix">
-                                            {if $event.locations.name !== ''}
+                                            {if $event.locations}
                                                 <div class="glm-agenda-city">Location: {$event.locations.name}</div>
                                             {/if}
                                             {if $event.image}<img style="float:right;" src="{$imgUrl}{$event.image}">{/if}
index 1d519ab..c39d468 100644 (file)
@@ -13,7 +13,6 @@ get_header(); ?>
 <?php get_template_part('inc/hero','header-search'); ?>
 
     <div class="body-content row column">
-
         <div class="medium-8 large-9 columns">
             <section id="primary" class="content-area row">
                 <main id="main" class="site-main columns small-12" role="main">
@@ -21,7 +20,7 @@ get_header(); ?>
                     <?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>
 
                         <header class="page-header">
-                            <h1 class="page-title">Search results for: <?php printf( esc_html__( '%s', 'wmta' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+                            <h1 class="page-title">Search Results for: <?php printf( esc_html__( '%s', 'wmta' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
                         </header><!-- .page-heade-->
 
                         <?php display_memberfindme_directory() ?>