From 803f8ca10dcea0b649c2f8feb2e46429d18fb838 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Fri, 19 Aug 2022 15:15:54 +0800 Subject: =?UTF-8?q?:dizzy:=20Add:=20=E6=B7=BB=E5=8A=A0=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=80=89=E6=8B=A9=E8=AE=BE=E7=BD=AE=20&&=20:?= =?UTF-8?q?bug:=20Fix:=20=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=BA=A2=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 4d8ba42..3905b9a 100644 --- a/functions.php +++ b/functions.php @@ -7,6 +7,18 @@ Typecho_Plugin::factory('Widget_Abstract_Contents')->contentEx = array('Matcha', Typecho_Plugin::factory('Widget_Abstract_Contents')->excerptEx = array('Matcha','parseContent'); function themeConfig($form) { + //个性化 + $customStyle = new Typecho_Widget_Helper_Form_Element_Radio('customStyle', array( + 'ringo' => _t('Ringo'), + 'journal' => _t('Journal'), + ), + 'ringo', + _t('选择主题样式'), + _t('选择 Ringo 则使用 Ringo 主题的整体设计,更加简洁;
+ 选择 Journal 则使用 Journal 主题的整体设计,更加大气') + ); + $form->addInput($customStyle->addRule('required', _t('此处必须设置'))); + $favicon = new Typecho_Widget_Helper_Form_Element_Text('favicon', NULL, 'favicon.png', _t('浏览器图标(Favicon)'), _t('在这里填入一个指向图片文件的 url 来自定义浏览器标签栏显示的图标,留空则默认为 favicon.ico')); $form->addInput($favicon); -- cgit v1.2.3