-
Notifications
You must be signed in to change notification settings - Fork 3
/
404.php
48 lines (44 loc) · 1.21 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
<?php
/**
* @package Thz Framework
* @author Themezly
* @websites http://www.themezly.com | http://www.youjoomla.com | http://www.yjsimplegrid.com
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // No direct access
}
/**
* The template for displaying 404 pages (not found).
*/
$thz_etype = thz_get_theme_option('etype','theme');
if($thz_etype == 'redirect'){
$thz_epage = thz_get_theme_option('epage',array());
if(!empty($thz_epage)){
$thz_redirect_to_page = get_permalink($thz_epage[0]);
wp_redirect($thz_redirect_to_page,301);
}
}
get_header();
?>
<div id="<?php thz_set_holder() ?>" class="holders">
<?php if (thz_show_left_content_right ()): ?>
<aside id="leftblock" class="thz-block"<?php thz_sdata('sidebar')?>>
<div class="thz-block-spacer">
<div class="thz-sidebars">
<?php thz_load_sidebar('left') ?>
</div>
</div>
</aside>
<?php endif; ?>
<main id="contentblock" class="thz-block thz-block-main"<?php thz_sdata('main'); ?>>
<div class="thz-block-spacer">
<div class="thz-main-in">
<?php get_template_part( 'template-parts/404','section'); ?>
</div>
</div>
</main>
<!-- #contentblock -->
<?php get_sidebar(); ?>
</div>
<!-- .holders -->
<?php get_footer(); ?>