<?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 may use a
 * different template.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package AKB_Blog
 */

get_header();
$container = get_theme_mod('bexplore_container_type', 'container');
?>

    <main id="primary" class="site-main">
        <div class="<?php echo esc_attr($container); ?>">
            <div class="row">
                <!-- Do the left sidebar check and opens the primary div -->
				<?php get_template_part('global-templates/left-sidebar-check'); ?>
				<?php
				while (have_posts()) :
					the_post();

					get_template_part('template-parts/content', 'page');

					// If comments are open or we have at least one comment, load up the comment template.
					if (comments_open() || get_comments_number()) :
						comments_template();
					endif;

				endwhile; // End of the loop.
				?>
                <!-- Do the left sidebar check and opens the primary div -->
				<?php get_template_part('global-templates/right-sidebar-check'); ?>
            </div>
        </div>

    </main><!-- #main -->

<?php

get_footer();
