<?php get_header(); ?>
+<main class="blog-home">
+<!-- <article <?php // post_class() ?> id="interior-featured">
+ </article> -->
<div class="row">
-
-<!--
- <p>Categories</p>
- <div id="category-menu">
- <ul>
- <?php
- $args = array(
- 'orderby' => 'name',
- 'order' => 'ASC'
- );
- $categories = get_categories($args);
- foreach($categories as $category) {
- echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> '; }
- ?>
- </ul>
- </div>
--->
<div id="blog-posts-over" class="small-12 medium-9 columns">
-
- <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
+ <?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()) {
- $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
- echo '<a href="'.get_the_permalink().'" class="blog-featured-archive small-12 medium-6" style="background-image:url('.$image_data[0].');"></a>';
+ <?php
+ if (has_post_thumbnail()) {
- echo '<div class="small-12 medium-6 small-centered columns right">';
- } else {
- echo '<div class="small-12 small-centered columns">';
- }
- ?>
+ $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
- <div class="row">
- <div class="small-12 columns">
- <article id="<?php the_ID()?>" <?php post_class()?>>
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
- <?php echo the_advanced_excerpt(); ?>
- <hr>
- <div class="blog-excerpt-date">
- Posted on <strong><?php the_time('F jS, Y'); ?></strong>
- </div>
- </article>
+ <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>
</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>
+ <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 -->
<?php endif;?>
-
</div>
- <?php get_template_part('parts/blog-sidebar-r'); ?>
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
</div>
- <?php get_footer(); ?>
+s<?php get_footer(); ?>
+
+
+
+