From 4e6bba09dd1786422071c9c3e245c8d3df4c252b Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Thu, 29 Sep 2022 23:23:39 +0800 Subject: =?UTF-8?q?:gem:=20Add:=20=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Options.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libs/Options.php') diff --git a/libs/Options.php b/libs/Options.php index 76419d3..39a6a43 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -129,9 +129,11 @@ function themeConfig($form) {

使用特定的 JSON 格式书写,可以在首页文章目录之前展示一个相关链接版块,详情请查看说明文档


')); $form->addInput($relatedLinks); - /** - * 自定义 - */ + //自定义时间显示 + $timeFormat = new Typecho_Widget_Helper_Form_Element_Text('timeFormat', NULL, NULL, _t('自定义时间格式'), _t(' +

留空则默认采用人性化时间(即“昨天、前天、几天前”),若不想要使用人性化时间则在此填入 PHP 时间格式,例如:Y-m-d G:i:s

')); + $form->addInput($timeFormat); + //自定义 head $customHead = new Typecho_Widget_Helper_Form_Element_Textarea('customHead', NULL, NULL, _t('自定义 head 头部信息'), _t('

将会输出在 head 标签结束之前,通常用于引入 css 文件。

')); -- cgit v1.2.3