Add search templates

This commit is contained in:
Ben Word
2015-05-07 11:25:51 -05:00
parent 3b58d769f6
commit 5313ac720b
3 changed files with 26 additions and 0 deletions

14
search.php Normal file
View File

@@ -0,0 +1,14 @@
<?php get_template_part('templates/page', 'header'); ?>
<?php if (!have_posts()) : ?>
<div class="alert alert-warning">
<?php _e('Sorry, no results were found.', 'sage'); ?>
</div>
<?php get_search_form(); ?>
<?php endif; ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('templates/content', 'search'); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>