404.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * The template for displaying 404 pages (Not Found).
  4. *
  5. * @package Illustratr
  6. */
  7. get_header(); ?>
  8. <div id="primary" class="content-area">
  9. <main id="main" class="site-main" role="main">
  10. <section class="error-404 not-found">
  11. <header class="page-header">
  12. <h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'illustratr' ); ?></h1>
  13. </header><!-- .page-header -->
  14. <div class="page-content">
  15. <p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'illustratr' ); ?></p>
  16. <?php get_search_form(); ?>
  17. <?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
  18. <?php if ( illustratr_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
  19. <div class="widget widget_categories">
  20. <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'illustratr' ); ?></h2>
  21. <ul>
  22. <?php
  23. wp_list_categories( array(
  24. 'orderby' => 'count',
  25. 'order' => 'DESC',
  26. 'show_count' => 1,
  27. 'title_li' => '',
  28. 'number' => 10,
  29. ) );
  30. ?>
  31. </ul>
  32. </div><!-- .widget -->
  33. <?php endif; ?>
  34. <?php
  35. /* translators: %1$s: smiley */
  36. $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'illustratr' ), convert_smilies( ':)' ) ) . '</p>';
  37. the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
  38. ?>
  39. <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
  40. </div><!-- .page-content -->
  41. </section><!-- .error-404 -->
  42. </main><!-- #main -->
  43. </div><!-- #primary -->
  44. <?php get_sidebar(); ?>
  45. <?php get_footer(); ?>