[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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  
  12  <section class="no-results not-found">
  13      <header class="page-header">
  14          <h1 class="page-title"><?php _e( 'Nothing Found', 'twentysixteen' ); ?></h1>
  15      </header><!-- .page-header -->
  16  
  17      <div class="page-content">
  18          <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
  19  
  20              <p>
  21              <?php
  22              /* translators: %s: Post editor URL. */
  23              printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) );
  24              ?>
  25              </p>
  26  
  27          <?php elseif ( is_search() ) : ?>
  28  
  29              <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentysixteen' ); ?></p>
  30              <?php get_search_form(); ?>
  31  
  32          <?php else : ?>
  33  
  34              <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentysixteen' ); ?></p>
  35              <?php get_search_form(); ?>
  36  
  37          <?php endif; ?>
  38      </div><!-- .page-content -->
  39  </section><!-- .no-results -->


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