-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.php
35 lines (34 loc) · 1.46 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
<?php
/**
* 404 模板
* @author Seaton Jiang <[email protected]>
* @license MIT License
* @version 2020.04.12
*/
get_header(); ?>
<div class="k-main <?php echo kratos_option('top_select', 'banner'); ?>" style="background:#ffffff">
<div class="container">
<div class="row">
<div class="col-12 page404">
<div class="thumbnail" style="background-image: url(<?php
if(!kratos_option('g_404')){
$img = ASSET_PATH . '/assets/img/404.jpg';
} else {
$img = kratos_option('g_404', ASSET_PATH . '/assets/img/404.jpg');
}
echo $img; ?>">
<div class="overlay"></div>
</div>
<div class="content text-center">
<div class="title pt-4"><?php _e('很抱歉,你访问的页面不存在', 'kratos'); ?></div>
<div class="subtitle pt-4"><?php _e('可能是输入地址有误或该地址已被删除', 'kratos'); ?></div>
<div class="action pt-4">
<a href="javascript:history.go(-1)" class="btn btn-outline-primary back-prevpage"><?php _e('返回上页', 'kratos'); ?></a>
<a href="<?php echo get_option('home'); ?>" class="btn btn-outline-primary ml-3 back-index"><?php _e('返回主页', 'kratos'); ?></a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>