-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #929 from mirai-mamori/preview
轻涟 ( La vaguelette ) Update
- Loading branch information
Showing
598 changed files
with
13,141 additions
and
56,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,46 @@ | ||
<?php | ||
|
||
/** | ||
* The template for displaying 404 pages (not found). | ||
* | ||
* @link https://codex.wordpress.org/Creating_an_Error_404_Page | ||
* | ||
* @package Akina | ||
* @package Sakurairo | ||
*/ | ||
|
||
add_action('wp_head', function() { | ||
wp_dequeue_style('wp-block-library'); | ||
wp_dequeue_style('wp-block-library-theme'); | ||
wp_dequeue_style('entry-content'); | ||
}, 5); | ||
?> | ||
<html <?php language_attributes(); | ||
add_action('wp_head',function(){ | ||
wp_dequeue_style('wp-block-library'); | ||
wp_dequeue_style('wp-block-library-theme'); | ||
wp_dequeue_style('entry-content'); | ||
},5); | ||
?>> | ||
<!DOCTYPE html> | ||
<html <?php language_attributes(); ?>> | ||
|
||
<head> | ||
<meta charset="<?php bloginfo('charset'); ?>"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="shortcut icon" href="<?php echo iro_opt('favicon_link', ''); ?>" /> | ||
<link rel="shortcut icon" href="<?php echo esc_url(iro_opt('favicon_link', '')); ?>" /> | ||
<?php wp_head(); ?> | ||
<?php | ||
/* <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 class="error-img" style="height: 66%;"> | ||
<div class="anim-icon" id="404" style="height: 100%;"></div> | ||
</div> | ||
<div class="err-button back"> | ||
<a id="golast" href=javascript:history.go(-1);><?php _e('return to previous page', 'sakurairo');/*返回上一页*/ ?></a> | ||
<a id="gohome" href="<?php bloginfo('url'); ?>"><?php _e('return to home page', 'sakurairo');/*返回主页*/ ?></a> | ||
<div class="err-button back" style="display: flex; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center;"> | ||
<a id="golast" href="javascript:history.go(-1);"><?php _e('Return to previous page', 'sakurairo'); ?></a> | ||
<a id="gohome" href="<?php echo esc_url(home_url('/')); ?>"><?php _e('Return to home page', 'sakurairo'); ?></a> | ||
</div> | ||
<div style="display:block; width:284px;margin: auto;"> | ||
<p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;"><?php _e('Don\'t worry, search in site?', 'sakurairo');/*别急,试试站内搜索?*/ ?></p> | ||
<form class="s-search" method="get" action="/" role="search"> | ||
<input class="text-input" style="padding: 8px 20px;" type="search" name="s" placeholder="<?php _e('Search...', 'sakurairo') ?>" required> | ||
<p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;"><?php _e('Don\'t worry, search in site?', 'sakurairo'); ?></p> | ||
<form class="s-search" method="get" action="<?php echo esc_url(home_url('/')); ?>" role="search"> | ||
<input class="text-input" style="padding: 8px 20px;" type="search" name="s" placeholder="<?php _e('Search...', 'sakurairo'); ?>" required> | ||
</form> | ||
</div> | ||
</section> | ||
<script src="<?php global $shared_lib_basepath;echo $shared_lib_basepath?>/js/anf.js" type="text/javascript"></script> | ||
</body> | ||
<script src="<?php echo esc_url($shared_lib_basepath . '/js/anf.js'); ?>" type="text/javascript"></script> | ||
<?php wp_footer(); ?> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.