forked from qiujumper/wphy-moon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
executable file
·206 lines (191 loc) · 6.73 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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?php
/**
* The template for displaying 404 pages (not found).
*
* @package wphy_moon
*/
get_header();
?>
<header class="page-header">
<h1>Wordpress花园</h1>
<div class="taxonomy-description">
<?php echo get_option('about_us'); ?>
</div>
</header><!-- .page-header -->
<div class="container">
<?php
get_sidebar();
?>
<div id="primary" class="content-area col-sm-9">
<main id="main" class="site-main" role="main">
<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( '抱歉,页面没找到:(', 'wphy_moon' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php esc_html_e( '没找到就搜索一下吧:D' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .page-content -->
</section><!-- .error-404 -->
<div class="all-list-area">
<div class="item-block">
<div class="title">
<h3>新手入门教程</h3>
</div>
<div class="item-group">
<div class="row">
<?php
$args_simple = array(
'post_type' => 'simple',
'posts_per_page' => -1,
'order' => 'ASC'
);
$query_simple = new WP_Query($args_simple);
if ( $query_simple->have_posts() ) : while ( $query_simple->have_posts() ) : $query_simple->the_post();
?>
<div class="col-xs-6">
<div class="list-title">
<span class="glyphicon glyphicon-triangle-right"></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div><!-- list-title -->
</div> <!-- col-xs-6 -->
<?php
endwhile; endif;
?>
</div><!-- row -->
</div><!-- item-group -->
</div> <!-- item-block -->
<div class="item-block">
<div class="title">
<h3>插件使用教程</h3>
</div>
<div class="item-group">
<div class="row">
<?php
$args_simple = array(
'post_type' => 'post',
'posts_per_page' => -1,
'order' => 'ASC'
);
$query_simple = new WP_Query($args_simple);
if ( $query_simple->have_posts() ) : while ( $query_simple->have_posts() ) : $query_simple->the_post();
?>
<div class="col-xs-6">
<div class="list-title">
<span class="glyphicon glyphicon-triangle-right"></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div><!-- list-title -->
</div> <!-- col-xs-6 -->
<?php
endwhile; endif;
?>
</div><!-- row -->
</div><!-- item-group -->
</div> <!-- item-block -->
<div class="item-block">
<div class="title">
<h3>模板制作教程</h3>
</div>
<div class="item-group">
<div class="row">
<?php
$args_simple = array(
'post_type' => 'theme',
'posts_per_page' => -1,
'order' => 'ASC'
);
$query_simple = new WP_Query($args_simple);
if ( $query_simple->have_posts() ) : while ( $query_simple->have_posts() ) : $query_simple->the_post();
?>
<div class="col-xs-6">
<div class="list-title">
<span class="glyphicon glyphicon-triangle-right"></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div><!-- list-title -->
</div> <!-- col-xs-6 -->
<?php
endwhile; endif;
?>
</div><!-- row -->
</div><!-- item-group -->
</div> <!-- item-block -->
<div class="item-block">
<div class="title">
<h3>woocommce商城教程</h3>
</div>
<div class="item-group">
<div class="row">
<?php
$args_simple = array(
'post_type' => 'woo',
'posts_per_page' => -1,
'order' => 'ASC'
);
$query_simple = new WP_Query($args_simple);
if ( $query_simple->have_posts() ) : while ( $query_simple->have_posts() ) : $query_simple->the_post();
?>
<div class="col-xs-6">
<div class="list-title">
<span class="glyphicon glyphicon-triangle-right"></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div><!-- list-title -->
</div> <!-- col-xs-6 -->
<?php
endwhile; endif;
?>
</div><!-- row -->
</div><!-- item-group -->
</div> <!-- item-block -->
<div class="item-block">
<div class="title">
<h3>插件制作教程</h3>
</div>
<div class="item-group">
<div class="row">
<?php
$args_simple = array(
'post_type' => 'create',
'posts_per_page' => -1,
'order' => 'ASC'
);
$query_simple = new WP_Query($args_simple);
if ( $query_simple->have_posts() ) : while ( $query_simple->have_posts() ) : $query_simple->the_post();
?>
<div class="col-xs-6">
<div class="list-title">
<span class="glyphicon glyphicon-triangle-right"></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div><!-- list-title -->
</div> <!-- col-xs-6 -->
<?php
endwhile; endif;
?>
</div><!-- row -->
</div><!-- item-group -->
</div> <!-- item-block -->
<div class="item-block">
<div class="title">
<h3>高级技巧教程</h3>
</div>
<div class="item-group">
<div class="row">
<?php
$args_simple = array(
'post_type' => 'advanced',
'posts_per_page' => -1,
'order' => 'ASC'
);
$query_simple = new WP_Query($args_simple);
if ( $query_simple->have_posts() ) : while ( $query_simple->have_posts() ) : $query_simple->the_post();
?>
<div class="col-xs-6">
<div class="list-title">
<span class="glyphicon glyphicon-triangle-right"></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div><!-- list-title -->
</div> <!-- col-xs-6 -->
<?php
endwhile; endif;
?>
</div><!-- row -->
</div><!-- item-group -->
</div> <!-- item-block -->
</div><!-- all-list-area -->
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- container -->
<?php get_footer(); ?>