forked from daixl2010/Typecho-Nesoft-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
executable file
·28 lines (19 loc) · 1.73 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
<?php
function themeConfig($form) {
$global_notice = new Typecho_Widget_Helper_Form_Element_Text('global_notice', NULL, _t(''), _t('站点公告'), _t('在这里填入公告,不显示则留空'));
$form->addInput($global_notice);
$global_beian = new Typecho_Widget_Helper_Form_Element_Text('global_beian', NULL, _t(''), _t('备案号'), _t('在这里填入天朝备案号,不显示则留空'));
$form->addInput($global_beian);
$seo_zdts = new Typecho_Widget_Helper_Form_Element_Textarea('seo_zdts', NULL, NULL, _t('百度推送代码'), _t('这里输入你的推送代码,不填则不显示。'));
$form->addInput($seo_zdts);
$seo_analysis_yb = new Typecho_Widget_Helper_Form_Element_Textarea('seo_analysis_yb', NULL, NULL, _t('流量统计'), _t('这里输入你的统计代码,网站头部加载。'));
$form->addInput($seo_analysis_yb);
$ad_list = new Typecho_Widget_Helper_Form_Element_Textarea('ad_list', NULL, NULL, _t('列表广告'), _t('这里输入你的广告代码,不填则不显示。'));
$form->addInput($ad_list);
$ad_single_top = new Typecho_Widget_Helper_Form_Element_Textarea('ad_single_top', NULL, NULL, _t('文章上部广告'), _t('这里输入你的广告代码,不填则不显示。'));
$form->addInput($ad_single_top);
$ad_comments_top = new Typecho_Widget_Helper_Form_Element_Textarea('ad_comments_top', NULL, NULL, _t('评论上部广告'), _t('这里输入你的广告代码,不填则不显示。'));
$form->addInput($ad_comments_top);
$ad_widget_top = new Typecho_Widget_Helper_Form_Element_Textarea('ad_widget_top', NULL, NULL, _t('右边栏广告'), _t('这里输入你的广告代码,不填则不显示。'));
$form->addInput($ad_widget_top);
}