原创为兜兜,后台可自定义一个选项,自定义CSS本色:
function themeConfig($form) {
$css = new Typecho_Widget_Helper_Form_Element_Radio('css',
array(
'gray' => _t('灰色系'),
'green' => _t('绿色系')
),
'gray',
_t('配色选择'));
$form->addInput($css->multiMode());
}
调用函数
$this->options->css