Skip to content

Commit

Permalink
Merge pull request #929 from mirai-mamori/preview
Browse files Browse the repository at this point in the history
轻涟 ( La vaguelette ) Update
  • Loading branch information
mirai-mamori authored Oct 13, 2024
2 parents c94fec3 + 30d1cea commit 9469cc5
Show file tree
Hide file tree
Showing 598 changed files with 13,141 additions and 56,092 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/issue-stale-close.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v4
- uses: actions/stale@v7
with:
stale-issue-message: "这个 Issue 已经 30 天没有任何活动了,将被标记为过时 stale。删除 stale 标签或评论,否则将在 7 天内关闭。"
stale-pr-message: '这个 PR 已经 45 天没有任何活动了,将被标记为过时 stale 。 删除 stale 的标签或评论,否则将在 10 天内关闭。'
Expand Down
62 changes: 22 additions & 40 deletions 404.php
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>
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**简体中文** | [繁體中文](README_tw.md) | [English](README_en.md) | [日本語](README_ja.md)

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/banner-ver2.6.png)](https://github.com/mirai-mamori/Sakurairo)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/banner-ver2.7.webp)](https://github.com/mirai-mamori/Sakurairo)

<h1 align="left">Theme Sakurairo </h1>

Expand All @@ -12,7 +12,7 @@

## 版本简介:

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/cn-ver2.6.png)](https://fuukei.org//)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/cn.png)](https://docs.fuukei.org//)

## 下载及使用相关:

Expand All @@ -29,13 +29,13 @@

## 赞助商:

<a href="https://www.upyun.com/"><img src="https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/upyun2024.webp" alt="UPYUN" width="400"></a>
<a href="https://www.upyun.com/"><img src="https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/upyun2024.webp" alt="UPYUN" width="400"></a>

<a href="https://www.houdeyun.cn/"><img src="https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/houdeyun2024.webp" alt="HOUDEYUN" width="400"></a>
<a href="https://www.houdeyun.cn/"><img src="https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/houdeyun2024.webp" alt="HOUDEYUN" width="400"></a>

## 支持我们:

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/cn-ver2.6info.png)](https://afdian.net/@mamori)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/cn-ver2.7info.png)](https://ifdian.net/@mamori)

## 主题贡献:

Expand Down Expand Up @@ -73,7 +73,7 @@

- 本主题使用 YahnisElsts [Plugin Update Checker](https://github.com/YahnisElsts/plugin-update-checker) 以提供主题更新功能

- 本主题使用 HaoZi-Team [ChatGPT PHP](https://github.com/HaoZi-Team/ChatGPT-PHP) 以提供 ChatGPT 相关能力
- 本主题使用 orhanerday [open-ai](https://github.com/orhanerday/open-ai) 以提供 ChatGPT 相关能力

## 希望你喜欢!

Expand Down
8 changes: 4 additions & 4 deletions README_en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[简体中文](README.md) | [繁體中文](README_tw.md) | **English** | [日本語](README_ja.md)

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/banner-ver2.6.png)](https://github.com/mirai-mamori/Sakurairo)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/banner-ver2.7.webp)](https://github.com/mirai-mamori/Sakurairo)

<h1 align="left">Theme Sakurairo </h1>

Expand All @@ -12,7 +12,7 @@

## What's new:

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/en-ver2.6.png)](https://fuukei.org//)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/en.png)](https://docs.fuukei.org//)

## How to use:

Expand Down Expand Up @@ -61,11 +61,11 @@ Please fill in with the issue template. Thanks for your cooperation.

- The theme uses YahnisElsts [Plugin Update Checker](https://github.com/YahnisElsts/plugin-update-checker) to provide updates.

- The theme uses HaoZi-Team [ChatGPT PHP](https://github.com/HaoZi-Team/ChatGPT-PHP) to provide ChatGPT-related Capabilities.
- The theme uses orhanerday [open-ai](https://github.com/orhanerday/open-ai) to provide ChatGPT-related Capabilities.

## Hope you can enjoy it!

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/en-ver2.6info.png)](https://fuukei.org/)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/en-ver2.7info.png)](https://docs.fuukei.org/)

- Star Trends [![GitHub stars](https://img.shields.io/github/stars/mirai-mamori/Sakurairo?logo=github&style=social)](https://github.com/mirai-mamori/Sakurairo/stargazers)

Expand Down
8 changes: 4 additions & 4 deletions README_ja.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[简体中文](README.md) | [繁體中文](README_tw.md) | [English](README_en.md) | **日本語**

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/banner-ver2.6.png)](https://github.com/mirai-mamori/Sakurairo)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/banner-ver2.7.webp)](https://github.com/mirai-mamori/Sakurairo)

<h1 align="left">Theme Sakurairo </h1>

Expand All @@ -12,7 +12,7 @@

## バージョン紹介:

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/jp-ver2.6.png)](https://fuukei.org/)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/jp.png)](https://docs.fuukei.org/)

## 活用方法:

Expand Down Expand Up @@ -60,11 +60,11 @@

- 本テーマでは、YahnisElstsさんの[Plugin Update Checker](https://github.com/YahnisElsts/plugin-update-checker) を使って、テーマのアップデートを提供しています。

- 本テーマでは、HaoZi-Teamさんの[ChatGPT PHP](https://github.com/HaoZi-Team/ChatGPT-PHP) を使って、テーマの ChatGPT 関連機能を提供しています。
- 本テーマでは、orhanerdayさんの[open-ai](https://github.com/orhanerday/open-ai) を使って、テーマの ChatGPT 関連機能を提供しています。

## 楽しんでいただけたら幸いです。

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/jp-ver2.6info.png)](https://fuukei.org/)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/jp-ver2.7info.png)](https://docs.fuukei.org/)

- Starトレンド [![GitHub stars](https://img.shields.io/github/stars/mirai-mamori/Sakurairo?logo=github&style=social)](https://github.com/mirai-mamori/Sakurairo/stargazers)

Expand Down
10 changes: 5 additions & 5 deletions README_tw.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[简体中文](README.md) | **繁體中文** | [English](README_en.md) | [日本語](README_ja.md)

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/banner-ver2.6.png)](https://github.com/mirai-mamori/Sakurairo)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/banner-ver2.7.webp)](https://github.com/mirai-mamori/Sakurairo)

<h1 align="left">Theme Sakurairo </h1>

Expand All @@ -12,7 +12,7 @@

## 版本宣傳:

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/tw-ver2.6.png)](https://fuukei.org//)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/tw.png)](https://docs.fuukei.org//)

## 使用相關:

Expand All @@ -27,7 +27,7 @@

## 贊助商:

<a href="https://www.upyun.com/"><img src="https://s.nmxc.ltd/sakurairo_vision/@2.6/options/upyun_logo.webp" alt="UPYUN" width="200"></a>
<a href="https://www.upyun.com/"><img src="https://s.nmxc.ltd/sakurairo_vision/@2.7/options/upyun_logo.webp" alt="UPYUN" width="200"></a>

## 主題貢獻:

Expand Down Expand Up @@ -65,11 +65,11 @@

- 本主題使用 YahnisElsts [Plugin Update Checker](https://github.com/YahnisElsts/plugin-update-checker) 以提供主題更新功能

- 本主題使用 HaoZi-Team [ChatGPT PHP](https://github.com/HaoZi-Team/ChatGPT-PHP) 以提供 ChatGPT 相關能力
- 本主題使用 orhanerday [open-ai](https://github.com/orhanerday/open-ai) 以提供 ChatGPT 相關能力

## 希望你喜歡!

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.6/readme/tw-ver2.6info.png)](https://fuukei.org/)
[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/readme/tw-ver2.7info.png)](https://docs.fuukei.org/)

- Star 趨勢 [![GitHub stars](https://img.shields.io/github/stars/mirai-mamori/Sakurairo?logo=github&style=social)](https://github.com/mirai-mamori/Sakurairo/stargazers)

Expand Down
35 changes: 18 additions & 17 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Akina
* @package Sakurairo
*/

get_header(); ?>
Expand All @@ -28,29 +28,30 @@
</span>
</header><!-- .page-header -->
<?php } // page-header
?>
/* if (iro_opt('image_category') && is_category(explode(',', iro_opt('image_category')))) {
while (have_posts()) : the_post();
get_template_part('tpl/content', 'thumb');
endwhile;
} else {
<?php
if (iro_opt('image_category') && is_category(explode(',', iro_opt('image_category')))) {
while (have_posts()) : the_post();
get_template_part('tpl/content', 'category');
endwhile;
} else {
if (iro_opt('post_list_style') == 'akinastyle') {
while (have_posts()) : the_post();
get_template_part('tpl/content', get_post_format());
endwhile;
get_template_part('tpl/content', 'thumbcard');
endwhile;
} */
// TODO: 'image_category'功能待实现
$i = 0;
while (have_posts()) : the_post();
$article_class = '';
if ($i == 1) {
$article_class = ' post-list-show';
} else {
get_template_part('tpl/content', 'thumb');
$i++;
}
}
?>
get_template_part('tpl/content', 'thumbcard');
endwhile; ?>
<div class="clearer"></div>

<?php else :

get_template_part('tpl/content', 'none');

endif; ?>

</main><!-- #main -->
Expand Down
Loading

0 comments on commit 9469cc5

Please sign in to comment.