adding data equalizer to the page content and the events sideber in county landing...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Feb 2019 22:37:40 +0000 (17:37 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Feb 2019 22:37:40 +0000 (17:37 -0500)
sections/county-landing-page.php

index 57bb41c..df49b45 100644 (file)
@@ -33,8 +33,8 @@
         <?php } ?>
     </div>
 </div>
-<div class="row">
-    <div class="small-12 large-8 columns" data-equalizer-watch>
+<div class="row" data-equalizer>
+    <div class="small-12 large-8 columns county-landing-page-content-container" data-equalizer-watch>
         <?php if ( wp_get_post_parent_id( $post ) == COUNTIES_PAGE_ID ) { ?>
             <?php // if this is a county landing page, wrap content in expandable area, with member list below it ?>
             <div id="county-content-expand-section">
             
         <?php } ?>
     </div>
-    <div class="small-12 medium-4 columns">
-    <?php
-        if ( !isset($GLOBALS['glmDetailSlug']) || !$GLOBALS['glmDetailSlug'] ) {
-            $memberRegion = false; // If not on a member detail page, return events from all regions
-        } else {
-            $memberRegion = apply_filters('get-current-memberinfo-field', 'region'); // returns null if no region found
-        }
-    ?>
-    <?php 
-        // Only show sidebar if memberRegion is set. 
-        // - INT val will show sidebar and show events for that region, occurs when on member detail and region is found
-        // - FALSE val will show sidebar and cause region flag to ignore, occurs when not on member detail (show events from all regions)
-        // - NULL val will make sidebar events not show, occurs when we are on member detail but no region found
-    ?>
-    <?php if ( isset($memberRegion) ) { ?>
-        <div id="sidebar-events" class="county-landing-events">
-            <h2>Upcoming Events</h2>
-            <?php echo do_shortcode('[glm-members-event-list template="eventsFrontPageCity.html" region-search="'. $memberRegion .'" limit="3"]'); ?>
-            <a href="<?php echo get_permalink(757); ?>" class="button view-all-events">View All Events</a>
-        </div>
-    <?php } ?>
+    <div class="small-12 medium-4 columns county-landing-page-events-container" data-equalizer-watch>
+        <?php
+            if ( !isset($GLOBALS['glmDetailSlug']) || !$GLOBALS['glmDetailSlug'] ) {
+                $memberRegion = false; // If not on a member detail page, return events from all regions
+            } else {
+                $memberRegion = apply_filters('get-current-memberinfo-field', 'region'); // returns null if no region found
+            }
+        ?>
+        <?php 
+            // Only show sidebar if memberRegion is set. 
+            // - INT val will show sidebar and show events for that region, occurs when on member detail and region is found
+            // - FALSE val will show sidebar and cause region flag to ignore, occurs when not on member detail (show events from all regions)
+            // - NULL val will make sidebar events not show, occurs when we are on member detail but no region found
+        ?>
+        <?php if ( isset($memberRegion) ) { ?>
+            <div id="sidebar-events" class="county-landing-events">
+                <h2>Upcoming Events</h2>
+                <?php echo do_shortcode('[glm-members-event-list template="eventsFrontPageCity.html" region-search="'. $memberRegion .'" limit="3"]'); ?>
+                <a href="<?php echo get_permalink(757); ?>" class="button view-all-events">View All Events</a>
+            </div>
+        <?php } ?>
     </div>
     <div class="small-12 columns county-landing-members">
         <?php if ( $memberCountyId ) { ?>