<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 */
get_header(); ?>
  <article class="mainContent">
    <?php get_sidebar(blog); ?>
    <article class="contentBlock">
      <?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'); ?> | 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(); ?>