diff --git a/README.md b/README.md index 8bab554..6310305 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,16 @@ # Fantasy -一款极简Typecho 博客主题 +一款极简Typecho 博客主题,当前仓库为修改版 by Meteor -详细介绍页:https://www.krsay.com/typecho/fantasy.html - -演示地址:https://www.krsay.com~ - -![screenshot](screenshot.png) - ->1.4.2 - -avatar 头像cdn修改 - -远程文件本地化 +原仓库:https://github.com/Seevil/fantasy -增加搜索功能 -修复评论审核 +>23/11/7修改 -回复加@功能修复 +1. 由页面添加代码更改为,友链插件识别 +2. 替换评论头像源为国内(极客源不稳定) -增强1.2.0 php8 兼容性 和其他优化 ->1.4.1 - -兼容1.2和php8 -细节文字微调 - ->1.4.0 更新细节及友情链接设置方法见: - -https://www.krsay.com/typecho/fantasy-1-4-0.html - -# License +详细介绍页:https://www.krsay.com/typecho/fantasy.html +![screenshot](screenshot.png) -「Fantasy」移植自PCDotFan 的 Bitcron 主题 「[Aragaki](https://github.com/pcdotfan/Aragaki)」 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); ?> diff --git a/links.php b/links.php index 44b8a06..c1d5523 100644 --- a/links.php +++ b/links.php @@ -15,15 +15,178 @@ options->eyeshow == 'able'): ?> user->hasLogin()):?>[编辑] -
- content(); ?> + + + + + + + + +
+
- - + + +need('vcomments.php'); ?> need('footer.php'); ?> \ No newline at end of file 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));