<?php get_header(); ?>
- <main class="blog-single">
- <div class="row">
- <div id="blog-posts-over" class="small-12 medium-9 columns">
- <?php if(have_posts()) : while(have_posts()): the_post();?>
- <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()?>>
- <?php echo the_content(); ?>
- <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>, ';
- }
+<main class="blog-single">
+ <div class="row">
+ <div id="blog-posts-over" class="small-12 medium-9 columns">
+ <?php if(have_posts()) : while(have_posts()): the_post();?>
+ <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 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+ <?php if ( has_post_thumbnail() ):?>
+ <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
+ <?php endif; ?>
+ <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+ </header>
+
+ <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
+ <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>
+ <!-- AddThis Button END -->
+ </div><!--/#addthis_wrapper-->
+ <?php } ?>
+ <?php echo the_content(); ?>
+ <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>, ';
}
- $post_tags = wp_get_post_tags( get_the_ID() );
- $tags = array();
- if (has_tag( )) {
- echo ' and tagged ';
- foreach($post_tags as $t){
- $tag = get_tag( $t );
- $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug );
- echo '<a rel="category" title="View all posts in '. $tag->name . ' " href="'. $tag->slug .'">'. $tag->name .'</a>, ';
- }
+ }
+ $post_tags = wp_get_post_tags( get_the_ID() );
+ $tags = array();
+ if (has_tag( )) {
+ echo ' and tagged ';
+ foreach($post_tags as $t){
+ $tag = get_tag( $t );
+ $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug );
+ echo '<a rel="category" title="View all posts in '. $tag->name . ' " href="'. $tag->slug .'">'. $tag->name .'</a>, ';
}
- echo ' on ';
- echo ' <span class="meta date"> ' . the_time('F jS, Y') . '</span>';
- ?>
- </footer>
- </article>
- </div>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- <?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'); ?>
- </div>
- <?php get_footer(); ?>
+ }
+ echo ' on ';
+ echo ' <span class="meta date"> ' . the_time('F jS, Y') . '</span>';
+ ?>
+ </footer>
+ </article>
+ </div><!--/.small-12 .columns-->
+ </div><!--/.row-->
+ </div><!--/.small-11 .small-centered .columns-->
+ </div><!--/.row .blog-post-container-->
+ <?php endwhile; ?>
+ <?php else: ?>
+ <div id="post-404" class="noposts">
+ <p><?php _e('Sorry, no results were found.');?></p>
+ </div><!-- /#post-404 -->
+ <?php endif;?>
+ </div><!--/#blog-posts-over-->
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
+ </div><!--/.row-->
+ <?php get_footer(); ?>