<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package tweaker5
 */

get_header(); ?>
		
		<?php if(is_active_sidebar( 'page-sidebar' )): ?> 
            <div id="primary" class="col grid-8 content-area">
        <?php else : ?>
            <div id="primary" class="col grid-12 content-area">
        <?php endif; ?>

            <?php while ( have_posts() ) : the_post(); ?>

                <?php get_template_part( 'content', 'page' ); ?>

                <?php
                    if ( comments_open() || '0' != get_comments_number() ) :
                        comments_template();
                    endif;
                ?>

            <?php endwhile; ?>

    </div><?php // close content-area?>

    <?php if(is_active_sidebar( 'page-sidebar' )): ?> 
        <?php get_sidebar('page'); ?>
    <?php endif; ?>
    
    
<?php get_footer(); ?>