This commit is contained in:
杜恒 2021-02-22 17:27:48 +08:00
parent 9c9cfb4196
commit a539f807a0
4 changed files with 29 additions and 4 deletions

View File

@ -3,7 +3,7 @@
/* 获取主题当前版本号 */ /* 获取主题当前版本号 */
function _getVersion() function _getVersion()
{ {
return "5.4.1"; return "5.4.2";
}; };
/* 判断是否是手机 */ /* 判断是否是手机 */

View File

@ -186,7 +186,7 @@ function themeConfig($form)
NULL, NULL,
'2019 - 2020 © Reach - <a href="https://as.js.cn" target="_blank" rel="noopener noreferrer">Joe</a>', '2019 - 2020 © Reach - <a href="https://as.js.cn" target="_blank" rel="noopener noreferrer">Joe</a>',
'自定义底部栏左侧内容(非必填)', '自定义底部栏左侧内容(非必填)',
'介绍:用于修改全站底部左侧内容 <br> '介绍:用于修改全站底部左侧内容wap端上方 <br>
例如2019 - 2020 © Reach - Joe ' 例如2019 - 2020 © Reach - Joe '
); );
$JFooter_Left->setAttribute('class', 'joe_content joe_global'); $JFooter_Left->setAttribute('class', 'joe_content joe_global');
@ -198,7 +198,7 @@ function themeConfig($form)
'<a href="https://as.js.cn/feed/" target="_blank" rel="noopener noreferrer">RSS</a> '<a href="https://as.js.cn/feed/" target="_blank" rel="noopener noreferrer">RSS</a>
<a href="https://as.js.cn/sitemap.xml" target="_blank" rel="noopener noreferrer" style="margin-left: 15px">MAP</a>', <a href="https://as.js.cn/sitemap.xml" target="_blank" rel="noopener noreferrer" style="margin-left: 15px">MAP</a>',
'自定义底部栏右侧内容(非必填)', '自定义底部栏右侧内容(非必填)',
'介绍:用于修改全站底部右侧内容 <br> '介绍:用于修改全站底部右侧内容wap端下方 <br>
例如:&lt;a href="/"&gt;首页&lt;/a&gt; &lt;a href="/"&gt;关于&lt;/a&gt;' 例如:&lt;a href="/"&gt;首页&lt;/a&gt; &lt;a href="/"&gt;关于&lt;/a&gt;'
); );
$JFooter_Right->setAttribute('class', 'joe_content joe_global'); $JFooter_Right->setAttribute('class', 'joe_content joe_global');
@ -292,6 +292,28 @@ function themeConfig($form)
$JCustomScript->setAttribute('class', 'joe_content joe_global'); $JCustomScript->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomScript); $form->addInput($JCustomScript);
$JCustomHeadEnd = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomHeadEnd',
NULL,
NULL,
'自定义增加&lt;head&gt;&lt;/head&gt;里内容(非必填)',
'介绍:此处用于在&lt;head&gt;&lt;/head&gt;标签里增加自定义内容 <br />
例如可以填写引入第三方css、js等等'
);
$JCustomHeadEnd->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomHeadEnd);
$JCustomBodyEnd = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomBodyEnd',
NULL,
NULL,
'自定义&lt;body&gt;&lt;/body&gt;末尾位置内容(非必填)',
'介绍:此处用于填写在&lt;body&gt;&lt;/body&gt;标签末尾位置的内容 <br>
例如可以填写引入第三方js脚本等等'
);
$JCustomBodyEnd->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomBodyEnd);
$JBirthDay = new Typecho_Widget_Helper_Form_Element_Text( $JBirthDay = new Typecho_Widget_Helper_Form_Element_Text(
'JBirthDay', 'JBirthDay',
NULL, NULL,

View File

@ -37,4 +37,6 @@
<?php $this->options->JCustomScript() ?> <?php $this->options->JCustomScript() ?>
</script> </script>
<?php $this->options->JCustomBodyEnd() ?>
<?php $this->footer(); ?> <?php $this->footer(); ?>

View File

@ -66,4 +66,5 @@
<script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/smooth/joe.smooth.js"></script> <script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/smooth/joe.smooth.js"></script>
<?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?> <?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?>
<script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/cursor/<?php $this->options->JCursorEffects() ?>"></script> <script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/cursor/<?php $this->options->JCursorEffects() ?>"></script>
<?php endif; ?> <?php endif; ?>
<?php $this->options->JCustomHeadEnd() ?>