From a539f807a0ddc92739e921257ad3a1e32da01688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E6=81=92?= <2323333339@qq.com> Date: Mon, 22 Feb 2021 17:27:48 +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 | 26 ++++++++++++++++++++++++-- public/footer.php | 2 ++ public/include.php | 3 ++- 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/core/function.php b/core/function.php index d723336..b4558fd 100644 --- a/core/function.php +++ b/core/function.php @@ -3,7 +3,7 @@ /* 获取主题当前版本号 */ function _getVersion() { - return "5.4.1"; + return "5.4.2"; }; /* 判断是否是手机 */ diff --git a/functions.php b/functions.php index ba4bfaf..fc67ead 100644 --- a/functions.php +++ b/functions.php @@ -186,7 +186,7 @@ function themeConfig($form) NULL, '2019 - 2020 © Reach - Joe', '自定义底部栏左侧内容(非必填)', - '介绍:用于修改全站底部左侧内容
+ '介绍:用于修改全站底部左侧内容(wap端上方)
例如:2019 - 2020 © Reach - Joe ' ); $JFooter_Left->setAttribute('class', 'joe_content joe_global'); @@ -198,7 +198,7 @@ function themeConfig($form) 'RSS MAP', '自定义底部栏右侧内容(非必填)', - '介绍:用于修改全站底部右侧内容
+ '介绍:用于修改全站底部右侧内容(wap端下方)
例如:<a href="/">首页</a> <a href="/">关于</a>' ); $JFooter_Right->setAttribute('class', 'joe_content joe_global'); @@ -292,6 +292,28 @@ function themeConfig($form) $JCustomScript->setAttribute('class', 'joe_content joe_global'); $form->addInput($JCustomScript); + $JCustomHeadEnd = new Typecho_Widget_Helper_Form_Element_Textarea( + 'JCustomHeadEnd', + NULL, + NULL, + '自定义增加<head></head>里内容(非必填)', + '介绍:此处用于在<head></head>标签里增加自定义内容
+ 例如:可以填写引入第三方css、js等等' + ); + $JCustomHeadEnd->setAttribute('class', 'joe_content joe_global'); + $form->addInput($JCustomHeadEnd); + + $JCustomBodyEnd = new Typecho_Widget_Helper_Form_Element_Textarea( + 'JCustomBodyEnd', + NULL, + NULL, + '自定义<body></body>末尾位置内容(非必填)', + '介绍:此处用于填写在<body></body>标签末尾位置的内容
+ 例如:可以填写引入第三方js脚本等等' + ); + $JCustomBodyEnd->setAttribute('class', 'joe_content joe_global'); + $form->addInput($JCustomBodyEnd); + $JBirthDay = new Typecho_Widget_Helper_Form_Element_Text( 'JBirthDay', NULL, diff --git a/public/footer.php b/public/footer.php index d9af463..c905c5c 100644 --- a/public/footer.php +++ b/public/footer.php @@ -37,4 +37,6 @@ options->JCustomScript() ?> +options->JCustomBodyEnd() ?> + footer(); ?> \ No newline at end of file diff --git a/public/include.php b/public/include.php index 5f3cc09..c250942 100644 --- a/public/include.php +++ b/public/include.php @@ -66,4 +66,5 @@ options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?> - \ No newline at end of file + +options->JCustomHeadEnd() ?> \ No newline at end of file