[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template for displaying a "No posts found" message
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Thirteen
   7   * @since Twenty Thirteen 1.0
   8   */
   9  ?>
  10  
  11  <header class="page-header">
  12      <h1 class="page-title"><?php _e( 'Nothing Found', 'twentythirteen' ); ?></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>.', 'twentythirteen' ), 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 different keywords.', 'twentythirteen' ); ?></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.', 'twentythirteen' ); ?></p>
  33          <?php get_search_form(); ?>
  34  
  35      <?php endif; ?>
  36  </div><!-- .page-content -->


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref