Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: 0.1.1
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (39 sloc) 1.567 kB
<?php
/**
* 404 Template
*
* 404 template is used when an invalid url is visited.
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
@header( 'HTTP/1.1 404 Not found', true, 404 );
get_header(); // Loads the header.php template. ?>
<?php do_atomic( 'before_content' ); // path_before_content ?>
<div id="content">
<?php do_atomic( 'open_content' ); // path_open_content ?>
<div class="hfeed">
<article id="post-0" class="<?php hybrid_entry_class(); ?>">
<header class="entry-header">
<h1 class="error-404-title entry-title"><?php _e( 'What happened!?', 'path' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p>
<?php printf( __( "You tried going to %s, which doesn't exist. You can try navigate or search.", 'path' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
</p>
<?php get_search_form(); // Loads the searchform.php template. ?>
<p>
<?php _e( "Or here are the latest posts, hope it helps.", 'path' ); ?>
</p>
<ul>
<?php wp_get_archives( array( 'limit' => 20, 'type' => 'postbypost' ) ); ?>
</ul>
</div><!-- .entry-content -->
</article><!-- .hentry -->
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // path_close_content ?>
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
<?php do_atomic( 'after_content' ); // path_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>
Jump to Line
Something went wrong with that request. Please try again.