forked from typecho-fans/themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
30 lines (25 loc) · 1.13 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
function themeConfig($form) {
$logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点LOGO地址'), _t('在这里填入一个图片URL地址, 以在网站标题前加上一个LOGO'));
$form->addInput($logoUrl);
$sidebarBlock = new Typecho_Widget_Helper_Form_Element_Checkbox('sidebarBlock',
array('ShowRecentPosts' => _t('显示最新文章'),
'ShowRecentComments' => _t('显示最近回复'),
'ShowCategory' => _t('显示分类'),
'ShowArchive' => _t('显示归档'),
'ShowOther' => _t('显示其它杂项')),
array('ShowRecentPosts', 'ShowRecentComments', 'ShowCategory', 'ShowArchive', 'ShowOther'), _t('侧边栏显示'));
$form->addInput($sidebarBlock->multiMode());
$css = new Typecho_Widget_Helper_Form_Element_Radio('css',
array(
'green' => _t('绿色系'),
'gray' => _t('灰色系'),
'crimson' => _t('红色系'),
'blue' => _t('蓝色系'),
'orange' => _t('橙色系'),
'yellow' => _t('黄色系')
),
'green',
_t('配色选择'));
$form->addInput($css->multiMode());
}