<?php endwhile;
}
+function is_post_type($type){
+ global $wp_query;
+ if($type == get_post_type($wp_query->post->ID)) return true;
+ return false;
+}
+
add_action('thematic_searchloop', 'mytheme_search_loop');
// End of the Contextual/Highlight Search functions
add_image_size('glm_blocks', '570', '590', true);
</div>
<main class="blog-single">
<div class="row">
+ <?php if (get_post_type( $post ) == "ai1ec_event") { ?>
+ <div id="blog-posts-over" class="ai1ec-post small-12 medium-10 medium-centered columns">
+
+ <?php
+ get_template_part('parts/bread-crumbs');
+ ?>
+ <?php } else { ?>
<div id="blog-posts-over" class="small-12 medium-9 columns">
+ <?php } ?>
<h1>Sault Ste Marie's Blog</h1>
<?php if(have_posts()) : while(have_posts()): the_post();?>
<div class="row blog-post-container">
<span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
</header>
- <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
+ <?php if (!is_post_type("ai1ec_event")) { ?>
<div id="addthis_wrapper">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
</div><!-- /#post-404 -->
<?php endif;?>
</div>
-
- <?php get_template_part('parts/blog-sidebar-r'); ?>
+ <?php if (!is_post_type("ai1ec_event")) { ?>
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
+ <?php } ?>
</div>
<?php get_footer(); ?>