- Timestamp:
- 08/14/2013 04:38:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/no-results.php
r24832 r25021 1 1 <?php 2 2 /** 3 * The template part for displaying a message that posts cannot be found. 4 * 5 * Learn more: http://codex.wordpress.org/Template_Hierarchy 3 * The template for displaying a "No posts found" message. 6 4 * 7 5 * @package WordPress … … 10 8 ?> 11 9 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', 'twentyfourteen' ); ?></h1> 15 </header><!-- .entry-header --> 10 <header class="page-header"> 11 <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1> 12 </header> 16 13 17 <div class="entry-content">18 14 <div class="page-content"> 15 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> 19 16 20 17 <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p> 21 18 22 19 <?php elseif ( is_search() ) : ?> 23 20 24 25 21 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p> 22 <?php get_search_form(); ?> 26 23 27 24 <?php else : ?> 28 25 29 30 26 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p> 27 <?php get_search_form(); ?> 31 28 32 <?php endif; ?> 33 </div><!-- .entry-content --> 34 </article><!-- #post-0 .post .no-results .not-found --> 29 <?php endif; ?> 30 </div><!-- .page-content -->
Note: See TracChangeset
for help on using the changeset viewer.