Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.1.2
Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (39 sloc) 1.567 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
<?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. ?>
Something went wrong with that request. Please try again.