diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-10-06 13:54:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-06 13:54:18 +0800 |
| commit | 043c72d54324c615f192a1d3310e8c4017c23f10 (patch) | |
| tree | f3e3fb5394aa8957c3d7ee7b430bf6b9d1e2d824 /libs | |
| parent | cb42cfdc07776201f4daaef9c42840fd2cf62109 (diff) | |
🎉 Perf: 一些小改动
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/Contents.php | 6 | ||||
| -rw-r--r-- | libs/Options.php | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/libs/Contents.php b/libs/Contents.php index 77b26f1..e31c35c 100644 --- a/libs/Contents.php +++ b/libs/Contents.php @@ -1,7 +1,7 @@ <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; /* - * 该主体代码来自 熊猫小A(AlanDecode) 的项目,感谢~ + * 该文件大部分代码来自 熊猫小A(AlanDecode) 的项目,感谢~ * https://github.com/AlanDecode/typecho-theme-dev-framework */ @@ -55,7 +55,7 @@ class Contents * 通过查询数据库 * 获取上级评论人 */ - public static function getParent($comment) + public static function commentsParent($comment) { $recipients = []; $db = Typecho_Db::get(); @@ -180,4 +180,4 @@ class Contents return $comments; } -} +}
\ No newline at end of file diff --git a/libs/Options.php b/libs/Options.php index 67de72d..0e48c53 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -3,6 +3,7 @@ * 主题后台设置
*/
function themeConfig($form) {
+
/**
* 主题设置备份
* From https://qqdie.com/archives/typecho-templates-backup-and-restore.html
@@ -62,8 +63,9 @@ function themeConfig($form) { echo '<link rel="stylesheet" href="/usr/themes/Miracles/assets/css/setting.miracles.css"><link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:300|Noto+Serif+SC:300&display=swap" rel="stylesheet">';
echo '<div class="miracles-pannel">
<h1>Miracles 主题设置面板</h1>
- <p>欢迎使用 Miracles 主题,目前版本是:'. $ver .'</span><br>
- 作者博客:<a href="https://guhub.cn">Eltrac\'s</a> | 帮助文档:<a href="https://github.com/BigCoke233/miracles/wiki">WIKI</a> | 问题反馈:<a href="https://github.com/BigCoke233/miracles/issues">issues</a></p>
+ <p>欢迎使用 Miracles 主题,目前版本是:'. $ver .'<br>
+ 作者博客:<a href="https://guhub.cn">Eltrac\'s</a> | 帮助文档:<a href="https://github.com/BigCoke233/miracles/wiki">WIKI</a> | 问题反馈:<a href="https://github.com/BigCoke233/miracles/issues">issues</a>
+ </p>
<form class="protected" action="?MiraclesBackup" method="post">
<input type="submit" name="type" class="miracles-backup-button backup" value="备份模板数据" />
<input type="submit" name="type" class="miracles-backup-button recover" value="还原模板数据" />
@@ -103,7 +105,7 @@ function themeConfig($form) { $form->addInput($CDN);
//custom style
- $grayTheme = new Typecho_Widget_Helper_Form_Element_Select('grayTheme',array('0'=>'关闭','1'=>'开启'),'0','<h2>个性化</h2>哀悼模式','为京阿尼纵火事件而设计的开关,打开后网站变为黑白,Pray for 京阿尼');
+ $grayTheme = new Typecho_Widget_Helper_Form_Element_Select('grayTheme',array('0'=>'关闭','1'=>'开启'),'0','<h2>个性化</h2>哀悼模式','打开后网站变为黑白');
$form->addInput($grayTheme);
$bodyFonts = new Typecho_Widget_Helper_Form_Element_Select('bodyFonts',array('0'=>'无衬线字体','1'=>'衬线字体'),'0','网站字体','选择网站的字体,无衬线字体即“思源黑体”,衬线字体即“思源宋体”');
$form->addInput($bodyFonts);
|
