forked from ZemezLab/kava-child
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
60 lines (41 loc) · 1.46 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
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Kava
*/
get_header();
$done = false;
if ( function_exists( 'jet_theme_core' ) ) {
$done = jet_theme_core()->locations->do_location( 'kava_child_404' );
}
if ( ! $done ) {
do_action( 'kava-theme/site/site-content-before', '404' ); ?>
<div <?php kava_content_class() ?>>
<div class="row">
<?php do_action( 'kava-theme/site/primary-before', '404' ); ?>
<div id="primary" class="col-xs-12">
<?php do_action( 'kava-theme/site/main-before', '404' ); ?>
<main id="main" class="site-main">
<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'kava' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'kava' ); ?></p>
<?php
get_search_form();
?>
</div><!-- .page-content -->
</section><!-- .error-404 -->
</main><!-- #main -->
<?php do_action( 'kava-theme/site/main-after', '404' ); ?>
</div><!-- #primary -->
<?php do_action( 'kava-theme/site/primary-after', '404' ); ?>
</div>
</div>
<?php do_action( 'kava-theme/site/site-content-after', '404' );
}
get_footer();