no-results.php 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The template part for displaying a message that posts cannot be found.
  4. *
  5. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package bml
  8. */
  9. ?>
  10. <section class="no-results not-found">
  11. <header class="page-header">
  12. <h1 class="page-title"><?php _e( 'Nothing Found', 'bml' ); ?></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>.', 'bml' ), 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.', 'bml' ); ?></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.', 'bml' ); ?></p>
  22. <?php get_search_form(); ?>
  23. <?php endif; ?>
  24. </div><!-- .page-content -->
  25. </section><!-- .no-results -->