<?php
/**
 * The Template for displaying all single posts
 *
 * @package WordPress
 * @subpackage Probit
 *
 */
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="col-xs-12 col-sm-8 col-md-9">
            <div id="content" role="main">

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

                    get_template_part('content');

                    $prev = get_previous_post();
                    $next = get_next_post();
                    if (!empty($prev) || !empty($next)) {
                        ?>
                        <nav class="nav-single">
                            <h3 class="assistive-text"><?php _e('Post navigation', 'probit'); ?></h3>
                            <span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">&larr;</span> %title'); ?></span>
                            <span class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">&rarr;</span>'); ?></span>
                        </nav><!-- .nav-single --><?php
                    }

                    comments_template('', true);
                endwhile; // end of the loop.  
                ?>

            </div><!-- #content -->
        </div><!-- #primary -->
        <?php get_sidebar(); ?>
    </div><!-- .row -->
</div><!-- .container -->
<?php get_footer(); ?>