-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path404.php
42 lines (37 loc) · 1.36 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
<?php
/*
* 404页面模板
* @author 友人a丶
* @date 2022-07-08
* */
$url = get_template_directory_uri();//主题url
$page_404 = $url . '/common/404/404.svg';
$page_css = $url . '/common/404/404.css';
?>
<!DOCTYPE html>
<html lang="zh-CN" data-mode="light">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>404未找到您要的资源</title>
<meta name="renderer" content="webkit">
<meta name="format-detection" content="email=no">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, shrink-to-fit=no, viewport-fit=cover">
<meta name="keywords" content="404">
<meta name="description" content="404">
<link href="<?php echo $url; ?>/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link rel='stylesheet' href='<?php echo $page_css; ?>' type='text/css'/>
</head>
<body>
<div class="joe_page_404">
<div class="error">
<img src="<?php echo $page_404; ?>" alt="404">
<h3 class="title">“未找到您要的资源”</h3>
<a href="/" class="error_link">回到主页</a>
</div>
</div>
</body>
</html>