forked from BelinChung/DChaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
65 lines (56 loc) · 2.03 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
<!DOCTYPE HTML>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title>404: Page Not Found</title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
//加载css
gk_load_css();
wp_head();
//加载js
gk_load_js();
if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
?>
<script type="text/javascript">
$(window).load(function() {
$('.flexslider').flexslider();
});
</script>
</head>
<body >
<!-- Header -->
<div id="header" class="container clearfix">
<a href="<?php bloginfo('url'); ?>" id="logo"><img src="<?php bloginfo('template_url'); ?>/static/img/logo.png" alt="" /></a>
<!-- Navigation -->
<?php
wp_nav_menu( array(
'theme_location' =>'primary' ,
'container' => 'nav',
'container_id' => 'main-nav-menu',
'items_wrap' => '<ul class=sf-menu >%3$s</ul>',
//'menu_class' => 'sf-menu' ,
'fallback_cb' => '',
'depth' => 3,
'walker' => new GK_Nav_Walker
) );
?>
<!-- /Navigation -->
<select id="responsive-main-nav-menu" onchange="javascript:window.location.replace(this.value);">
</select>
</div>
<!-- /Header -->
<!-- Main Container -->
<div id="body-wrapper" class="body-wraper-path">
<!-- Content -->
<div id="content" class="container error-404 clearfix">
<img src="<?php bloginfo('template_directory'); ?>/static/img/404.jpg" />
<h3>无法找到该网页</h3>
<p>最可能的原因是:</p>
<p>在地址中可能存在键入错误</p>
<p>当您点击某个链接时,它可能已过期</p>
<p>您可以尝试以下操作:</p>
<p>重新键入地址</p>
<p><a href="<?php bloginfo('siteurl'); ?>/">点此返回主页</a></p>
</div>
<?php get_footer(); ?>