[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Template part for displaying a message that posts cannot be found 4 * 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 6 * 7 * @package WordPress 8 * @subpackage Twenty_Seventeen 9 * @since Twenty Seventeen 1.0 10 * @version 1.0 11 */ 12 13 ?> 14 15 <section class="no-results not-found"> 16 <header class="page-header"> 17 <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyseventeen' ); ?></h1> 18 </header> 19 <div class="page-content"> 20 <?php 21 if ( is_home() && current_user_can( 'publish_posts' ) ) : 22 ?> 23 24 <p> 25 <?php 26 /* translators: %s: Post editor URL. */ 27 printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyseventeen' ), esc_url( admin_url( 'post-new.php' ) ) ); 28 ?> 29 </p> 30 31 <?php else : ?> 32 33 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyseventeen' ); ?></p> 34 <?php 35 get_search_form(); 36 37 endif; 38 ?> 39 </div><!-- .page-content --> 40 </section><!-- .no-results -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 25 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |