2018-05-26 18:59:29 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying 404 pages (not found).
|
|
|
|
*
|
|
|
|
* @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">
|
2020-06-14 23:21:36 +08:00
|
|
|
<link rel="shortcut icon" href="<?php echo akina_option('favicon_link', ''); ?>"/>
|
2018-05-26 18:59:29 +08:00
|
|
|
<title itemprop="name"><?php global $page, $paged;wp_title( '-', true, 'right' );
|
|
|
|
bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' );
|
2019-10-31 17:25:24 +08:00
|
|
|
if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( 'page %s'), max( $paged, $page ) );/*第 %s 页*/?>
|
2018-05-26 18:59:29 +08:00
|
|
|
</title>
|
2022-10-23 22:01:34 +08:00
|
|
|
<link type="text/css" media="all" href="<?php echo(SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/css/lib.css" rel="stylesheet" />
|
2018-05-26 18:59:29 +08:00
|
|
|
<?php wp_head(); ?>
|
|
|
|
<script>
|
|
|
|
var the_url=window.location.href;
|
|
|
|
var the_dom="<?php echo str_replace("http://", "", str_replace("https://", "", get_site_url())); ?>";
|
|
|
|
var no_report = false;
|
|
|
|
if (the_dom!= '2heng.xin') {
|
|
|
|
no_report = true;
|
|
|
|
}
|
|
|
|
var the_ua=navigator.userAgent;
|
|
|
|
var the_ref=document.referrer;
|
|
|
|
function httpGet(theUrl) {
|
|
|
|
var xmlHttp = new XMLHttpRequest();
|
|
|
|
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
|
|
|
|
xmlHttp.send( null );
|
|
|
|
return xmlHttp.responseText;
|
|
|
|
}
|
|
|
|
var report_url = "https://api.mashiro.top/count/404/?" + "url="+the_url+"&ua="+the_ua+"&ref="+the_ref;
|
|
|
|
if (!no_report) httpGet(report_url);
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body <?php body_class(); ?>>
|
|
|
|
<section class="error-404 not-found">
|
|
|
|
<div class="error-img">
|
|
|
|
<div class="anim-icon" id="404" style="height: 66%;"></div>
|
|
|
|
</div>
|
|
|
|
<div class="err-button back">
|
2019-10-31 17:25:24 +08:00
|
|
|
<a id="golast" href=javascript:history.go(-1);><?php _e('return to previous page','sakura');/*返回上一页*/?></a>
|
|
|
|
<a id="gohome" href="<?php bloginfo('url');?>"><?php _e('return to home page','sakura');/*返回主页*/?></a>
|
2018-05-26 18:59:29 +08:00
|
|
|
</div>
|
|
|
|
<div style="display:block; width:284px;margin: auto;">
|
2019-10-31 17:25:24 +08:00
|
|
|
<p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;"><?php _e('Don\'t worry, search in site?','sakura');/*别急,试试站内搜索?*/?></p>
|
2018-05-26 18:59:29 +08:00
|
|
|
<form class="s-search" method="get" action="/" role="search">
|
|
|
|
<i class="iconfont icon-search" style="bottom: 8px;left: 12px;"></i>
|
|
|
|
<input class="text-input" style="padding: 8px 20px 8px 46px;" type="search" name="s" placeholder="<?php _e('Search...', 'akina') ?>" required>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-10-23 22:01:34 +08:00
|
|
|
<script src="<?php echo(SAKURA_STATIC_ASSETS_HOST); ?>gh/mashirozx/sakura@static/js/other/404.min.js" type="text/javascript"></script>
|
2018-05-26 18:59:29 +08:00
|
|
|
</body>
|