diff --git a/comments.php b/comments.php index e3aae67..fff6bc8 100644 --- a/comments.php +++ b/comments.php @@ -184,7 +184,6 @@ $deviceInfo = getBrowsersInfo($comments->agent); $icons = getDeviceIcon($deviceInfo); ?> - options->showdevice) && $comments->options->showdevice == '1'): ?> @@ -194,8 +193,6 @@ : '未知系统'; ?> - - options->showbrowsers) && $comments->options->showbrowsers == '1'): ?> @@ -205,14 +202,11 @@ : '未知浏览器'; ?> - - options->showipregion) && $comments->options->showipregion == '1'): ?> ip): ?> ip); ?> - diff --git a/functions.php b/functions.php index 47cdbd5..8cf0027 100644 --- a/functions.php +++ b/functions.php @@ -39,18 +39,6 @@ function themeConfig($form) array('0'=> _t('否'), '1'=> _t('是')), '0', _t('社交分享显示'), _t('选择"是"在文章页面显示社交分享。需要搭配插件使用,默认关闭')); $form->addInput($social); - $showipregion = new Typecho_Widget_Helper_Form_Element_Radio('showipregion', - array('0'=> _t('否'), '1'=> _t('是')), - '0', _t('是否显示IP归属地'), _t('选择"是"在评论显示IP归属地。默认开启')); - $form->addInput($showipregion); - $showbrowsers = new Typecho_Widget_Helper_Form_Element_Radio('showbrowsers', - array('0'=> _t('否'), '1'=> _t('是')), - '0', _t('是否显示浏览器信息'), _t('选择"是"在评论显示浏览器信息。默认开启')); - $form->addInput($showbrowsers); - $showdevice = new Typecho_Widget_Helper_Form_Element_Radio('showdevice', - array('0'=> _t('否'), '1'=> _t('是')), - '0', _t('是否显示设备信息'), _t('选择"是"在评论显示设备信息。默认开启')); - $form->addInput($showdevice); $gonggao = new Typecho_Widget_Helper_Form_Element_Textarea('gonggao', NULL, NULL, _t('站点公告'), _t('支持HTML')); $form->addInput($gonggao); $adlisttop = new Typecho_Widget_Helper_Form_Element_Textarea('adlisttop', NULL, NULL, _t('文章列表上方广告位'), _t('支持HTML')); diff --git a/index.php b/index.php index 5c4850b..4f919ab 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * * @package Typecho Pouck Theme * @author 老孙博客 - * @version 1.1.3 + * @version 1.1.4 * @link http://www.imsun.org */ diff --git a/sidebar.php b/sidebar.php index 1686d9a..5fd5f7e 100644 --- a/sidebar.php +++ b/sidebar.php @@ -138,21 +138,18 @@ if ($totalViews === null) $totalViews = 0;