diff --git a/functions.php b/functions.php index 5951c78..b003af6 100644 --- a/functions.php +++ b/functions.php @@ -17,6 +17,13 @@ function themeConfig($form) { $notification = new Typecho_Widget_Helper_Form_Element_Text('notification', NULL, NULL, _t('网站公告'), _t('显示在首页,留空则不显示')); $form->addInput($notification); + + $oldPosts = new Typecho_Widget_Helper_Form_Element_Radio('oldPosts', + array('able' => _t('启用'), + 'disable' => _t('禁用'), + ), + 'disable', _t('是否显示旧文提示'), _t('启用则会在一年前发布的文章页面显示“这是一篇旧文”')); + $form->addInput($oldPosts); } function themeFields($layout) { diff --git a/post.php b/post.php index f8999b9..4cd6be1 100644 --- a/post.php +++ b/post.php @@ -18,6 +18,19 @@