From d5850d90705f454413a607c5b9611a6b852004d7 Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 14:42:37 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E5=8F=8B=E6=83=85=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=94=B9=E7=94=A8=E8=AF=86=E5=88=ABlinks?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 友情链接页面改用识别links插件数据,方便管理 --- links.php | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 166 insertions(+), 4 deletions(-) diff --git a/links.php b/links.php index 44b8a06..f087c2c 100644 --- a/links.php +++ b/links.php @@ -15,15 +15,177 @@ options->eyeshow == 'able'): ?> user->hasLogin()):?>[编辑] -
- content(); ?> + + + + + + + + + + +
+
- - + + need('footer.php'); ?> \ No newline at end of file From 55d8db915bddbc2c00a8e902942afc4362a4e1aa Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 14:43:20 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 友情链接links插件检测函数 From 15ac50b35647f23ebcf3b260c66510b22439a465 Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 14:44:45 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=BA=90=E4=B8=BACravatar=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更换评论头像源为Cravatar头像 --- vcomments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcomments.php b/vcomments.php index d193ada..107c4f3 100644 --- a/vcomments.php +++ b/vcomments.php @@ -15,7 +15,7 @@ function threadedComments($comments, $options) { $commentLevelClass = $comments->levels > 0 ? ' comment-child' : ' comment-parent'; ?> commentsAvatarRating; $hash = md5(strtolower($comments->mail)); From 6bb46358c90214398ceb8a6b1f0c64d6c3ac10af Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 14:50:14 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=8F=AF=E7=94=A8=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加插件是否可用函数 --- functions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/functions.php b/functions.php index d325f22..d72c1f5 100644 --- a/functions.php +++ b/functions.php @@ -74,6 +74,18 @@ function theme_random_posts(){ echo $defaults['after']; } +/** + * 判断插件是否可用 + * + * @return bool + */ + function isPluginAvailable($name) + { + $plugins = Typecho_Plugin::export(); + $plugins = $plugins['activated']; + return is_array($plugins) && array_key_exists($name, $plugins); + } + /** * 输出评论回复内容,配合 commentAtContent($coid)一起使用 * coid); ?> From 8c9020fd85813bf0bab95d8a775ae9b255e9e901 Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:04:39 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E5=8F=8B=E9=93=BE=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加评论 --- links.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/links.php b/links.php index f087c2c..c1d5523 100644 --- a/links.php +++ b/links.php @@ -45,11 +45,11 @@ }?> - + @@ -188,4 +188,5 @@ float:initial; } +need('vcomments.php'); ?> need('footer.php'); ?> \ No newline at end of file From 66f919ca8a16b70f97fedef2dfa5f88ee5b524b3 Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:29:49 +0800 Subject: [PATCH 6/8] Update README.md --- README.md | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 8bab554..8ff4f5a 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,14 @@ # Fantasy -一款极简Typecho 博客主题 +一款极简Typecho 博客主题,当前仓库为修改版 by Meteor + +原仓库:https://github.com/Seevil/fantasy 详细介绍页:https://www.krsay.com/typecho/fantasy.html 演示地址:https://www.krsay.com~ ![screenshot](screenshot.png) +>修改231107 +更改友链插件识别 +替换评论头像源 ->1.4.2 - -avatar 头像cdn修改 - -远程文件本地化 - -增加搜索功能 - -修复评论审核 - -回复加@功能修复 - -增强1.2.0 php8 兼容性 和其他优化 - ->1.4.1 - -兼容1.2和php8 -细节文字微调 - ->1.4.0 更新细节及友情链接设置方法见: - -https://www.krsay.com/typecho/fantasy-1-4-0.html - -# License - - -「Fantasy」移植自PCDotFan 的 Bitcron 主题 「[Aragaki](https://github.com/pcdotfan/Aragaki)」 From 1da602b91c72ea1d8d9ec3ccb7396c9fbc8854b7 Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:30:33 +0800 Subject: [PATCH 7/8] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8ff4f5a..391362c 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,13 @@ 原仓库:https://github.com/Seevil/fantasy -详细介绍页:https://www.krsay.com/typecho/fantasy.html - -演示地址:https://www.krsay.com~ -![screenshot](screenshot.png) >修改231107 更改友链插件识别 替换评论头像源 + +详细介绍页:https://www.krsay.com/typecho/fantasy.html +![screenshot](screenshot.png) + + From ab7ac1a415ccba471943565a43b9cca2ae991ad4 Mon Sep 17 00:00:00 2001 From: Meteor <70014225+coolf233@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:32:10 +0800 Subject: [PATCH 8/8] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 391362c..6310305 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,10 @@ 原仓库:https://github.com/Seevil/fantasy ->修改231107 -更改友链插件识别 -替换评论头像源 +>23/11/7修改 + +1. 由页面添加代码更改为,友链插件识别 +2. 替换评论头像源为国内(极客源不稳定) 详细介绍页:https://www.krsay.com/typecho/fantasy.html