_s: Simplifying search, index, and archive, with a common no posts found template part, no-results.php; Closes #1187

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9340 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Ian Stewart 2012-03-29 15:55:33 +00:00
parent 18df2c463c
commit 43ea44cb44
4 changed files with 37 additions and 29 deletions

View file

@ -30,16 +30,7 @@ get_header(); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', '_s' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php get_template_part( 'no-results', 'search' ); ?>
<?php endif; ?>