[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template part for displaying a message that posts cannot be found
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Sixteen
   7   * @since Twenty Sixteen 1.0
   8   */
   9  ?>
  10  
  11  <section class="no-results not-found">
  12      <header class="page-header">
  13          <h1 class="page-title"><?php _e( 'Nothing Found', 'twentysixteen' ); ?></h1>
  14      </header><!-- .page-header -->
  15  
  16      <div class="page-content">
  17          <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
  18  
  19              <p>
  20              <?php
  21              /* translators: %s: Post editor URL. */
  22              printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) );
  23              ?>
  24              </p>
  25  
  26          <?php elseif ( is_search() ) : ?>
  27  
  28              <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentysixteen' ); ?></p>
  29              <?php get_search_form(); ?>
  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.', 'twentysixteen' ); ?></p>
  34              <?php get_search_form(); ?>
  35  
  36          <?php endif; ?>
  37      </div><!-- .page-content -->
  38  </section><!-- .no-results -->


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1