From 52623837afc79eb704cd3942c3ef463b5be3f293 Mon Sep 17 00:00:00 2001 From: bigfa Date: Sat, 27 Apr 2024 17:54:17 +0800 Subject: [PATCH] feat:add author card sns icon show config --- README.md | 6 +++++- README_CN.md | 6 +++++- modules/setting.php | 6 ++++++ style.css | 2 +- template-parts/author-card.php | 11 ++++++++--- 5 files changed, 25 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6afc5f6..92bf2c2 100755 --- a/README.md +++ b/README.md @@ -6,12 +6,16 @@ Farallon is a simple single column wordpress theme with perfect performace and e [中文说明](https://github.com/bigfa/Farallon/blob/develop/README_CN.md) -latest version : `0.5.2` +latest version : `0.5.3` [Simple User Guide(Chinese)](https://fatesinger.com/101971) ## Changelog +### 0.5.3 + +- add author card sns icon show config + ### 0.5.2 - show sns icons in footer diff --git a/README_CN.md b/README_CN.md index 89dc070..85af647 100755 --- a/README_CN.md +++ b/README_CN.md @@ -2,7 +2,7 @@ ![Wordpress 主题 Farallon](https://static.fatesinger.com/2023/06/u1ak8xgmyn9ec24r.png) -最新版本: `0.5.2` +最新版本: `0.5.3` 本主题禁止各种修改作者链接打包重新发布的行为。 @@ -10,6 +10,10 @@ ## 更新日志 +### 0.5.3 + +- 增加一个作者 SNS 图标是否展示的配置 + ### 0.5.2 - 底部展示 SNS 图标 diff --git a/modules/setting.php b/modules/setting.php index 8b3fdc9..0a6a54e 100755 --- a/modules/setting.php +++ b/modules/setting.php @@ -346,6 +346,12 @@ function setting_switch($params) 'label' => __('Author bio', 'Farallon'), 'description' => __('Enable author bio', 'Farallon') ], + [ + 'type' => 'switch', + 'name' => 'author_sns', + 'label' => __('Author sns icons', 'Farallon'), + 'description' => __('Show author sns icons, will not show when author bio is off.', 'Farallon') + ], [ 'type' => 'switch', 'name' => 'related', diff --git a/style.css b/style.css index dca4f28..dbcb212 100755 --- a/style.css +++ b/style.css @@ -4,6 +4,6 @@ Theme URI: https://github.com/bigfa/Farallon Author: bigfa Author URI: https://github.com/bigfa Description: theme 2024 -Version: 0.5.1 +Version: 0.5.3 Tags: Minimalism, Responsive */ diff --git a/template-parts/author-card.php b/template-parts/author-card.php index 20c6f4e..d52d4f4 100755 --- a/template-parts/author-card.php +++ b/template-parts/author-card.php @@ -1,8 +1,13 @@ +
-
- -
+ get_setting('author_sns')) : ?> +
+ +
+
\ No newline at end of file