404.php 1.6 KB

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