????

Your IP : 3.15.26.231


Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/search.php

<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Templates
 */

// Get site header
get_header(); ?>

    <div class="container clr">

        <?php tb_hook_primary_before(); ?>

        <div id="primary" class="content-area clr">

            <?php tb_hook_content_before(); ?>

            <div id="content" class="site-content">

                <?php tb_hook_content_top(); ?>

                <?php
                // Check if there are search results
                if ( have_posts() ) : ?>

                    <div id="search-entries" class="clr">

                        <?php
                        // Display blog style search results
                        if ( 'blog' == tb_search_results_style() ) : ?>

                            <div id="blog-entries" class="clr <?php tb_blog_wrap_classes(); ?>">

                                <?php $tb_count = 0; ?>

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

                                    <?php $tb_count++; ?>

                                    <?php get_template_part( 'partials/blog/blog-entry', 'layout' ); ?>

                                    <?php if ( tb_blog_entry_columns() == $tb_count ) $tb_count=0; ?>

                                <?php endwhile; ?>

                            </div><!-- #blog-entries -->

                        <?php
                        // Display custom style for search entries
                        else : ?>

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

                                <?php get_template_part( 'partials/search/search', 'entry' ); ?>

                            <?php endwhile; ?>

                        <?php endif; ?>

                    </div><!-- #search-entries -->

                    <?php
                    // Display pagination
                    tb_pagination(); ?>

                <?php
                // No search results found
                else : ?>

                    <article id="search-no-results" class="clr">

                        <?php _e( 'Sorry, no results were found for this query.', 'tb' ); ?>

                    </article><!-- #search-no-results -->

                <?php endif; ?>

                <?php tb_hook_content_bottom(); ?>

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

            <?php tb_hook_content_after(); ?>

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

        <?php tb_hook_primary_after(); ?>

    </div><!-- .container -->

<?php
// Get site footer
get_footer(); ?>