edited blog page to request
authorIan Weller <ian@gaslightmedia.com>
Wed, 13 Jan 2016 19:29:17 +0000 (14:29 -0500)
committerIan Weller <ian@gaslightmedia.com>
Wed, 13 Jan 2016 19:29:17 +0000 (14:29 -0500)
archive.php
css/appblog.css
index.php
index.save.php
scss/_blog.scss
search.php
single.php

index df80745..bfe110e 100644 (file)
                             <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(); ?>
-                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                            <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                            $cats = array();
-                            echo 'This entry was posted ';
-                            if (has_category()) {
-                                echo 'in';
-                                foreach($post_categories as $c){
-                                    $cat = get_category( $c );
-                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                                }
-                                echo '.';
-                            }
-                            ?>
-                        </footer>
                     </article>
                 </div>
             </div>
index d3aef0f..549590c 100644 (file)
@@ -18,6 +18,9 @@ input[type="submit"].blogbutton {
   margin-bottom: 15px;
   display: inline-block;
   width: 100%; }
+  #blog-posts-over article #addthis_wrapper {
+    margin-top: -25px;
+  }
   #blog-posts-over article .entry-header {
     background: transparent; }
   #blog-posts-over article p {
index 2315585..2694e1b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,31 +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-->
-                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                        <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                        $cats = array();
-                        echo 'This entry was posted ';
-                        if (has_category()) {
-                            echo 'in';
-                            foreach($post_categories as $c){
-                                $cat = get_category( $c );
-                                $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                            }
-                            echo '.';
-                        }
-                        ?>
-                        </footer>
+                        <!--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>
index 721f578..7ee4ba4 100644 (file)
@@ -2,10 +2,22 @@
 <main class="blog-home">
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
+            <h1>Stafford's Blog</h1>
             <?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>
                         <!--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-->
-                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                            <?php $post_categories = wp_get_post_categories( get_the_ID() );
-                            $cats = array();
-                            echo 'This entry was posted ';
-                            if (has_category()) {
-                                echo 'in';
-                                foreach($post_categories as $c){
-                                    $cat = get_category( $c );
-                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                                }
-                                echo '.';
-                            }
-                            ?>
-                        </footer>
+                        
                     </article>
                 </div>
             </div>
index 0222e04..7a1c4c0 100644 (file)
@@ -22,6 +22,9 @@ input[type="submit"].blogbutton {
     .entry-header {
         background: transparent;
     }
+    #addthis_wrapper {
+        margin-top: -25px;
+    }
     p {
         padding-bottom: 15px;
     }
index bc54287..ae0fc40 100644 (file)
                 <!-- End of the Contextual/Highlight Search -->
 
                         <?php //echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
-                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-                            <?php
-                            if (has_category()) {
-                                $post_categories = wp_get_post_categories( get_the_ID() );
-                                $cats = array();
-                                echo 'This entry was posted ';
-                                echo 'in';
-                                foreach($post_categories as $c){
-                                    $cat = get_category( $c );
-                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                                }
-                                echo '.';
-                            }
-                            ?>
-                        </footer>
                     </article>
                 </div>
             </div>
         <div id="blog-side-info-wrapper" class="small-11 small-only-text-center medium-3 columns">
             <div id="blog-side-info">
                 <form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
-                    <div><input id="s" class="text" type="text" name="s" value="" />
+                    <div><input id="s" class="text" type="text" name="s" value="" placeholder="Search" />
                     <input class="submit button" type="submit" name="submit" value="Search" />
                     <input type="hidden" name="searchType" value="blog" /> </div>
                 </form>
index c6943d5..552ba0f 100644 (file)
@@ -19,7 +19,7 @@
                                 <div id="addthis_wrapper">
                                     <!-- AddThis Button BEGIN -->
                                     <div class="addthis_toolbox addthis_default_style ">
-                                        <a class="addthis_counter addthis_pill_style"></a>
+                                        <a class="addthis_counter addthis_pill_style right"></a>
                                     </div>
                                     <script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>
                                     <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5135fe4558d287a9"></script>