[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyseventeen/template-parts/post/ -> content-none.php (source)

   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&rsquo;t find what you&rsquo;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 -->


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref