2025-2-26-fixed
This commit is contained in:
33
themes/fluid/layout/_partials/footer/beian.ejs
Normal file
33
themes/fluid/layout/_partials/footer/beian.ejs
Normal file
@ -0,0 +1,33 @@
|
||||
<div class="beian">
|
||||
<span>
|
||||
<a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
|
||||
<%- theme.footer.beian.icp_text %>
|
||||
</a>
|
||||
</span>
|
||||
<% if(theme.footer.beian.police_text) { %>
|
||||
<% if(theme.footer.beian.police_code) { %>
|
||||
<span>
|
||||
<a
|
||||
href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=<%= theme.footer.beian.police_code %>"
|
||||
rel="nofollow noopener"
|
||||
class="beian-police"
|
||||
target="_blank"
|
||||
>
|
||||
<% if(theme.footer.beian.police_icon) { %>
|
||||
<span style="visibility: hidden; width: 0">|</span>
|
||||
<img src="<%= url_for(theme.footer.beian.police_icon) %>" alt="police-icon"/>
|
||||
<% } %>
|
||||
<span><%- theme.footer.beian.police_text %></span>
|
||||
</a>
|
||||
</span>
|
||||
<% } else { %>
|
||||
<span class="beian-police">
|
||||
<% if(theme.footer.beian.police_icon) { %>
|
||||
<span style="visibility: hidden; width: 0">|</span>
|
||||
<img src="<%= url_for(theme.footer.beian.police_icon) %>" alt="police-icon"/>
|
||||
<% } %>
|
||||
<span class="beian-police"><%- theme.footer.beian.police_text %></span>
|
||||
</span>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</div>
|
||||
57
themes/fluid/layout/_partials/footer/statistics.ejs
Normal file
57
themes/fluid/layout/_partials/footer/statistics.ejs
Normal file
@ -0,0 +1,57 @@
|
||||
<div class="statistics">
|
||||
<% let pv_texts = (theme.footer.statistics.pv_format || __('footer.pv')).split('{}') %>
|
||||
<% let uv_texts = (theme.footer.statistics.uv_format || __('footer.uv')).split('{}') %>
|
||||
|
||||
<% if (theme.footer.statistics.source === 'leancloud') { %>
|
||||
<% if (pv_texts.length >= 2) { %>
|
||||
<span id="leancloud-site-pv-container" style="display: none">
|
||||
<%- pv_texts[0] %>
|
||||
<span id="leancloud-site-pv"></span>
|
||||
<%- pv_texts[1] %>
|
||||
</span>
|
||||
<% } %>
|
||||
<% if (uv_texts.length >= 2) { %>
|
||||
<span id="leancloud-site-uv-container" style="display: none">
|
||||
<%- uv_texts[0] %>
|
||||
<span id="leancloud-site-uv"></span>
|
||||
<%- uv_texts[1] %>
|
||||
</span>
|
||||
<% } %>
|
||||
<% import_js(theme.static_prefix.internal_js, 'leancloud.js', 'defer') %>
|
||||
|
||||
<% } else if (theme.footer.statistics.source === 'busuanzi') { %>
|
||||
<% if (pv_texts.length >= 2) { %>
|
||||
<span id="busuanzi_container_site_pv" style="display: none">
|
||||
<%- pv_texts[0] %>
|
||||
<span id="busuanzi_value_site_pv"></span>
|
||||
<%- pv_texts[1] %>
|
||||
</span>
|
||||
<% } %>
|
||||
<% if (uv_texts.length >= 2) { %>
|
||||
<span id="busuanzi_container_site_uv" style="display: none">
|
||||
<%- uv_texts[0] %>
|
||||
<span id="busuanzi_value_site_uv"></span>
|
||||
<%- uv_texts[1] %>
|
||||
</span>
|
||||
<% } %>
|
||||
<% import_js(theme.static_prefix.busuanzi, 'busuanzi.pure.mini.js', 'defer') %>
|
||||
|
||||
<% } else if (theme.footer.statistics.source === 'umami') { %>
|
||||
<% if (pv_texts.length >= 2) { %>
|
||||
<span id="umami-site-pv-container" style="display: none">
|
||||
<%- pv_texts[0] %>
|
||||
<span id="umami-site-pv"></span>
|
||||
<%- pv_texts[1] %>
|
||||
</span>
|
||||
<% } %>
|
||||
<% if (uv_texts.length >= 2) { %>
|
||||
<span id="umami-site-uv-container" style="display: none">
|
||||
<%- uv_texts[0] %>
|
||||
<span id="umami-site-uv"></span>
|
||||
<%- uv_texts[1] %>
|
||||
</span>
|
||||
<% } %>
|
||||
<% import_js(theme.static_prefix.internal_js, 'umami-view.js', 'defer') %>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user