content-none.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Template part for displaying a message that posts cannot be found
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Radcliffe 2
  8. */
  9. ?>
  10. <section class="no-results not-found">
  11. <header class="page-header">
  12. <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'radcliffe-2' ); ?></h1>
  13. </header><!-- .page-header -->
  14. <div class="page-content">
  15. <?php
  16. if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
  17. <p><?php
  18. printf(
  19. wp_kses(
  20. /* translators: 1: link to WP admin new post page. */
  21. __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'radcliffe-2' ),
  22. array(
  23. 'a' => array(
  24. 'href' => array(),
  25. ),
  26. )
  27. ),
  28. esc_url( admin_url( 'post-new.php' ) )
  29. );
  30. ?></p>
  31. <?php elseif ( is_search() ) : ?>
  32. <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'radcliffe-2' ); ?></p>
  33. <?php
  34. get_search_form();
  35. else : ?>
  36. <p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'radcliffe-2' ); ?></p>
  37. <?php
  38. get_search_form();
  39. endif; ?>
  40. </div><!-- .page-content -->
  41. </section><!-- .no-results -->