still trying
authorIan Weller <ian@gaslightmedia.com>
Fri, 11 Nov 2016 15:48:14 +0000 (10:48 -0500)
committerIan Weller <ian@gaslightmedia.com>
Fri, 11 Nov 2016 15:48:14 +0000 (10:48 -0500)
I'm still trying to fix the problem I didn't make.  I adjusted the layout
of the archive and home php pages.

archive.php
home.php

index eaafb6e..21c70c8 100644 (file)
@@ -5,29 +5,25 @@
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
-            <?php $status =  get_post_status($post->ID); ?>
             <div class="row content blog-posts-container">
               <!--  <div class="small-11 small-centered columns"> -->
-                <?php 
-                    if (has_post_thumbnail()) {
-
-                        $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>
+                <?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()?>>
+                            <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'); ?>
+                        </article>
                     </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'); ?>        
-                </article>
             </div>
             <?php endwhile; ?>
             <div class="navigation">
index d9774ab..4eede47 100644 (file)
--- a/home.php
+++ b/home.php
@@ -5,41 +5,36 @@
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
-            <?php $status =  get_post_status($post->ID); ?>
             <div class="row content blog-posts-container">
               <!--  <div class="small-11 small-centered columns"> -->
-                <?php 
-                    if (has_post_thumbnail()) {
-
-                        $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>
+                <?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()?>>
+                            <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'); ?>
+                        </article>
                     </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'); ?>
-                </article>
-                </div>
+            </div>
             <?php endwhile; ?>
-                <div class="navigation">
-                    <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span>
-                    <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
-                </div><!-- /.navigation -->
+            <div class="navigation">
+                <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span>
+                <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+            </div><!-- /.navigation -->
             <?php else: ?>
-                <div id="post-404" class="noposts">
-                    <p><?php _e('Sorry, no results were found.');?></p>
-                </div><!-- /#post-404 -->
+            <div id="post-404" class="noposts">
+                <p><?php _e('Sorry, no results were found.');?></p>
+            </div><!-- /#post-404 -->
             <?php endif;?>
-            </div>
         </div>
         <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>