diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-12 15:02:49 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-12 15:02:49 +0800 |
| commit | 6ea3d1d34ace40447f5505eb13f132d5876b4c70 (patch) | |
| tree | 1cc7b86b62447e6a17bf08e9ccf3578e17f63617 /libs/Options.php | |
| parent | 2a467dfc76998e392641bb7a681c94974f575b8d (diff) | |
:cactus: Perf: 支持自定义懒加载图片
Diffstat (limited to 'libs/Options.php')
| -rwxr-xr-x | libs/Options.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/Options.php b/libs/Options.php index 21ece40..d16d2d4 100755 --- a/libs/Options.php +++ b/libs/Options.php @@ -42,14 +42,12 @@ function themeConfig($form) { }
}
}
-
/**
* 设置样式+面板
*/
$ver = themeVersion();
$themeDir = "/usr/themes/Miracles/";
-
echo '<link rel="stylesheet" href="'.$themeDir.'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>
@@ -154,9 +152,10 @@ function themeConfig($form) { 'block' => "交错方块",
'octopus' => "旋转章鱼",
'bilibili' => "哔哩哔哩",
- 'shojo' => "少女祈祷"
+ 'shojo' => "少女祈祷",
+ 'custom' => "自定义"
];
- $LoadingImage = new Typecho_Widget_Helper_Form_Element_Radio('loading_image', $LoadingOptions, 'block', _t('图片懒加载动画'),_t(""));
+ $LoadingImage = new Typecho_Widget_Helper_Form_Element_Radio('loading_image', $LoadingOptions, 'block', _t('图片懒加载动画'),_t("选择懒加载动画的图片,若选择自定义,则需要在 images/loading 目录下添加名为 custom.gif 的文件"));
$form->addInput($LoadingImage);
//SiteBuildTime
|
