?>
				<div class="sixteen columns row divide notop">
					<div class="dividerline"></div>
				</div>
				<div class="eleven columns row content left">
					<?php 
    //if(has_post_thumbnail(get_the_Id())){ echo '<div class="page-feature-image banner"><a href="'.get_the_permalink().'" title="'.get_the_title().'" >'; the_post_thumbnail('full-page-image');echo '</a></div>'; }
    ?>
					<?php 
    //if(has_post_thumbnail(get_the_Id())){ echo '<div class="page-feature-image banner"><a href="'.get_the_permalink().'" title="'.get_the_title().'" >'; the_post_thumbnail();echo '</a></div>'; }
    ?>
					<div class="page-content">
						<?php 
    while (have_posts()) {
        the_post();
        blog_list_single_componemet();
    }
    ?>
					</div>
				</div>
				<!-- Right Sidebar -->
				<?php 
    echo '<div class="four columns sidebar offset-by-one content">';
    get_template_part('sidebar');
    echo '</div>';
    ?>
			<?php 
}
?>
	<div class="sixteen columns bottomadjust"></div>
<?php 
    function render_blog_list($query_args)
    {
        $post_per_page = 5;
        $current_page = get_query_var('paged');
        $query_args['posts_per_page'] = $post_per_page;
        $query_args['paged'] = $current_page;
        $query = new WP_Query($query_args);
        if ($query->have_posts()) {
            while ($query->have_posts()) {
                $query->the_post();
                blog_list_single_componemet();
                ?>
					<?php 
                /*?><div class="eleven columns row alpha blogpost">
                			<?php if(has_post_thumbnail(get_the_ID())): ?>
                				<div class="eleven columns alpha blogimage">
                					<a href="<?php the_permalink(); ?>" data-text="» Read More" class="hovering">
                						<img src="<?php echo wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?>" alt="" class="scale-with-grid" />
                					</a>
                				</div>
                			<?php endif; ?>
                			<div class="one column row alpha">
                				<div class="blogdate">
                					<div class="day"><?php the_time('d'); ?></div>
                					<span><?php the_time('M Y')?></span></a></div>
                			</div>
                			<div class="nine columns row offset-by-one omega">
                				<div class="blogtitle">
                					<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                				</div>
                				<?php $catagories = get_the_category(get_the_ID());   ?>
                				<div class="postinfo">
                					<span class="dateinfo"><?php the_date(); ?> &nbsp; | &nbsp; </span>
                					<?php if(count($catagories)>=1): ?>
                						in <?php foreach($catagories as $cat): ?><a href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->name; ?></a> ,<?php endforeach; ?>&nbsp; |
                					<?php endif; ?>
                					 &nbsp; by <?php the_author(); ?> &nbsp; | &nbsp; <?php comments_popup_link( 'Leave a Comment', '1 Comment', '% Comments' );?>
                				</div>
                				<div class="postcontent"><?php echo cropText(get_the_content(),256); ?><br/>
                					<br/>
                					<a href="<?php the_permalink(); ?>" class="link">&raquo; Read More</a></div>
                			</div>
                			<div class="clear"></div>
                		</div><?php */
                ?>
				<?php 
            }
            $post_count = count(get_posts(array('post_type' => $query_args['post_type'], 'nopaging' => true)));
            $total_pages = ceil($post_count / $post_per_page);
            ?>
				<div class="blogpages">
					<?php 
            //display(set_query_var('paged',2));
            ?>
					<ul>
						<li class="previous"><?php 
            previous_posts_link('Previous');
            ?>
</li>
						<?php 
            $current_page = $current_page == 0 ? 1 : $current_page;
            for ($i = 1; $i <= $total_pages; $i++) {
                $selected = $i == $current_page ? 'class="selected"' : '';
                //echo '<li><a href="'.get_page_link($i).'" '.$selected.'>'.$i.'</a></li>';
            }
            ?>
						<li class="next"><?php 
            next_posts_link('Next', $total_pages);
            ?>
</li>
					</ul>
					<div class="clear"></div>
				</div>
			<?php 
        }
    }