Update style for the aligncenter image and output post for the blocks
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Nov 2014 15:36:14 +0000 (10:36 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Nov 2014 15:36:14 +0000 (10:36 -0500)
Block areas will have three of the posh categories
Our Latest Design
New at Preston Feather
Seasonal Tips

css/styles.css
front-page.php

index cff3980..ff45175 100644 (file)
@@ -481,8 +481,11 @@ top-bar-section .has-dropdown .dropdown li.has-dropdown > a:after {
 
 /* Images */
 
-img.centered {
+img.aligncenter {
     display: block;
+    clear: both;
+    float:none;
+    padding:0;
     margin-left: auto;
     margin-right: auto;
     }
index 54165bd..4d01503 100644 (file)
     <div class="row" id="space">
         <div class="text-center small-12 medium-12 medium-centered large-uncentered large-4 columns">
             <?php
-            the_block('mc-block-one',array(
-                'label'         => __('Block One', 'text-domain'),
-                'type'          => 'editor',
-                'apply_filters' => true
-            ));
-            ?>
+            $args = array( 'numberposts' => 1, 'category_name' => 'Our Latest Design' );
+            $lastposts = get_posts( $args );
+            foreach($lastposts as $post) : setup_postdata($post); ?>
+                <?php echo get_the_post_thumbnail($post->ID, array(298, 228), array('class' => 'aligncenter')); ?>
+                <a class="title-posts" href="<?php the_permalink(); ?>"><h2>Our Latest Design</h2></a>
+                <?php echo the_advanced_excerpt('length=20&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong&read_more='); ?>
+            <?php endforeach; ?>
         </div>
         <div class="text-center small-12 medium-12 medium-centered large-uncentered large-4 columns">
             <?php
-            the_block('mc-block-two',array(
-                'label'         => __('Block Two', 'text-domain'),
-                'type'          => 'editor',
-                'apply_filters' => true
-            ));
-            ?>
+            $args = array( 'numberposts' => 1, 'category_name' => 'New at Preston Feather' );
+            $lastposts = get_posts( $args );
+            foreach($lastposts as $post) : setup_postdata($post); ?>
+                <?php echo get_the_post_thumbnail($post->ID, array(298, 228), array('class' => 'aligncenter')); ?>
+                <a class="title-posts" href="<?php the_permalink(); ?>"><h2>New at Preston Feather</h2></a>
+                <?php echo the_advanced_excerpt('length=20&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong&read_more='); ?>
+            <?php endforeach; ?>
         </div>
         <div class="text-center small-12 medium-12 medium-centerecd large-uncentered large-4 columns">
             <?php
-            the_block('mc-block-three',array(
-                'label'         => __('Block Three', 'text-domain'),
-                'type'          => 'editor',
-                'apply_filters' => true
-            ));
-            ?>
+            $args = array( 'numberposts' => 1, 'category_name' => 'Seasonal Tips' );
+            $lastposts = get_posts( $args );
+            foreach($lastposts as $post) : setup_postdata($post); ?>
+                <?php echo get_the_post_thumbnail($post->ID, array(298, 228), array('class' => 'aligncenter')); ?>
+                <a class="title-posts" href="<?php the_permalink(); ?>"><h2>Seasonal Tips</h2></a>
+                <?php echo the_advanced_excerpt('length=20&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong&read_more='); ?>
+            <?php endforeach; ?>
         </div>
     </div>
     <section class="row" id="print">
@@ -66,7 +69,7 @@
                 data-cycle-log="false"
                  >
 <?php
-$args = array( 'numberposts' => 4 );
+$args = array( 'numberposts' => 4, 'category_name' => 'Preston Feather' );
 $lastposts = get_posts( $args );
 foreach($lastposts as $post) : setup_postdata($post); ?>
     <div>