<?php get_header(); ?>
<main>
- <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" 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 id="titles" class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
- </header>
- <?php echo the_content(); ?>
- <footer class="entry-meta small-12 medium-6 medium-push-3 center">
-
- </footer>
- </article>
- </div>
+ <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 } else { ?>
+ <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="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>
+ </header>
+ <?php echo the_content(); ?>
+ <footer class="entry-meta small-12 medium-6 medium-push-3 center">
+
+ </footer>
+ </article>
</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>
- <div 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="" />
- <input class="submit button" type="submit" name="submit" value="Search" />
- <input type="hidden" name="searchType" value="blog" /> </div>
- </form>
- <p>Recent Posts</p>
- <ul>
+ <?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 if (get_post_type( $post ) == "ai1ec_event") {
+ } else { ?>
+ <div 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="" />
+ <input class="submit button" type="submit" name="submit" value="Search" />
+ <input type="hidden" name="searchType" value="blog" /> </div>
+ </form>
+ <p>Recent Posts</p>
+ <ul>
+ <?php
+ $args = array( 'numberposts' => '5' );
+ $recent_posts = wp_get_recent_posts( $args );
+ foreach( $recent_posts as $recent ){
+ echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
+ }
+ ?>
+ </ul>
+ <p>Archive</p>
+ <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
+ <p>Categories</p>
+ <ul>
<?php
- $args = array( 'numberposts' => '5' );
- $recent_posts = wp_get_recent_posts( $args );
- foreach( $recent_posts as $recent ){
- echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
- }
+ $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>
- <p>Archive</p>
- <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
- <p>Categories</p>
- <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>
+ </ul>
</div>
</div>
+ <?php } ?>
+ </div>
</main>
<?php get_footer(); ?>