Complete 404 page template

This commit is contained in:
Skywt2003 2021-08-01 20:07:32 +08:00
parent ac0f8dacef
commit f805b7c69c
1 changed files with 8 additions and 12 deletions

18
404.php
View File

@ -1,16 +1,12 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?> <?php $this->need('header.php'); ?>
<div class="col-mb-12 col-tb-8 col-tb-offset-2"> <div class="col mt-5 text-center" id="main" role="main">
<article>
<div class="error-page"> <h1 class="font-weight-bold">404 NOT FOUND.</h1>
<h2 class="post-title">404 - <?php _e('页面没找到'); ?></h2> <p><?php _e('您要找的页面不存在!'); ?></p>
<p><?php _e('你想查看的页面已被转移或删除了, 要不要搜索看看: '); ?></p> <p><a href=<?php $this->options->siteUrl(); ?> ><?php _e('返回首页'); ?></a> </p>
<form method="post"> </article>
<p><input type="text" name="s" class="text" autofocus /></p>
<p><button type="submit" class="submit"><?php _e('搜索'); ?></button></p>
</form>
</div>
</div><!-- end #content--> </div><!-- end #content-->
<?php $this->need('footer.php'); ?> <?php $this->need('footer.php'); ?>