content-none.php 1.1 KB

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