changing archive.php to match home.php for the blog home page styles
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 21 Oct 2016 18:50:05 +0000 (14:50 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 21 Oct 2016 18:50:05 +0000 (14:50 -0400)
archive.php
single.php

index c90c507..f0d80dd 100644 (file)
         <?php $status =  get_post_status($post->ID); ?>
         <div class="row content blog-posts-container">
               <!--  <div class="small-11 small-centered columns"> -->
-                <div class="small-12">
-                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
-                </div>
-                <?php 
+              <?php 
                     if (has_post_thumbnail()) {
-                        $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
-                        echo '<a href="'.get_the_permalink().'" class="blog-featured-home small-12 medium-6" style="background-image:url('.$image_data[0].');"></a>';
-                        echo '<div class="small-12 medium-6 small-centered columns right">';
+                        $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
+                <div class="small-12 medium-4 columns text-center blog-feed-imgs">
+                    <?php echo $thumbnail; ?>
+                </div>
+                <?php  echo '<div class="small-12 medium-8 small-centered columns right">';
                     } else {
                         echo '<div class="small-12 small-centered columns">';
                     }
                 ?>
                 <article id="<?php the_ID()?>" <?php post_class()?>>
+                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
                     <div class="blog-excerpt-date">
                         Posted on <strong><?php the_time('F jS, Y'); ?></strong>
                     </div>
                     <?php echo the_advanced_excerpt('length=265&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?>
-                    <hr class="contentBreak">
-                    
                 </article>
-                <?php //get_template_parts('parts/share-this'); ?>
+
             </div>
         </div>
         <?php endwhile; ?>
index 7492bf0..a7947e3 100644 (file)
@@ -29,7 +29,7 @@
                                     <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5135fe4558d287a9"></script>
                                     <!--                                        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>-->
                                     <!-- AddThis Button END -->
-                                </div><!--/#addthis_wrapper-->
+                                    </div><!--/#addthis_wrapper-->
                                 </header>
                                 <?php echo the_content(); ?>
                                 <?php if (!is_post_type("ai1ec_event")) { ?>