[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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  
  12  <header class="page-header">
  13      <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
  14  </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="%s">Get started here</a>.', 'twentyfourteen' ), 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.', 'twentyfourteen' ); ?></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.', 'twentyfourteen' ); ?></p>
  34          <?php get_search_form(); ?>
  35  
  36      <?php endif; ?>
  37  </div><!-- .page-content -->


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