Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync #931

Open
wants to merge 138 commits into
base: v3.0
Choose a base branch
from
Open

Sync #931

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
218b543
deprecate: _iro.template_url
KotoriK Oct 7, 2024
9736db3
feat: extract_theme_skin
KotoriK Oct 7, 2024
e115f9f
feat(article_theme): darkmode highlight
KotoriK Oct 7, 2024
7689043
chore: update js bundle to 6a3b3ef
KotoriK Oct 7, 2024
916d8af
Daily Update
mirai-mamori Oct 7, 2024
782a4fb
Merge branch 'preview' of https://github.com/mirai-mamori/Sakurairo i…
mirai-mamori Oct 7, 2024
e119002
Daily Update
mirai-mamori Oct 8, 2024
a68184d
Daily Update
mirai-mamori Oct 8, 2024
64c2145
fix(分类目录): 文章重复渲染; 不应该渲染说说
KotoriK Oct 9, 2024
473e26a
chore
KotoriK Oct 9, 2024
1a1ed05
style: 整理调整post-list-show动画; 说说支持相关动画
KotoriK Oct 9, 2024
5da3b1e
chore
KotoriK Oct 9, 2024
53f9cb9
Daily Update
mirai-mamori Oct 9, 2024
5cd3ee1
Merge branch 'preview' of https://github.com/mirai-mamori/Sakurairo i…
mirai-mamori Oct 9, 2024
61e64cf
Daily Update
mirai-mamori Oct 9, 2024
7b3a2bf
perf: 转移样式定义到css
KotoriK Oct 9, 2024
209a50f
feat(conversations): 当定义了username时,会加入供阅读器使用的提示文本
KotoriK Oct 9, 2024
b5af39e
fix(chatgpt): 使用中文时字符串分割不正常
KotoriK Oct 9, 2024
bd6363b
chore: update js bundle to bc27893
KotoriK Oct 9, 2024
8511531
perf(chatgpt): 传输正文时,删除连续的\n
KotoriK Oct 9, 2024
3940e15
doc
KotoriK Oct 9, 2024
3081625
chore(chatgpt): 配置默认模型
KotoriK Oct 9, 2024
eeaa672
feat(chatgpt): 增加默认值自动配置
KotoriK Oct 9, 2024
9cffc2f
Daily Update
mirai-mamori Oct 9, 2024
d08f618
Daily Update
mirai-mamori Oct 9, 2024
3bd4f4e
Daily Update
mirai-mamori Oct 9, 2024
2f3f063
chore: gpt options
KotoriK Oct 10, 2024
7993ffa
perf: 调整前后文章提示
KotoriK Oct 10, 2024
a481384
refactor: lint css
KotoriK Oct 10, 2024
314a09a
perf(文章评论): 调整
KotoriK Oct 10, 2024
c4b0e64
Daily Update
mirai-mamori Oct 10, 2024
b9599ff
Daily Update
mirai-mamori Oct 10, 2024
c88bcbe
Daily Update
mirai-mamori Oct 10, 2024
648880d
移动端头像
Molyleaf Oct 10, 2024
52a7903
修复夜间模式
Molyleaf Oct 10, 2024
9782355
修复夜间模式
Molyleaf Oct 10, 2024
94132a8
Update login.css
Molyleaf Oct 10, 2024
b89ff74
Update login_addcss.php
Molyleaf Oct 10, 2024
8855a93
Update toc-container top in style.css
AstroNomen Oct 10, 2024
9a75511
update 404 page height
AstroNomen Oct 10, 2024
dccd027
Update 404.php
AstroNomen Oct 10, 2024
b9bf4e8
Merge pull request #928 from AstroNomen/preview
mirai-mamori Oct 11, 2024
a458e15
Merge pull request #927 from Molyleaf/preview
mirai-mamori Oct 11, 2024
147496b
perf: 404页不再加载appjs和pagejs
KotoriK Oct 11, 2024
d2c7e87
chore: update js bundle to 427713a
KotoriK Oct 11, 2024
7a454bd
Daily Update
mirai-mamori Oct 11, 2024
120a685
Daily Update
mirai-mamori Oct 11, 2024
af5f50c
Daily Update
mirai-mamori Oct 11, 2024
04bf654
Daily Update
mirai-mamori Oct 12, 2024
5870a5c
Daily Update
mirai-mamori Oct 12, 2024
bf0947c
Daily Update
mirai-mamori Oct 12, 2024
ea40337
Daily Update
mirai-mamori Oct 12, 2024
2ba8cd1
Daily Update
mirai-mamori Oct 12, 2024
2ab1bf4
Daily Update
mirai-mamori Oct 12, 2024
d146c72
Version 2.7.0
mirai-mamori Oct 13, 2024
57cfe54
Version 2.7.0
mirai-mamori Oct 13, 2024
a172c20
Version 2.7.0
mirai-mamori Oct 13, 2024
30d1cea
Version 2.7.0
mirai-mamori Oct 13, 2024
9469cc5
Merge pull request #929 from mirai-mamori/preview
mirai-mamori Oct 13, 2024
0c44c8c
Daily Update
mirai-mamori Oct 13, 2024
719ed83
加入浏览器RSS支持
AstroNomen Oct 13, 2024
3d55995
Merge pull request #932 from AstroNomen/main
mirai-mamori Oct 13, 2024
0c5c7fd
Daily Update
mirai-mamori Oct 14, 2024
58e89be
perf(post_list): 现在列表第一项不再默认加载
KotoriK Oct 14, 2024
121864c
perf: 头像不再添加lazyload
KotoriK Oct 14, 2024
206e175
chore: update js bundle to 1a99e88
KotoriK Oct 14, 2024
3b8838d
style: 去除文章页背景的白边
KotoriK Oct 14, 2024
422d0df
fix(theme_option): 版权选择不显示时刷新后错误地选中CC0
KotoriK Oct 15, 2024
af18889
Daily Update
mirai-mamori Oct 15, 2024
e33b023
Daily Update
mirai-mamori Oct 15, 2024
609f2c6
Daily Update
mirai-mamori Oct 15, 2024
c4457d7
Daily Update
mirai-mamori Oct 15, 2024
82299ed
Daily Update
mirai-mamori Oct 15, 2024
f9f2cf2
Daily Update
mirai-mamori Oct 15, 2024
ea8d6bc
chore: 更新注释,增加CC0说明
KotoriK Oct 15, 2024
0a4c379
fix: 修复另一个选项page_auto_load的类似问题
KotoriK Oct 15, 2024
30f4042
Daily Update
mirai-mamori Oct 16, 2024
b224918
PUC up to 5.5
mirai-mamori Oct 17, 2024
a6a6f27
Daily Update
mirai-mamori Oct 17, 2024
a89fc5e
chore: update js bundle to e5d9f25
KotoriK Oct 17, 2024
7c65162
Daily Update
mirai-mamori Oct 18, 2024
b7bfde8
Daily Update
mirai-mamori Oct 18, 2024
c725d87
Daily Update
mirai-mamori Oct 18, 2024
5f6f026
Daily Update
mirai-mamori Oct 18, 2024
d017ec4
Daily Update
mirai-mamori Oct 18, 2024
2373a6b
Daily Update
mirai-mamori Oct 18, 2024
c81b69d
Update style.css
Molyleaf Oct 18, 2024
d974279
Update style.css
Molyleaf Oct 18, 2024
a7735b7
fix(article_license): 未实装单post修改license的功能; 调整注释
KotoriK Oct 18, 2024
dded478
feat: clipboard_ref
KotoriK Oct 18, 2024
6d21c66
chore: update js bundle to d65075e
KotoriK Oct 18, 2024
2b12472
Daily Update
mirai-mamori Oct 19, 2024
d34681d
Merge pull request #939 from Molyleaf/preview
mirai-mamori Oct 19, 2024
8baaa97
Daily Update
mirai-mamori Oct 19, 2024
eb59146
Daily Update
mirai-mamori Oct 19, 2024
b057109
Daily Update
mirai-mamori Oct 19, 2024
ed3b8c4
Daily Update
mirai-mamori Oct 19, 2024
bc97384
Version 2.7.1
mirai-mamori Oct 19, 2024
fc63221
Daily Update
mirai-mamori Oct 20, 2024
8264e7e
Daily Update
mirai-mamori Oct 20, 2024
01c8700
fix: bilibili-ctp -> bilibili
bymoye Oct 20, 2024
45dc705
fix: 使追剧模板下一页正确请求
bymoye Oct 20, 2024
2e34da4
Merge pull request #948 from mirai-mamori/preview
mirai-mamori Oct 20, 2024
8908ea9
Daily Update
mirai-mamori Oct 20, 2024
9a7330c
Merge pull request #951 from mirai-mamori/preview
mirai-mamori Oct 20, 2024
ec9b370
add mobile login entry option
AstroNomen Oct 20, 2024
0105481
Merge pull request #955 from AstroNomen/preview
mirai-mamori Oct 22, 2024
eb60c0a
Daily Update
mirai-mamori Oct 22, 2024
95de2a2
Daily Update
mirai-mamori Oct 22, 2024
f5d2f0b
fix issue #954
leaphy-dev Oct 22, 2024
ef9c873
Add files via upload
nicocatxzc Oct 29, 2024
edc3a79
Add files via upload
nicocatxzc Oct 29, 2024
f4532b8
Update theme-options.php
nicocatxzc Oct 29, 2024
e1fc033
Update theme-options.php
nicocatxzc Oct 30, 2024
546f2e0
Update swicher.php
nicocatxzc Oct 30, 2024
8ea7882
Update swicher.php
nicocatxzc Oct 30, 2024
7b75628
Update theme-options.php
nicocatxzc Oct 30, 2024
765e634
Update header.php
nicocatxzc Oct 30, 2024
0b1f0fa
Update theme-options.php
nicocatxzc Oct 30, 2024
762f56c
Update theme-options.php
nicocatxzc Oct 30, 2024
7e63831
Merge pull request #957 from LeaVES-0/patch-1
mirai-mamori Oct 31, 2024
e18ce6b
Merge pull request #961 from nicocatxzc/add-custom-playlist-option
mirai-mamori Oct 31, 2024
b8f679f
Squashed commit of the following:
mirai-mamori Oct 31, 2024
b81b4be
Merge pull request #963 from nicocatxzc/Fix-the-footer-loading-bug-af…
mirai-mamori Oct 31, 2024
eca2ac5
Update search.php
nicocatxzc Oct 31, 2024
f7790b6
Update search.php
nicocatxzc Oct 31, 2024
6edbc3e
Update search.php
nicocatxzc Oct 31, 2024
9d398ef
Add files via upload
nicocatxzc Nov 1, 2024
3246bf0
Update search.php
nicocatxzc Nov 1, 2024
6757cb4
Add files via upload
nicocatxzc Nov 2, 2024
debe30a
Add files via upload
nicocatxzc Nov 2, 2024
6c977ac
Merge pull request #965 from nicocatxzc/search-engin-fix
mirai-mamori Nov 3, 2024
328911d
Merge pull request #966 from nicocatxzc/translate
mirai-mamori Nov 3, 2024
c312e58
Daily Update
mirai-mamori Nov 3, 2024
00ada7f
Daily Update
mirai-mamori Nov 3, 2024
bc95c74
Daily Update
mirai-mamori Nov 3, 2024
4414c8b
Daily Update
mirai-mamori Nov 3, 2024
93046f0
Merge pull request #968 from mirai-mamori/preview
mirai-mamori Nov 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

<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" 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>
Expand All @@ -39,7 +39,7 @@
</form>
</div>
</section>
<script src="<?php echo esc_url($shared_lib_basepath . '/js/anf.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $shared_lib_basepath . '/js/anf.js'; ?>" type="text/javascript"></script>
<?php wp_footer(); ?>
</body>

Expand Down
8 changes: 4 additions & 4 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.7/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.7/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 @@ -35,7 +35,7 @@

## 支持我们:

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/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 All @@ -57,7 +57,7 @@

- 本主题**基于 [Sakura V3 Series](https://github.com/mashirozx/sakura/tree/3.x) 主题进行重构开发**,使用 [GPL V2.0](https://github.com/mirai-mamori/Sakurairo/blob/master/LICENSE) 协议开源。

- 本主题使用了部分来自互联网的特效。由于版权及开源协议不明,无法具体说明相关信息。如果本主题使用到您制作的特效,烦请您通过邮件(me#okaeri.org)来取得联系。
- 本主题使用了部分来自互联网的特效。由于版权及开源协议不明,无法具体说明相关信息。如果本主题使用到您制作的特效,烦请您通过邮件(me#hareru.org)来取得联系。

### 引用相关:

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.7/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.7/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 @@ -45,7 +45,7 @@ Please fill in with the issue template. Thanks for your cooperation.

- The theme is **developed based on theme [Sakura](https://github.com/mashirozx/Sakura)**, licensed with [GPL V2.0](https://github.com/mirai-mamori/Sakurairo/blob/master/LICENSE).

- The theme uses some special effects from the Internet. Due to the unclear copyright information and open source lincenses, the related information cannot be dispalyed here. If the theme have used the special effects provided by you, please contant **me#okaeri.org** via email.
- The theme uses some special effects from the Internet. Due to the unclear copyright information and open source lincenses, the related information cannot be dispalyed here. If the theme have used the special effects provided by you, please contant **me#hareru.org** via email.

### References:

Expand All @@ -65,7 +65,7 @@ Please fill in with the issue template. Thanks for your cooperation.

## Hope you can enjoy it!

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/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.7/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.7/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 @@ -44,7 +44,7 @@

- 本テーマは、**[Sakura V3 Series](https://github.com/mashirozx/sakura/tree/3.x) テーマのリファクタリングに基づいており**、[GPL V2.0](https://github.com/mirai-mamori/Sakurairo/blob/master/LICENSE) でオープンソースとなっています

- このテーマの一部のエフェクトには、インターネットで公開されているエフェクトが使用されています。著作権やオープンソースの契約が不明なため、関連情報を明記することはできません。本テーマは貴方が作成されたエフェクトが使用されている場合は、メール(me#okaeri.org)でご連絡ください。メールアドレスは、送信前に“#”を@に変更ください。
- このテーマの一部のエフェクトには、インターネットで公開されているエフェクトが使用されています。著作権やオープンソースの契約が不明なため、関連情報を明記することはできません。本テーマは貴方が作成されたエフェクトが使用されている場合は、メール(me#hareru.org)でご連絡ください。メールアドレスは、送信前に“#”を@に変更ください。

### 参考資料:

Expand All @@ -64,7 +64,7 @@

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

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/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
8 changes: 4 additions & 4 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.7/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.7/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 Down Expand Up @@ -49,7 +49,7 @@

- 本主題**基於 [Sakura V3 Series](https://github.com/mashirozx/sakura/tree/3.x) 主題進行重構開發**,使用 [GPL V2.0](https://github.com/mirai-mamori/Sakurairo/blob/master/LICENSE) 協議開源。

- 本主題使用了部分來自網路的特效。由於版權及開源協議不明,無法具體說明相關資訊。如果本主題使用到您製作的特效,煩請您通過郵件(me#okaeri.org)來取得聯絡。
- 本主題使用了部分來自網路的特效。由於版權及開源協議不明,無法具體說明相關資訊。如果本主題使用到您製作的特效,煩請您通過郵件(me#hareru.org)來取得聯絡。

### 引用相關:

Expand All @@ -69,7 +69,7 @@

## 希望你喜歡!

[![image](https://s.nmxc.ltd/sakurairo_vision/@2.7/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
24 changes: 12 additions & 12 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@
</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 {
get_template_part('tpl/content', 'thumb');
}
?>
get_template_part('tpl/content', 'thumbcard');
endwhile;
} */
// TODO: 'image_category'功能待实现
while (have_posts()) : the_post();
get_template_part('tpl/content', 'thumbcard');
endwhile; ?>
<div class="clearer"></div>

<?php else :

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

endif; ?>

</main><!-- #main -->
Expand Down
6 changes: 3 additions & 3 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

?>
<div class="author_info">
<div class="avatar" data-post-count="<?php echo get_the_author_posts(); ?>">
<div class="avatar" data-post-count="<?php echo count_user_posts(get_the_author_meta('ID'), 'post'); ?>">
<?php echo get_avatar(get_the_author_meta('ID')); ?>
</div>
<div class="author-center">
Expand Down Expand Up @@ -36,8 +36,8 @@
transition: all 0.6s ease-in-out;
border-radius: 16px;
border: 1px solid #FFFFFF;
backdrop-filter: blur(10px);
webkit-backdrop-filter: blur(10px);
backdrop-filter: saturate(180%) blur(10px);
webkit-backdrop-filter: saturate(180%) blur(10px);
}
</style>
<div id="primary" class="content-area">
Expand Down
8 changes: 4 additions & 4 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
'title_reply_to' => '<div class="graybar"><i class="fa-regular fa-comment"></i>' . __('Leave a Reply to', 'sakurairo') . ' %s' . '</div>',
'cancel_reply_link' => __('Cancel Reply', 'sakurairo'),
'label_submit' => __('BiuBiuBiu~', 'sakurairo'),
'comment_field' => '<p style="font-style:italic"><a href="https://segmentfault.com/markdown" target="_blank"><i class="fa-brands fa-markdown" style="color:var(--comment_area_matching);"></i></a> Markdown Supported while <i class="fa-solid fa-code"></i> Forbidden</p><div class="comment-textarea"><textarea placeholder="' . __("You are a surprise that I will only meet once in my life", "sakurairo") . ' ..." name="comment" class="commentbody" id="comment" rows="5" tabindex="4"></textarea><label class="input-label">' . __("You are a surprise that I will only meet once in my life", "sakurairo") . ' ...</label></div>
'comment_field' => '<p style="font-style:italic"><a href="https://segmentfault.com/markdown" target="_blank"><i class="fa-brands fa-markdown" style="color:var(--article-theme-highlight,var(--theme-skin-matching));"></i></a> Markdown Supported while <i class="fa-solid fa-code"></i> Forbidden</p><div class="comment-textarea"><textarea placeholder="' . __("You are a surprise that I will only meet once in my life", "sakurairo") . ' ..." name="comment" class="commentbody" id="comment" rows="5" tabindex="4"></textarea><label class="input-label">' . __("You are a surprise that I will only meet once in my life", "sakurairo") . ' ...</label></div>
<div id="upload-img-show"></div>
<!--插入表情面版-->
' . $smilies_panel . '
Expand All @@ -141,11 +141,11 @@
'fields' => apply_filters( 'comment_form_default_fields', array(
'avatar' => '<div class="cmt-info-container"><div class="comment-user-avatar"><img alt="comment_user_avatar" src="' . iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.7/') . 'basic/avatar.jpeg"><div class="socila-check qq-check"><i class="fa-brands fa-qq"></i></div><div class="socila-check gravatar-check"><i class="fa-solid fa-face-kiss-wink-heart"></i></div></div>',
'author' =>
'<div class="popup cmt-popup cmt-author" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -115px;width: 230px;">' . __("Auto pull nickname and avatar with a QQ num. entered", "sakurairo")/*输入QQ号将自动拉取昵称和头像*/ . '</span><input type="text" placeholder="' . __("Nickname or QQ number", "sakurairo") /*昵称或QQ号*/. ' ' . ( $req ? '(' . __("Name* ", "sakurairo") . ')' : '') . '" name="author" id="author" value="' . esc_attr($comment_author) . '" size="22" autocomplete="off" tabindex="1" ' . ($req ? "aria-required='true'" : '' ). ' /></div>',
'<div class="popup cmt-popup cmt-author"><input type="text" placeholder="' . __("Nickname or QQ number", "sakurairo") /*昵称或QQ号*/. ' ' . ( $req ? '(' . __("Name* ", "sakurairo") . ')' : '') . '" name="author" id="author" value="' . esc_attr($comment_author) . '" size="22" autocomplete="off" tabindex="1" ' . ($req ? "aria-required='true'" : '' ). ' /><span class="popuptext" style="margin-left: -115px;width: 230px;">' . __("Auto pull nickname and avatar with a QQ num. entered", "sakurairo")/*输入QQ号将自动拉取昵称和头像*/ . '</span></div>',
'email' =>
'<div class="popup cmt-popup" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -65px;width: 130px;">' . __("You will receive notification by email", "sakurairo")/*你将收到回复通知*/ . '</span><input type="text" placeholder="' . __("email", "sakurairo") . ' ' . ( $req ? '(' . __("Must* ", "sakurairo") . ')' : '') . '" name="email" id="email" value="' . esc_attr($comment_author_email) . '" size="22" tabindex="1" autocomplete="off" ' . ($req ? "aria-required='true'" : '' ). ' /></div>',
'<div class="popup cmt-popup"><input type="text" placeholder="' . __("email", "sakurairo") . ' ' . ( $req ? '(' . __("Must* ", "sakurairo") . ')' : '') . '" name="email" id="email" value="' . esc_attr($comment_author_email) . '" size="22" tabindex="1" autocomplete="off" ' . ($req ? "aria-required='true'" : '' ). ' /><span class="popuptext" style="margin-left: -65px;width: 130px;">' . __("You will receive notification by email", "sakurairo")/*你将收到回复通知*/ . '</span></div>',
'url' =>
'<div class="popup cmt-popup" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -55px;width: 110px;">' . __("Advertisement is forbidden 😀", "sakurairo")/*禁止小广告😀*/ . '</span><input type="text" placeholder="' . __("Site", "sakurairo") . '" name="url" id="url" value="' . esc_attr($comment_author_url) . '" size="22" autocomplete="off" tabindex="1" /></div></div>' . $robot_comments . $private_ms . $mail_notify ,
'<div class="popup cmt-popup"><input type="text" placeholder="' . __("Site", "sakurairo") . '" name="url" id="url" value="' . esc_attr($comment_author_url) . '" size="22" autocomplete="off" tabindex="1" /><span class="popuptext" style="margin-left: -55px;width: 110px;">' . __("Advertisement is forbidden 😀", "sakurairo")/*禁止小广告😀*/ . '</span></div></div>' . $robot_comments . $private_ms . $mail_notify ,
'qq' =>
'<input type="text" placeholder="QQ" name="new_field_qq" id="qq" value="' . esc_attr($comment_author_url) . '" style="display:none" autocomplete="off"/><!--此栏不可见-->'
)
Expand Down
28 changes: 18 additions & 10 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@
</section><!-- #section -->
<!-- m-nav-center -->
<div id="mo-nav">
<div class="m-avatar">
<?php
$personal_avatar = iro_opt('personal_avatar');
$iro_logo = iro_opt('iro_logo');
$ava = $personal_avatar ? $personal_avatar : ($iro_logo ?: iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.7/') . 'series/avatar.webp'); ?>
<img alt="m-avatar" src="<?php echo esc_url($ava); ?>">
</div>
<?php if (wp_is_mobile()) m_user_menu(); ?>
<?php if (iro_opt('mobile_menu_user_avatar', 'true')): ?>
<div class="m-avatar">
<?php
global $current_user;
wp_get_current_user();
if (is_user_logged_in()) { ?>
<img alt="m-avatar" src="<?php echo get_avatar_url($current_user->ID, [64]); ?>">
<?php } else { ?>
<img alt="m-avatar" src="<?php echo iro_opt('unlisted_avatar');?>">
<?php } ?>
</div>
<?php endif; ?>
<?php if (wp_is_mobile() && iro_opt('mobile_menu_user_avatar', 'true')) m_user_menu(); ?>
<div class="m-search">
<form class="m-search-form" method="get" action="<?php echo esc_url(home_url()); ?>" role="search">
<input class="m-search-input" type="search" name="s" placeholder="<?php esc_attr_e('Search...', 'sakurairo'); ?>" required>
Expand Down Expand Up @@ -161,7 +166,10 @@

<!-- 首页波浪特效 -->
<?php if (iro_opt('wave_effects', 'true')): ?>
<link rel="stylesheet" href="<?php echo esc_url($shared_lib_basepath); ?>/css/wave.css">
<?php if (!isset($shared_lib_basepath)) {
$shared_lib_basepath = iro_opt('shared_library_basepath') ? get_template_directory_uri() : (iro_opt('lib_cdn_path', 'https://fastly.jsdelivr.net/gh/mirai-mamori/Sakurairo@') . IRO_VERSION);
} ?>
<link rel="stylesheet" href="<?php echo $shared_lib_basepath . '/css/wave.css'; ?>">
<?php endif; ?>

<?php echo iro_opt('footer_addition', ''); ?>
Expand All @@ -181,6 +189,6 @@
}
</style>
<div id="particles-js"></div>
<script type="application/json" id="particles-js-cfg"><?php echo esc_html(iro_opt('particles_json', '')); ?></script>
<script type="application/json" id="particles-js-cfg"><?php echo iro_opt('particles_json', ''); ?></script>
<?php endif; ?>
</html>
Loading
Loading