add: `页脚`增加对icp、公网安、隐私显示的控制

This commit is contained in:
liuxuewen 2023-12-28 11:41:21 +08:00
parent 2614dc6946
commit 030293dda8
2 changed files with 37 additions and 4 deletions

View File

@ -1085,6 +1085,7 @@ spec:
- $formkit: radio - $formkit: radio
if: $get(default_enable).value if: $get(default_enable).value
name: dingyue name: dingyue
default_enable: true
label: 订阅 label: 订阅
options: options:
- label: 显示 - label: 显示
@ -1094,6 +1095,7 @@ spec:
- $formkit: radio - $formkit: radio
if: $get(default_enable).value if: $get(default_enable).value
name: zhuti name: zhuti
default_enable: true
label: 主题 label: 主题
options: options:
- label: 显示 - label: 显示
@ -1103,12 +1105,43 @@ spec:
- $formkit: radio - $formkit: radio
if: $get(default_enable).value if: $get(default_enable).value
name: about name: about
default_enable: true
label: 关于 label: 关于
options: options:
- label: 显示 - label: 显示
value: true value: true
- label: 隐藏 - label: 隐藏
value: false value: false
- $formkit: radio
if: $get(default_enable).value
name: icp_icon
default_enable: true
label: icp备案
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
if: $get(default_enable).value
name: gongwangan
default_enable: true
label: 公网安备案
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
if: $get(default_enable).value
name: yingsi
default_enable: true
label: yingsi
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: group - $formkit: group
name: style_one name: style_one
label: 中间 label: 中间

View File

@ -122,7 +122,7 @@
<a class="footer-banner-link" href="/rss.xml" th:if="${pluginFinder.available('PluginFeed')} and ${theme.config.footer.footerContent.dingyue}">订阅</a> <a class="footer-banner-link" href="/rss.xml" th:if="${pluginFinder.available('PluginFeed')} and ${theme.config.footer.footerContent.dingyue}">订阅</a>
<a th:if="${theme.config.footer.footerContent.zhuti}" class="footer-banner-link" href="https://github.com/liuzhihang/halo-theme-hao">主题</a> <a th:if="${theme.config.footer.footerContent.zhuti}" class="footer-banner-link" href="https://github.com/liuzhihang/halo-theme-hao">主题</a>
<a th:if="${theme.config.footer.footerContent.about}" class="footer-banner-link" href="/about">关于</a> <a th:if="${theme.config.footer.footerContent.about}" class="footer-banner-link" href="/about">关于</a>
<a th:if="${not #strings.isEmpty(theme.config.basics.icp)}" <a th:if="${not #strings.isEmpty(theme.config.basics.icp) && theme.config.footer.footerContent.icp_icon}"
class="footer-banner-link" href="https://beian.miit.gov.cn/#/Integrated/index" class="footer-banner-link" href="https://beian.miit.gov.cn/#/Integrated/index"
rel="noopener external nofollow noreferrer noopener" rel="noopener external nofollow noreferrer noopener"
target="_blank"> target="_blank">
@ -131,7 +131,7 @@
<img th:if="${#strings.startsWith(theme.config.basics.icp, 'http')}" <img th:if="${#strings.startsWith(theme.config.basics.icp, 'http')}"
th:src="@{${theme.config.basics.icp}}" alt="icp"/> th:src="@{${theme.config.basics.icp}}" alt="icp"/>
</a> </a>
<a th:if="${not #strings.isEmpty(theme.config.basics.gongan)}" <a th:if="${not #strings.isEmpty(theme.config.basics.gongan) && theme.config.footer.footerContent.gongwangan}"
class="footer-banner-link" href="http://www.beian.gov.cn/portal/registerSystemInfo" class="footer-banner-link" href="http://www.beian.gov.cn/portal/registerSystemInfo"
rel="noopener external nofollow noreferrer noopener" rel="noopener external nofollow noreferrer noopener"
target="_blank"> target="_blank">
@ -140,7 +140,7 @@
th:src="@{${theme.config.basics.gongan}}" alt="gongan"/> th:src="@{${theme.config.basics.gongan}}" alt="gongan"/>
</a> </a>
<a class="footer-banner-link cc" th:href="${theme.config.basics.copyrightAgreement}" <a class="footer-banner-link cc" th:href="${theme.config.basics.copyrightAgreement}"
th:if="${not #strings.isEmpty(theme.config.basics.copyrightAgreement)}" title="cc协议"> th:if="${not #strings.isEmpty(theme.config.basics.copyrightAgreement) && theme.config.footer.footerContent.yingsi}" title="cc协议">
<i class="haofont hao-icon-copyright-line"></i> <i class="haofont hao-icon-copyright-line"></i>
<i class="haofont hao-icon-creative-commons-by-line"></i> <i class="haofont hao-icon-creative-commons-by-line"></i>
<i class="haofont hao-icon-creative-commons-nc-line"></i> <i class="haofont hao-icon-creative-commons-nc-line"></i>
@ -166,4 +166,4 @@
<!--评论弹幕弹窗 --> <!--评论弹幕弹窗 -->
<div class="comment-barrage needEndHide" style="display: none;"></div> <div class="comment-barrage needEndHide" style="display: none;"></div>
</footer> </footer>