Updates for the blog section
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 22 Jun 2016 15:21:44 +0000 (11:21 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 22 Jun 2016 15:21:44 +0000 (11:21 -0400)
Update the blog home.php so it has the featured image below the title.
Otherwise it is looking very squashed.
Update the menu for the sidebar so when you're in the blog section it
holds the who are we menu.
Fixing the blogs recent area so drafts don't show.

archive.php
home.php
lib/navigation.php
single.php

index 2141535..0fbf549 100644 (file)
@@ -3,7 +3,7 @@
     <?php get_template_part('parts/statements');?>
     <div class="row">
         <div class="large-3 columns">
-            <?php get_sidebar(); ?>
+            <?php $blog_page = true; get_sidebar(); ?>
         </div>
         <div id="blog-posts-over" class="small-12 medium-8 large-6 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
index 8e9fb03..54ec5e5 100644 (file)
--- a/home.php
+++ b/home.php
@@ -6,26 +6,22 @@
     <?php get_template_part('parts/statements');?>
     <div class="row">
         <div class="large-3 columns">
-            <?php get_sidebar(); ?>
+            <?php $blog_page = true; get_sidebar(); ?>
         </div>
         <div id="blog-posts-over" class="small-12 medium-8 large-6 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row content blog-posts-container">
-              <!--  <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-11 small-centered columns">
                     <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>
+                            <?php $thumbnail = get_the_post_thumbnail($post->ID, 'large'); ?>
+                            <?php if ($thumbnail) { ?>
+                                <div class="featured-image-wrap"><?php echo $thumbnail; ?></div>
+                            <?php } ?>
                             <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(); ?>
@@ -36,6 +32,7 @@
                     </article>
                 </div>
             </div>
+        </div>
             <?php endwhile; ?>
             <div class="navigation">
                 <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span>
index c4f623d..161c6fa 100644 (file)
@@ -165,7 +165,10 @@ function glm_get_menu_options()
 //    echo '</ul><!-- end -->'."\n";
 //}
 function glm_side_menu($mobile = false) {
-    global $post;
+    global $post, $blog_page;
+    if ( isset( $blog_page) && $blog_page ) {
+        $post = get_post( 511 );
+    }
     $sideMenu = $allMenu = $pageMenuId = array();
 //     do not use appearance menu for the following page ID's or their ancestors
 
index b50f083..1cc73f6 100644 (file)
@@ -3,7 +3,7 @@
     <?php get_template_part('parts/statements');?>
     <div class="row">
         <div class="large-3 columns">
-            <?php get_sidebar(); ?>
+            <?php $blog_page = true; get_sidebar(); ?>
         </div>
         <div id="blog-posts-over" class="small-12 medium-8 large-6 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>