diff --git a/comments.php b/comments.php index c6c3b4b..95093d2 100644 --- a/comments.php +++ b/comments.php @@ -96,7 +96,7 @@ function threadedComments($comments, $options) {
author; ?> -
date('Y-m-d'); ?>
+
date('Y-m-d H:i'); ?>
reply(''); ?> diff --git a/functions.php b/functions.php index 02928f6..acc5865 100644 --- a/functions.php +++ b/functions.php @@ -38,8 +38,12 @@ function themeConfig($form) { $form->addInput($showProfile); $showallwords = new Typecho_Widget_Helper_Form_Element_Radio('showallwords', array('0'=> _t('否'), '1'=> _t('是')), - '0', _t('是否显示归档字数统计'), _t('选择“是”将归档页面显示全站总字数。')); + '0', _t('是否显示归档字数统计'), _t('选择“是”将在归档页面显示全站总字数。')); $form->addInput($showallwords); + $showrelated = new Typecho_Widget_Helper_Form_Element_Radio('showrelated', + array('0'=> _t('否'), '1'=> _t('是')), + '0', _t('是否显示相关文章'), _t('选择“是”将在文章页面显示相关文章。')); + $form->addInput($showrelated); } function get_post_view($archive) { $cid = $archive->cid; diff --git a/post.php b/post.php index 8d5bbc3..4d0e098 100644 --- a/post.php +++ b/post.php @@ -68,6 +68,11 @@ options->showProfile): ?> need('profile.php'); ?> + +options->showrelated): ?> + need('related.php'); ?> + + allow('comment')): ?> need('comments.php'); ?> diff --git a/related.php b/related.php new file mode 100644 index 0000000..5571242 --- /dev/null +++ b/related.php @@ -0,0 +1,21 @@ + \ No newline at end of file