From 510c2b9160047640c359283bc08b2273485f1509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E6=81=92?= <2323333339@qq.com> Date: Tue, 2 Mar 2021 20:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/function.php | 2 +- functions.php | 17 ++++++++++++++--- public/aside.php | 3 +++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/core/function.php b/core/function.php index 0da4a03..3e51a89 100644 --- a/core/function.php +++ b/core/function.php @@ -3,7 +3,7 @@ /* 获取主题当前版本号 */ function _getVersion() { - return "5.5.2"; + return "5.5.3"; }; /* 判断是否是手机 */ diff --git a/functions.php b/functions.php index 9d0a42e..513bc28 100644 --- a/functions.php +++ b/functions.php @@ -599,15 +599,26 @@ function themeConfig($form) 'JADContent', NULL, NULL, - '侧边栏广告(非必填)', - '介绍:用于设置侧边栏广告
+ '侧边栏广告 - PC', + '介绍:用于设置侧边栏广告
格式:广告图片 || 跳转链接 (中间使用两个竖杠分隔)
例如:https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/thumb/1.jpg || https://as.js.cn
注意:如果您只想显示图片不想跳转,可填写:广告图片 || javascript:void(0)' ); $JADContent->setAttribute('class', 'joe_content joe_aside'); $form->addInput($JADContent); - + /* --------------------------------------- */ + $JCustomAside = new Typecho_Widget_Helper_Form_Element_Textarea( + 'JCustomAside', + NULL, + NULL, + '自定义侧边栏模块 - PC', + '介绍:用于自定义侧边栏模块
+ 格式:请填写前端代码,不会写请勿填写
+ 例如:您可以在此处添加一个搜索框、时间、宠物、恋爱计时等等' + ); + $JCustomAside->setAttribute('class', 'joe_content joe_aside'); + $form->addInput($JCustomAside); $JThumbnail = new Typecho_Widget_Helper_Form_Element_Textarea( diff --git a/public/aside.php b/public/aside.php index c9dee6a..e1a87a3 100644 --- a/public/aside.php +++ b/public/aside.php @@ -34,6 +34,9 @@
+ options->JCustomAside) : ?> +
options->JCustomAside() ?>
+ options->JAside_Hot_Num && $this->options->JAside_Hot_Num !== 'off') : ?>