diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-19 15:15:54 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-19 15:15:54 +0800 |
| commit | 803f8ca10dcea0b649c2f8feb2e46429d18fb838 (patch) | |
| tree | ba3a84db863baab0054dbce5745abd2be7d6f6d6 /functions.php | |
| parent | e185943bb45c9ae4d0de26133f049ea1d2966e3c (diff) | |
:dizzy: Add: 添加主题样式选择设置 && :bug: Fix: 修复移动端内容溢出的问题
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 12 |
1 files changed, 12 insertions, 0 deletions
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 主题的整体设计,更加简洁;<br> + 选择 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); |
