diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2020-01-22 12:53:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-22 12:53:11 +0800 |
| commit | 0d1875937ecd3288c4a4b2d3a2a953be0921fccc (patch) | |
| tree | 2e65631a5cbd164fbd78243d5b3f52f235041c85 /functions.php | |
| parent | fbe4897802db60ba6558e9350ad451cdf6066890 (diff) | |
📩 Add: 评论列表自定义隐藏功能(样式)
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 85b0afc..d8e80b0 100644 --- a/functions.php +++ b/functions.php @@ -35,6 +35,8 @@ function themeFields(Typecho_Widget_Helper_Layout $layout) { $layout->addItem($excerpt); $meta = new Typecho_Widget_Helper_Form_Element_Text('meta', NULL, NULL,_t('元信息'), _t('页面/文章内页会显示该页面的评论数和创建日期(元信息),如果你不需要,可以写一段文字来代替这些内容。')); $layout->addItem($meta); + $commentShow = new Typecho_Widget_Helper_Form_Element_Select('commentShow',array('0'=>'显示','1'=>'隐藏'),'0','是否显示评论列表'); + $layout->addItem($commentShow); } /** |
