diff options
| author | 阔落 <45323514+BigCoke233@users.noreply.github.com> | 2019-04-06 16:48:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-06 16:48:17 +0800 |
| commit | bf183e944f0cbb924b73c84d2c8cdb7b59d35eb1 (patch) | |
| tree | f6530294df83ec1991b92c5c8dfa64b224b34e34 /functions.php | |
| parent | 43156f86f3e167f066e1a655baee71eaebbdad4b (diff) | |
修复无法评论问题,现在具有data-pjax特性的元素才能使pjax响应
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 902d8af..191ba5d 100644 --- a/functions.php +++ b/functions.php @@ -7,6 +7,9 @@ function themeFields($layout) { $banner = new Typecho_Widget_Helper_Form_Element_Text('banner', NULL, NULL, _t('文章缩略图'), _t('填入一个图片url作为缩略图,显示在文章列表和文章页面顶部,不填写则没有缩略图'));
$layout->addItem($banner);
+ $topic = new Typecho_Widget_Helper_Form_Element_Text('topic', NULL, NULL, _t('题记'), _t('输入一段话,作为题记显示在文章列表(仅普通文章有效) 和 文章内页'));
+ $layout->addItem($topic);
+
$type=new Typecho_Widget_Helper_Form_Element_Select('type',array('0'=>'一般文章','1'=>'说说','2'=>'小板式文章(New)'),'0','文章类型');
$layout->addItem($type);
}
|
