-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.php
More file actions
110 lines (108 loc) · 3.66 KB
/
404.php
File metadata and controls
110 lines (108 loc) · 3.66 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php get_header(); ?>
<div id="page">
<?php
if (isset($_GET['ds'])){
if ($_GET['ds'] == 0){
}
elseif ($_GET['ds'] == 1){
?>
<div id="mobile_row0" class="mobile_row">
<div id="title">
<div id="name">
<a href="<?php echo esc_url(home_url('/')); ?>"
title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"
rel="home"><?php bloginfo('name'); ?></a>
</div>
<div id="info">
<?php bloginfo('description'); ?>
</div>
</div>
<?php echo do_shortcode('[redonleft_copyright]'); ?>
</div>
<div id="mobile_row1" class="mobile_row">
<div id="page_bar">
<?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu')); ?>
</div>
<div id="post404">
<h2>你访问的页面不存在</h2>
</div>
</div>
<div id="mobile_row2" class="mobile_row">
<?php get_sidebar() ?>
</div>
<?php
}
else{?>
<div id="col0" class="col">
<div id="title">
<div id="name">
<a href="<?php echo esc_url(home_url('/')); ?>"
title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"
rel="home"><?php bloginfo('name'); ?></a>
</div>
<div id="info">
<?php bloginfo('description'); ?>
</div>
</div>
<div id="page_bar">
<?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu')); ?>
</div>
<?php
echo do_shortcode('[redonleft_player type="netease"]');
echo do_shortcode('[redonleft_copyright]');
?>
</div>
<div id="col1" class="col">
<?php get_sidebar() ?>
</div>
<div id="col2" class="col">
<div id="col2_top">
<div id="search_form">
<?php get_search_form()?>
</div>
<div id="get_archives">
文章归档
<select name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
<option value=""><?php esc_attr( _e( '选择月份', 'blackcooler' ) ); ?></option>
<?php
$args = array(
'type' => 'monthly',
'limit' => '',
'format' => 'option',
'before' => '',
'after' => '',
'show_post_count' => true,
'echo' => 1,
'order' => 'DESC',
'post_type' => 'post'
);
wp_get_archives( $args );
?>
</select>
</div>
<div id="get_cats">
<ul>
<?php
$categories=get_categories();
foreach($categories as $category) {
echo '<li><a href="' . get_category_link( $category->term_id ) . '">' . $category->name . " " . $category->count . '</a> </li> ';
}
?>
</ul>
</div>
</div>
<div id="post404">
<h2>你访问的页面不存在</h2>
</div>
</div>
<?php
}
}
else {
echo '网站不兼容IE浏览器<br>website Not compatible with IE(Internet Explorer) browser';
}
get_footer();
?>
</div>
</body>
</html>