]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/twentyfourteen/content-none.php
WordPress 4.6.3
[autoinstalls/wordpress.git] / wp-content / themes / twentyfourteen / content-none.php
1 <?php
2 /**
3  * The template for displaying a "No posts found" message
4  *
5  * @package WordPress
6  * @subpackage Twenty_Fourteen
7  * @since Twenty Fourteen 1.0
8  */
9 ?>
10
11 <header class="page-header">
12         <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
13 </header>
14
15 <div class="page-content">
16         <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
17
18         <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
19
20         <?php elseif ( is_search() ) : ?>
21
22         <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
23         <?php get_search_form(); ?>
24
25         <?php else : ?>
26
27         <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
28         <?php get_search_form(); ?>
29
30         <?php endif; ?>
31 </div><!-- .page-content -->