hardpixel/marv

View on GitHub
layouts/theme/templates/pages/search.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php get_header(); ?>

    <div class="content-wrap">
        <div class="content content-area">
            <?php if ( have_posts() ) : ?>

                <header class="page-header">
                    <h1 class="page-title"><?php printf( __( 'Search Results for: %s', '<%= project_id %>' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
                </header>

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

                    <?php get_template_part( 'content', 'search' ); ?>

                <?php endwhile; ?>

                <?php <%= project_id %>_paging_nav(); ?>

            <?php else : ?>

                <?php get_template_part( 'content', 'none' ); ?>

            <?php endif; ?>
        </div>

        <div class="site-sidebar widget-area">

            <?php get_sidebar(); ?>

        </div>
    </div>

<?php get_footer(); ?>