Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (41 sloc) 1.803 kb
217f7fde » greenshady
2011-12-05 Importing the News theme files and folders.
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
17 @header( 'HTTP/1.1 404 Not found', true, 404 );
18
19 get_header(); ?>
20
21 <?php do_atomic( 'before_content' ); // Before content hook ?>
22
23 <div id="content">
24
25 <?php do_atomic( 'open_content' ); // Open content hook ?>
26
27 <div class="hfeed">
28
29 <?php if ( is_active_sidebar( 'error-404-template' ) ) : ?>
30
31 <div id="sidebar-error-404" class="sidebar utility">
32 <?php dynamic_sidebar( 'error-404-template' ); ?>
33 </div><!-- #sidebar-error-404 .utility -->
34
35 <?php else: ?>
36
37 <div id="post-0" class="<?php hybrid_entry_class(); ?>">
38
b67e8bfb »
2012-08-24 Change all instances of hybrid_get_textdomain() to 'news'.
39 <h1 class="error-404-title entry-title"><?php _e( 'Not Found', 'news' ); ?></h1>
217f7fde » greenshady
2011-12-05 Importing the News theme files and folders.
40
41 <div class="entry-content">
42
43 <p>
6b75b396 »
2012-08-24 Use home_url() instead of site_url()
44 <?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>' ); ?>
217f7fde » greenshady
2011-12-05 Importing the News theme files and folders.
45 </p>
46
47 <?php get_search_form(); ?>
48
49 </div><!-- .entry-content -->
50
51 </div><!-- .hentry -->
52
53 <?php endif; ?>
54
55 </div><!-- .hfeed -->
56
57 <?php do_atomic( 'close_content' ); // Close content hook ?>
58
59 </div><!-- #content -->
60
61 <?php do_atomic( 'after_content' ); // After content hook ?>
62
63 <?php get_footer(); ?>
Something went wrong with that request. Please try again.