This repository has been archived by the owner on May 10, 2023. It is now read-only.
/
404.php
66 lines (51 loc) · 1.93 KB
/
404.php
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
61
62
63
64
65
66
<?php
/**
* 404 template
*
* The 404 template is used when a reader visits an invalid URL on your site. By default, the template will
* display a generic message.
*
* @package Cakifo
* @subpackage Template
* @link http://codex.wordpress.org/Creating_an_Error_404_Page
*/
/**
* Include the header template part file
*
* Child Themes can replace this template part file globally, via {header.php},
* or in a specific context only, via {header-404.php}
*/
get_header( '404' ); ?>
<?php do_atomic( 'before_main' ); // cakifo_before_main ?>
<div id="main">
<?php do_atomic( 'open_main' ); // cakifo_open_main ?>
<article id="post-0" class="<?php hybrid_entry_class(); ?>">
<h1 class="error-404-title entry-title"><?php _e( "Oops! 404! 404!.. Help!.. We can't find the page!", 'cakifo' ); ?></h1>
<div class="entry-content">
<p><?php printf( __( "You tried going to %s but it doesn't exist. All is not lost! You can search for what you're looking for.", 'cakifo' ), '<code>' . esc_html( $_SERVER['REQUEST_URI'] ) . '</code>' ); ?></p>
<?php get_search_form(); // Loads the searchform.php template ?>
<?php do_atomic( '404_content' ); // You can add more content here by using the 'cakifo_404_content' action ?>
</div> <!-- .entry-content -->
</article> <!-- .hentry -->
<?php
/**
* Include the Error Page widgets "sidebar" template part file
*
* Child Themes can replace this template part file globally,
* via "sidebar.php", or in the Error 404 Page context only, via
* "sidebar-404.php"
*/
get_sidebar( '404' );
?>
<?php do_atomic( 'close_main' ); // cakifo_close_main ?>
</div> <!-- #main -->
<?php do_atomic( 'after_main' ); // cakifo_after_main ?>
<?php
/**
* Include the footer template part file
*
* Child Themes can replace this template part file globally, via {footer.php},
* or in a specific context only, via {footer-404.php}
*/
get_footer( '404' );
?>