[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentyfourteen/ -> content-none.php (source)

   1  <?php
   2  /**
   3   * The template for displaying a "No posts found" message
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Fourteen
   7   * @since Twenty Fourteen 1.0
   8   */
   9  ?>
  10  
  11  <header class="page-header">
  12      <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
  13  </header>
  14  
  15  <div class="page-content">
  16      <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
  17  
  18      <p>
  19          <?php
  20          /* translators: %s: Post editor URL. */
  21          printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) );
  22          ?>
  23      </p>
  24  
  25      <?php elseif ( is_search() ) : ?>
  26  
  27      <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
  28          <?php get_search_form(); ?>
  29  
  30      <?php else : ?>
  31  
  32      <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
  33          <?php get_search_form(); ?>
  34  
  35      <?php endif; ?>
  36  </div><!-- .page-content -->


Generated: Tue Mar 19 01:00:02 2024 Cross-referenced by PHPXref 0.7.1