<?php
/*
 * Template for displaying single pages.
 * 
 * @package Counsel
 */
get_header() ?>
<div id="content-section" class="content-section grid-col-14">
    <div id="post-<?php the_ID() ?>" <?php post_class( 'inner-content-section' ) ?>>
        <?php if( have_posts() ) : while( have_posts() ): the_post() ?>
            <div class="post-title">
                <?php if ( is_front_page() ): ?>
                    <h1 class="front-page"><?php the_title() ?></h1>
                <?php else: ?>
                    <h1 class="inner-page"><?php the_title() ?></h1>
                <?php endif; ?>
            </div>

            <div class="post-content">
                <?php the_content() ?>
                <?php wp_link_pages( array( 'before' => '<div class="post-nav-link"><span>' . __( 'Pages:', 'counsel' ) . '</span>', 'after' => '</div>' ) ) ?>
            </div>

            <div class="post-below-content">
                <?php edit_post_link( __( 'Edit', 'counsel' ), '<div class="edit-link">', '</div>' ) ?>
            </div>

        <?php endwhile ?>
        
        <?php comments_template( '', true ) ?>

        <?php endif ?>        
    </div><!-- inner-content-section ends -->
    <?php get_sidebar(); ?>
</div><!-- Content-section ends here -->
<?php get_footer() ?>