content-none.php 924 B

123456789101112131415161718192021222324252627282930313233
  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 WordPress
  8. * @subpackage Twenty_Seventeen
  9. * @since 1.0
  10. * @version 1.0
  11. */
  12. ?>
  13. <section class="no-results not-found">
  14. <header class="page-header">
  15. <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyseventeen' ); ?></h1>
  16. </header>
  17. <div class="page-content">
  18. <?php
  19. if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
  20. <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyseventeen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
  21. <?php else : ?>
  22. <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyseventeen' ); ?></p>
  23. <?php
  24. get_search_form();
  25. endif; ?>
  26. </div><!-- .page-content -->
  27. </section><!-- .no-results -->