<?php
/**
 * Template for displaying pages
 * 
 * @package bootstrap-basic
 */

get_header();

/**
 * Determine main column size from actived sidebar.
 */
$bootstrap_basic_main_column_size = bootstrapBasicGetMainColumnSize();
?> 
<?php get_sidebar('left'); ?> 
                <div class="col-md-<?php echo esc_attr($bootstrap_basic_main_column_size); ?> content-area" id="main-column">
                    <main id="main" class="site-main" role="main">
                        <?php 
                        while (have_posts()) {
                            the_post();

                            get_template_part('content', 'page');

                            echo "\n\n";
                            
                            // If comments are open or we have at least one comment, load up the comment template
                            if (comments_open() || '0' !== strval(get_comments_number())) {
                                comments_template();
                            }

                            echo "\n\n";

                        } //endwhile;
                        ?> 
                    </main>
                </div>
<?php get_sidebar('right'); ?> 
<?php 
get_footer();
