diff --git a/functions.php b/functions.php index acc5865..f77beac 100644 --- a/functions.php +++ b/functions.php @@ -44,6 +44,14 @@ function themeConfig($form) { array('0'=> _t('否'), '1'=> _t('是')), '0', _t('是否显示相关文章'), _t('选择“是”将在文章页面显示相关文章。')); $form->addInput($showrelated); + $showshare = new Typecho_Widget_Helper_Form_Element_Radio('showshare', + array('0'=> _t('否'), '1'=> _t('是')), + '0', _t('是否显示复制链接'), _t('选择“是”将在文章页面显示复制链接。')); + $form->addInput($showshare); + $showtoc = new Typecho_Widget_Helper_Form_Element_Radio('showtoc', + array('0'=> _t('否'), '1'=> _t('是')), + '0', _t('是否显示文章目录'), _t('选择“是”将在文章页面显示文章目录(仅在宽度大于1400px的设备中显示)。')); + $form->addInput($showtoc); } function get_post_view($archive) { $cid = $archive->cid;