PageRenderTime 48ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/news/404.php

https://bitbucket.org/lgorence/quickpress
PHP | 63 lines | 27 code | 22 blank | 14 comment | 1 complexity | 3782f74d35e826cecbfbaac34c65b0d6 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * 404 Template
  4. *
  5. * The 404 template is used when a reader visits an invalid URL on your site. By default,
  6. * the template will display a generic message. However, if the '404 Template' widget area
  7. * is active, its widgets will be displayed instead. This allows users to customize their error
  8. * pages in any way they want.
  9. *
  10. * For more information on how WordPress handles 404 errors:
  11. * @link http://codex.wordpress.org/Creating_an_Error_404_Page
  12. *
  13. * @package News
  14. * @subpackage Template
  15. */
  16. @header( 'HTTP/1.1 404 Not found', true, 404 );
  17. get_header(); ?>
  18. <?php do_atomic( 'before_content' ); // Before content hook ?>
  19. <div id="content">
  20. <?php do_atomic( 'open_content' ); // Open content hook ?>
  21. <div class="hfeed">
  22. <?php if ( is_active_sidebar( 'error-404-template' ) ) : ?>
  23. <div id="sidebar-error-404" class="sidebar utility">
  24. <?php dynamic_sidebar( 'error-404-template' ); ?>
  25. </div><!-- #sidebar-error-404 .utility -->
  26. <?php else: ?>
  27. <div id="post-0" class="<?php hybrid_entry_class(); ?>">
  28. <h1 class="error-404-title entry-title"><?php _e( 'Not Found', 'news' ); ?></h1>
  29. <div class="entry-content">
  30. <p>
  31. <?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', 'news' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
  32. </p>
  33. <?php get_search_form(); ?>
  34. </div><!-- .entry-content -->
  35. </div><!-- .hentry -->
  36. <?php endif; ?>
  37. </div><!-- .hfeed -->
  38. <?php do_atomic( 'close_content' ); // Close content hook ?>
  39. </div><!-- #content -->
  40. <?php do_atomic( 'after_content' ); // After content hook ?>
  41. <?php get_footer(); ?>