<?php
/**
 * The template for displaying Search Results pages
 *
 * @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_archive_title('<span>', '</span>'); ?>
            </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">
        <section id="primary" class="col-xs-12 col-md-9 col-sm-8">
            <div id="content" role="main">

                <?php
                if (have_posts()) {

                    /* Start the Loop */
                    while (have_posts()) : the_post();
                        get_template_part('content');
                    endwhile;

                    probit_paging_nav(5);
                } else {
                    ?>

                    <article id="post-0" class="post no-results not-found">
                        <header class="entry-header">
                            <h1 class="entry-title"><?php _e('Nothing Found', 'probit'); ?></h1>
                        </header>

                        <div class="entry-content">
                            <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'probit'); ?></p>
                            <?php get_search_form(); ?>
                        </div><!-- .entry-content -->
                    </article><!-- #post-0 -->

                    <?php
                }
                ?>

            </div><!-- #content -->
        </section><!-- #primary -->

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