removed glm header from blog posts. Added featured images to blog section
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Nov 2015 17:36:33 +0000 (12:36 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Nov 2015 17:36:33 +0000 (12:36 -0500)
home.php
single.php

index 81c55f8..e02eb48 100644 (file)
--- a/home.php
+++ b/home.php
@@ -8,8 +8,19 @@
         <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">
-                    <article id="<?php the_ID()?>" <?php post_class()?>>
+              <!--  <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>
                             <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
index c62328d..84e3970 100644 (file)
@@ -1,5 +1,4 @@
 <?php get_header(); ?>
-<?php echo glm_get_header(); ?>
     <main class="blog-single">    
         <div class="row">
             <div id="blog-posts-over" class="small-12 medium-9 columns">