content-none.php 961 B

12345678910111213141516171819202122232425262728293031
  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. <header class="page-header">
  11. <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
  12. </header>
  13. <div class="page-content">
  14. <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
  15. <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
  16. <?php elseif ( is_search() ) : ?>
  17. <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
  18. <?php get_search_form(); ?>
  19. <?php else : ?>
  20. <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
  21. <?php get_search_form(); ?>
  22. <?php endif; ?>
  23. </div><!-- .page-content -->