<?php
/**
 * Template Name: Left Sidebar Page Template
 *
 * @package WordPress
 * @subpackage Probit
 * @since Probit 1.0
 *
 */
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

get_header();
?>
<div class="single_top_bar entry-header">
    <div class="container">
        <div class="row">
            <h1 class="entry-title text-capitalize col-xs-12"><?php the_title(); ?></h1>
            <?php if (get_theme_mod('enable_breadcrumbs')) { ?>
                <div class="col-xs-12"><?php probit_breadcrumb(); ?></div>
            <?php } ?>
        </div>
    </div>
</div>
<div class="container">
    <div class="row">

        <div id="primary" class="site-content col-md-9 col-sm-8 col-xs-12 col-sm-push-4 col-md-push-3 ">
            <div id="content" role="main">
                <?php
                // Call edit page link when admin loggedin
                edit_post_link(__('Edit', 'probit'), '<span><i class="fa fa-pencil-square-o"></i> ', '</span>');

                while (have_posts()) : the_post();
                    get_template_part('content', 'page');
                    comments_template('', true);
                endwhile; // end of the loop.
                ?>
            </div><!-- #content -->
        </div><!-- #primary -->
        <?php
        if (is_active_sidebar('sidebar-1')) :
            ?>
            <div id="secondary" class="widget-area col-md-3 col-sm-4 col-xs-12 col-sm-pull-8 col-md-pull-9" role="complementary">
                <?php dynamic_sidebar('sidebar-1'); ?>
            </div><!-- #secondary -->
            <?php
        endif;
        ?>
    </div><!-- .row -->
</div><!-- .container -->

<?php get_footer(); ?>