<div class="row">
<div id="blog-posts-over" class="small-12 medium-9 columns">
<?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
- <div class="row" id="blog-posts-container">
- <div class="small-11 small-centered columns">
- <div class="row">
- <div class="small-12 columns">
-
- <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>
- <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
-
-
- </header>
-
- <?php echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
- <hr>
- </article>
- </div>
- </div>
+ <div class="row content blog-posts-container">
+ <?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>
+ </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>
<?php endwhile; ?>
<div class="navigation">
<div id="blog-posts-over" class="small-12 medium-9 columns">
<?php } ?>
<?php if(have_posts()) : while(have_posts()): the_post();?>
- <div class="row" id="blog-posts-container">
+ <div class="row blog-post-container">
<div class="small-11 small-centered columns">
<div class="row">
<div class="small-12 columns">
<article id="<?php the_ID()?>" <?php post_class()?>>
<header class="entry-header">
- <h2 id="titles" class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+ <h2 class="entry-title single-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+ <?php if ( has_post_thumbnail() ):?>
+ <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
+ <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
+ <?php } ?>
+ <?php endif; ?>
+ <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+ <div id="addthis_wrapper">
+ <!-- AddThis Button BEGIN -->
+ <div class="addthis_toolbox addthis_default_style ">
+ <a class="addthis_counter addthis_pill_style"></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>
+ <!-- <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>-->
+ <!-- AddThis Button END -->
+ </div><!--/#addthis_wrapper-->
</header>
<?php echo the_content(); ?>
+ <?php if (!is_post_type("ai1ec_event")) { ?>
+
+ <?php } ?>
</article>
+ <?php if ( comments_open() || get_comments_number() ) :
+ comments_template();
+ endif; ?>
</div>
</div>
</div>