Skip to content
Newer
Older
100644 58 lines (40 sloc) 1.76 KB
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
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, the template will
6 * display a generic message.
7 *
8 * @package MyLife
9 * @subpackage Template
10 * @since 0.1.0
11 * @author Justin Tadlock <justin@justintadlock.com>
877f5cf @justintadlock Update copyright and theme info.
authored
12 * @copyright Copyright (c) 2011 - 2012, Justin Tadlock
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
13 * @link http://themehybrid.com/themes/my-life
14 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
15 */
16
17 @header( 'HTTP/1.1 404 Not found', true, 404 );
18
19 get_header(); // Loads the header.php template. ?>
20
21 <?php do_atomic( 'before_content' ); // my-life_before_content ?>
22
23 <div id="content">
24
25 <?php do_atomic( 'open_content' ); // my-life_open_content ?>
26
27 <div class="hfeed">
28
29 <div id="post-0" class="<?php hybrid_entry_class(); ?>">
30
31 <h1 class="error-404-title entry-title"><?php _e( 'Whoah! You broke something!', 'my-life' ); ?></h1>
32
33 <div class="entry-content">
34
35 <p>
36 <?php printf( __( "Just kidding! You tried going to %s, which doesn't exist, so that means I probably broke something.", 'my-life' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
37 </p>
38 <p>
39 <?php _e( "The following is a list of the latest posts from the blog. Maybe it will help you find what you're looking for.", 'my-life' ); ?>
40 </p>
41
42 <ul>
43 <?php wp_get_archives( array( 'limit' => 20, 'type' => 'postbypost' ) ); ?>
44 </ul>
45
46 </div><!-- .entry-content -->
47
48 </div><!-- .hentry -->
49
50 </div><!-- .hfeed -->
51
52 <?php do_atomic( 'close_content' ); // my-life_close_content ?>
53
54 </div><!-- #content -->
55
56 <?php do_atomic( 'after_content' ); // my-life_after_content ?>
57
58 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.