-
Notifications
You must be signed in to change notification settings - Fork 96
/
404.php
38 lines (37 loc) · 1.15 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
<?php
/**
* The template for displaying 404 pages.
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Akina
*/
?>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title itemprop="name">
<?php
global $page, $paged;
wp_title('-', true, 'right');
bloginfo('name');
$site_description = get_bloginfo('description', 'display');
if ($site_description && (is_home() || is_front_page())) echo " - $site_description";
if ($paged >= 2 || $page >= 2) echo ' - ' . sprintf(__('第 %s 页'), max($paged, $page));
?>
</title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<section class="error-404 not-found">
<div class="error-img">
<img src="<?php echo get_bloginfo('template_url'); ?>/images/404.png">
</div>
<div class="err-button back">
<a id="golast" href=javascript:history.go(-1);>返回上一页</a>
<a id="gohome" href="<?php bloginfo('url'); ?>">返回到主页</a>
</div>
</section>
</body>
</html>