This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
67 lines (53 loc) · 1.58 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
67
<?php
/**
* Template For Displaying 404 Pages (not Found)
*
* @package MIXT
*/
// Hide Sidebar
Mixt_Options::set('sidebar', 'enabled', false);
get_header(); ?>
<section class="error-404 not-found">
<header class="page-header text-center">
<h2 class="page-title accent-color">404</h2>
<h3 class="color-fade"><?php esc_html_e( 'The page could not be found!', 'mixt' ); ?></h3>
</header>
<div class="page-content row">
<?php
$nav = wp_nav_menu(
array(
'theme_location' => '404_page',
'container_class' => 'menu-404-cont',
'menu_class' => 'nav',
'fallback_cb' => '__return_false',
'echo' => false,
'menu_id' => 'menu-404',
)
);
if ( ! empty($nav) ) {
$search_classes = 'col-sm-6';
$search_heading_args = '';
$nav_html = '<div class="col-sm-6">';
$nav_html .= mixt_heading( esc_html__( 'Useful links', 'mixt' ) );
$nav_html .= $nav;
$nav_html .= '</div>';
} else {
$search_classes = 'col-sm-6 col-sm-offset-3 text-center';
$search_heading_args = 'align="center"';
$nav_html = '';
}
?>
<?php // Search Form ?>
<div class="<?php echo mixt_sanitize_html_classes($search_classes); ?>">
<?php echo mixt_heading( esc_html__( 'Do a search', 'mixt' ), $search_heading_args ); ?>
<p><?php esc_html_e( 'Try searching our website for what you are looking for!', 'mixt' ); ?></p><br>
<?php get_search_form(); ?>
</div>
<?php // Useful Links
echo mixt_clean($nav_html, 'strip');
?>
</div>
</section>
<?php
get_footer();
?>