Update the glm-blocks partial
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 13 May 2015 16:43:03 +0000 (12:43 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 13 May 2015 16:43:03 +0000 (12:43 -0400)
to be what was setup in template

parts/glm-blocks.php

index 2884356..9547138 100644 (file)
@@ -1,12 +1,14 @@
 <?php if(function_exists('fetch_all_glm_blocks')):?>
 <?php $blocks = fetch_all_glm_blocks();?>
-<div class="blocks">
+<div class="row">
     <?php foreach ($blocks as $block):?>
-    <div class="small-text-center small-10 small-centered large-uncentered large-4 columns large-text-left blocks">
+    <div class="small-12 large-4 columns small-text-center large-text-left  blocks">
             <?php if($block->url):?>
             <a href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
             <?php endif;?>
-            <?php echo $block->thumbnail;?>
+            <?php
+            $block->thumbnail = get_the_post_thumbnail( $block->ID, array(257, 186) );
+            echo $block->thumbnail;?>
             <?php if($block->url):?>
             </a>
             <?php endif;?>
@@ -17,8 +19,8 @@
             <?php if($block->url):?>
             </a>
              <?php endif;?>
-        <p><?php echo $block->post_excerpt;?></p>
-        <a class="blocks-readmore" href="<?php echo $block->url;?>">Read More...</a>
+        <p><?php echo $block->post_content . $block->post_excerpt;?></p>
+        <a class="more" href="<?php echo $block->url;?>">More info...</a>
     </div>
     <?php endforeach;?>
 </div>