From 61f0663bf59039296a23fe22e1e0479ef1de2532 Mon Sep 17 00:00:00 2001 From: hongweipeng Date: Thu, 12 Dec 2019 15:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BD=92=E6=A1=A3#20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 1 + sidebar.php | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/functions.php b/functions.php index 514cbae..885a24f 100644 --- a/functions.php +++ b/functions.php @@ -89,6 +89,7 @@ function themeConfig($form) { 'SidebarHiddenInDetail' => _t('文章页隐藏侧边栏'), 'HeaderHiddenInDetail' => _t('文章页隐藏顶部头像'), 'ShowCategory' => _t('侧边栏显示分类'), + 'ShowArchive' => _t('侧边栏显示文档'), ), array('ShowPostBottomBar'), _t('显示设置')); $form->addInput($showBlock->multiMode()); diff --git a/sidebar.php b/sidebar.php index cda2c17..c70cb85 100644 --- a/sidebar.php +++ b/sidebar.php @@ -55,6 +55,18 @@ + options->ShowBlock) && in_array('ShowArchive', $this->options->ShowBlock)): ?> + +