archive now has feature image
authorIan Weller <ian@gaslightmedia.com>
Wed, 13 Jan 2016 20:53:48 +0000 (15:53 -0500)
committerIan Weller <ian@gaslightmedia.com>
Wed, 13 Jan 2016 20:53:48 +0000 (15:53 -0500)
archive.php

index bfe110e..bdeeeec 100644 (file)
@@ -3,13 +3,28 @@
         <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">
-                            <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                            <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>
                         </header>
                         <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
+                        <!--the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;');-->
+                        <!-- This could be wrapped in php tags and be functional,
+                                but it is easier to change this in admin side-->
+                        
                     </article>
                 </div>
             </div>