working with the data-equalizer
authorIan Weller <ian@gaslightmedia.com>
Mon, 10 Oct 2016 13:13:09 +0000 (09:13 -0400)
committerIan Weller <ian@gaslightmedia.com>
Mon, 10 Oct 2016 13:13:09 +0000 (09:13 -0400)
I have been trying to make the data equalizer work for the action items
and the blocks.  So far the blocks are the only one that are working.

front-page.php
parts/action-items.php
parts/glm-blocks.php

index 27c5571..06b82cd 100644 (file)
@@ -2,7 +2,7 @@
 <main class="page-front">
     <?php get_template_part('parts/slide-show');?>
     <div id="content-wrapper">
-        <div id="action-row" class="row">
+        <div id="action-row" class="row" data-equalizer data-options="equalize_on_stack: true">
             <?php
             get_template_part('parts/action-items');
             ?>
@@ -16,7 +16,7 @@
                 <?php endif;?>
             </div>
         </div>
-        <div id="block-row" class="row" data-equalizer data-options="equalize_on_stack: false">
+        <div id="block-row" class="row" data-equalizer data-options="equalize_on_stack: true">
             <?php
             get_template_part('parts/glm-blocks');
             ?>
index 544db1b..907bf8b 100644 (file)
@@ -1,4 +1,4 @@
-<div class="small-11 small-centered medium-uncentered medium-6 columns action-item">
+<div class="small-11 small-centered medium-uncentered medium-6 columns action-item" data-equalizer-watch>
     <a class="click-container" href="#">
         <div class="content-container">
             <img alt="Bridge Conditions">
@@ -9,7 +9,7 @@
         </div>
     </a>
 </div>
-<div class="small-11 small-centered medium-uncentered medium-6 columns action-item">
+<div class="small-11 small-centered medium-uncentered medium-6 columns action-item" data-equalizer-watch>
     <a class="click-container" href="#">
         <div class="content-container">
             <img alt="Live Bridge Cam Image">
index f454c07..a5e4fde 100644 (file)
@@ -3,7 +3,7 @@
 <div class="blocks">
     <div class="row">
         <?php foreach ($blocks as $block):?>
-            <div class="text-center small-12 medium-6 columns large-text-left block">
+            <div class="text-center small-12 medium-6 columns large-text-left block" data-equalizer-watch>
                 <div class="row">
                     <div class="small-8 small-centered medium-uncentered medium-5 columns">
                         <?php echo get_the_post_thumbnail($block->ID, 'glm-block-image');?>