<?php get_header(); ?>
  <article class="mainContent">
    <?php get_sidebar(blog); ?>
    <article class="contentBlock">
      <h1 class="page-title">All posts written by <?php $author = get_user_by( 'slug', get_query_var( 'author_name' ) ); echo $author->display_name; ?></h1>
	  <?php if(have_posts()) : ?>      
      <?php while(have_posts()) : the_post(); ?>
      <div class="newsNode post-<?php echo get_the_ID(); ?>">
        <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
	  the_post_thumbnail('full'); } else { ?>
      <?php }?>
        <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"); ?>
    </article>
    <?php get_sidebar(blogright); ?>
  </article>
  <?php get_footer(); ?>