-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
70 lines (46 loc) · 2.05 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
68
69
70
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package Total
* @subpackage Templates
* @author Alexander Clarke
* @copyright Copyright (c) 2015, WPExplorer.com
* @link http://www.wpexplorer.com
* @since 1.0.0
* @version 2.0.3
*/
get_header(); ?>
<div id="content-wrap" class="container clr">
<?php wpex_hook_primary_before(); ?>
<div id="primary" class="content-area clr">
<?php wpex_hook_content_before(); ?>
<main id="content" class="clr site-content" role="main">
<?php wpex_hook_content_top(); ?>
<article class="entry clr">
<?php
// Display custom text
if ( $wpex_error_page_text = wpex_get_mod( 'error_page_text' ) ) : ?>
<?php
// Translate theme mod
$wpex_error_page_text = wpex_translate_theme_mod( 'error_page_text', $wpex_error_page_text ); ?>
<div class="custom-error404-content clr">
<?php echo apply_filters( 'the_content', $wpex_error_page_text ); ?>
</div><!-- .custom-error404-content -->
<?php
// Display default text
else : ?>
<div class="error404-content clr">
<h1><?php _e( 'Page not found', 'wpex' ) ?></h1>
<p><?php _e( 'How about searching for what you were looking for?', 'wpex' ); ?></p>
<?php wpex_header_search_style($echo); ?>
</div><!-- .error404-content -->
<?php endif; ?>
</article><!-- .entry -->
<?php wpex_hook_content_bottom(); ?>
</main><!-- #content -->
<?php wpex_hook_content_after(); ?>
</div><!-- #primary -->
<?php wpex_hook_primary_after(); ?>
</div><!-- .container -->
<?php get_footer(); ?>