<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>
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 {
<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>
<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>
.entry-header {
background: transparent;
}
+ #addthis_wrapper {
+ margin-top: -25px;
+ }
p {
padding-bottom: 15px;
}
<!-- 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>
<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>