[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template part for displaying a message that posts cannot be found 4 * 5 * Learn more: {@link https://developer.wordpress.org/themes/basics/template-hierarchy/} 6 * 7 * @package WordPress 8 * @subpackage Twenty_Fifteen 9 * @since Twenty Fifteen 1.0 10 */ 11 ?> 12 13 <section class="no-results not-found"> 14 <header class="page-header"> 15 <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfifteen' ); ?></h1> 16 </header><!-- .page-header --> 17 18 <div class="page-content"> 19 20 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> 21 22 <p> 23 <?php 24 /* translators: %s: Post editor URL. */ 25 printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) ); 26 ?> 27 </p> 28 29 <?php elseif ( is_search() ) : ?> 30 31 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p> 32 <?php get_search_form(); ?> 33 34 <?php else : ?> 35 36 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p> 37 <?php get_search_form(); ?> 38 39 <?php endif; ?> 40 41 </div><!-- .page-content --> 42 </section><!-- .no-results -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |