forked from jonmbennett/betheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
83 lines (64 loc) · 2.54 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
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* 404 page.
*
* @package Betheme
* @author Muffin group
* @link http://muffingroup.com
*/
$translate['404-title'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-title','Ooops... Error 404') : __('Ooops... Error 404','betheme');
$translate['404-subtitle'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-subtitle','We`re sorry, but the page you are looking for doesn`t exist.') : __('We are sorry, but the page you are looking for does not exist.','betheme');
$translate['404-text'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-text','Please check entered address and try again <em>or</em>') : __('Please check entered address and try again or ','betheme');
$translate['404-btn'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-btn','go to homepage') : __('go to homepage','betheme');
?><!DOCTYPE html>
<html class="no-js<?php echo mfn_user_os(); ?>" <?php language_attributes(); ?>>
<!-- head -->
<head>
<!-- meta -->
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<?php if( mfn_opts_get('responsive') ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'; ?>
<?php do_action('wp_seo'); ?>
<link rel="shortcut icon" href="<?php mfn_opts_show('favicon-img',THEME_URI .'/images/favicon.ico'); ?>" type="image/x-icon" />
<!-- wp_head() -->
<?php wp_head();?>
</head>
<?php
$customID = mfn_opts_get( 'error404-page' );
$body_class = '';
if( $customID ) $body_class .= 'custom-404';
?>
<!-- body -->
<body <?php body_class( $body_class ); ?>>
<?php if( $customID ): ?>
<div id="Content">
<div class="content_wrapper clearfix">
<!-- .sections_group -->
<div class="sections_group">
<?php
mfn_builder_print( $customID, true ); // Content Builder & WordPress Editor Content
?>
</div>
<!-- .four-columns - sidebar -->
<?php get_sidebar(); ?>
</div>
</div>
<?php else: ?>
<div id="Error_404">
<div class="container">
<div class="column one">
<div class="error_pic">
<i class="<?php mfn_opts_show('error404-icon','icon-traffic-cone'); ?>"></i>
</div>
<div class="error_desk">
<h2><?php echo $translate['404-title']; ?></h2>
<h4><?php echo $translate['404-subtitle']; ?></h4>
<p><span class="check"><?php echo $translate['404-text']; ?></span> <a class="button button_filled" href="<?php echo site_url(); ?>"><?php echo $translate['404-btn']; ?></a></p>
</div>
</div>
</div>
</div>
<?php endif; ?>
<!-- wp_footer() -->
<?php wp_footer(); ?>
</body>
</html>