Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (26 sloc) 1.059 kb
43ea44c @ianstewart _s: Simplifying search, index, and archive, with a common no posts found...
ianstewart authored
1 <?php
2 /**
3 * The template part for displaying a message that posts cannot be found.
4 *
5 * Learn more: http://codex.wordpress.org/Template_Hierarchy
6 *
7 * @package _s
8 * @since _s 1.0
9 */
10 ?>
11
12 <article id="post-0" class="post no-results not-found">
13 <header class="entry-header">
14 <h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
15 </header><!-- .entry-header -->
16
17 <div class="entry-content">
18 <?php if ( is_home() ) { ?>
19
20 <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), admin_url( 'post-new.php' ) ); ?></p>
21
22 <?php } elseif ( is_search() ) { ?>
23
24 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', '_s' ); ?></p>
25 <?php get_search_form(); ?>
26
27 <?php } else { ?>
28
29 <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', '_s' ); ?></p>
30 <?php get_search_form(); ?>
31
32 <?php } ?>
33 </div><!-- .entry-content -->
b9fa5c0 @obenland Add missing 'class' comments
obenland authored
34 </article><!-- #post-0 .post .no-results .not-found -->
Something went wrong with that request. Please try again.