-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path404.php
72 lines (51 loc) · 2.29 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
<?php
//set the template id, used to get the template specific settings
$template_id = '404';
td_global::$current_template = $template_id;
td_global::$load_featured_img_from_template = 'full';
//prepare the loop variables
global $loop_module_id, $loop_sidebar_position;
$loop_sidebar_position = 'no_sidebar';
$loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
get_header();
?>
<div class="td-main-content-wrap td-container-wrap">
<div class="td-container">
<div class="td-pb-span12">
<div class="td-404-head">
<div class="td-404-title">
<?php _etd('404', TD_THEME_NAME); ?>
</div>
<div class="td-404-sub-title">
<?php _etd('Oops!', TD_THEME_NAME); ?>
</div>
<div class="td-404-sub-sub-title">
<?php _etd('Sorry, but the page you are looking for doesn’t exist. Please use search for help', ''); ?>
</div>
<div class="search-page-wrap">
<form method="get" class="td-search-form-widget" action="<?php echo esc_url(home_url( '/' )); ?>">
<div role="search">
<input class="td-widget-search-input" type="text" value="<?php echo get_search_query(); ?>" name="s" id="s" />
<input class="wpb_button wpb_btn-inverse btn" type="submit" id="searchsubmit" value="<?php _etd('Search', TD_THEME_NAME)?>" />
</div>
</form>
</div>
</div>
<?php
$args = array(
'post_type'=> 'post',
'showposts' => 3
);
query_posts($args);
$td_loop_block_module = td_util::get_option('tds_404_page_layout');
//$td_loop_block_module
locate_template('loop.php', true);
//get_template_part('category', 'slider');
wp_reset_query();
?>
</div>
</div> <!-- /.td-container -->
</div> <!-- /.td-main-content-wrap -->
<?php
get_footer();
?>