added images to blog excerpts
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 4 Jan 2016 13:32:21 +0000 (08:32 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 4 Jan 2016 13:32:21 +0000 (08:32 -0500)
home.php
parts/slide-show.php

index 488e5f8..f44a336 100644 (file)
--- a/home.php
+++ b/home.php
@@ -7,7 +7,16 @@
         <div id="blog-posts-over" class="small-12 medium-9 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row content blog-posts-container">
-                <div class="small-11 small-centered columns">
+<!--                <div class="small-11 small-centered columns">-->
+                <?php $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
+                <?php if ($thumbnail) { ?>
+                <div class="small-12 medium-4 columns text-center blog-feed-imgs">
+                    <?php echo $thumbnail; ?>
+                </div>
+                <div class="small-12 medium-8 columns blog-feed-contents">
+                    <?php } else { ?>
+                    <div class="small-12 columns blog-feed-content">
+                        <?php } ?>
                     <article id="<?php the_ID()?>" <?php post_class()?>>
                         <header class="entry-header">
                             <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
index f0238fb..4a5bf04 100644 (file)
@@ -1,6 +1,7 @@
 <?php if (is_front_page()) {
     echo '<div id="slideshow">';
     echo do_shortcode("[metaslider id=13]");
+    echo do_shortcode("[metaslider id=4492]");
     echo '</div>';
 }
 ?>