<?php get_header(); ?>
<div id="primary" class="hfeed">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class() ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:', 'themejunkie').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php edit_post_link( __('[Edit]', 'themejunkie'), '<span class="edit-post">', '</span>' ); ?>
</div><!-- .entry-content -->
</div><!-- #post-<?php the_ID(); ?> -->
<?php if(get_option('collection_show_page_comments') == 'on') { ?>
<?php comments_template('', true); ?>
<?php } ?>
<?php endwhile; endif; ?>
</div><!-- #primary .hfeed -->
<div id="single-right-sidebar">
<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Page Sidebar - Right') ): ?>
<?php the_widget('WP_Widget_Text', 'title=Page Sidebar - Right&text=You could add some widgets in this area.', 'before_title=<h3 class="widget-title">&after_title=</h3>'); ?>
<?php endif; ?>
</div><!-- #single-right-sidebar -->
<?php get_footer(); ?>