<?php get_header(); ?>
  <article class="mainContent">
    
    <article class="contentBlock clear"><section class="clear">
      <h1>All posts under category '<?php single_cat_title(); ?>'.</h1>
	  <?php if(have_posts()) : ?>      
      <?php while(have_posts()) : the_post(); ?>
      <?php $post_counter++; ?>
      <div <?php if( $post_counter == count( $posts ) ) post_class('last-post newsNode'); else post_class('newsNode'); ?>>
        <h1><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h1>
        <p><?php the_time('F d, Y'); ?> | Written by: <?php the_author_posts_link(); ?></p>
        <?php the_excerpt() ?>
        <div class="clear"></div>
      </div>
      <?php endwhile; ?>
      <?php endif; ?>
      <?php include("pagination-module.php"); ?>
    </section>
    <?php get_sidebar(blogright); ?>
    </article>
    
    <?php get_sidebar(blog); ?>
  </article>
  <?php get_footer(); ?>