diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-11-26 10:25:15 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-11-26 10:25:15 +0800 |
| commit | b501f1b8bab0127f7ea91b52d6ffbc438293b151 (patch) | |
| tree | cc97d3b9905c09561830ab80c8538484759dc13e /libs/Matcha.php | |
| parent | 350695cbe586a9a761a069aa3c6fe5838429bacf (diff) | |
🦶 新增:页脚可自定义额外信息
同时将字数统计和不算子统计整合在一起
Diffstat (limited to 'libs/Matcha.php')
| -rw-r--r-- | libs/Matcha.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/libs/Matcha.php b/libs/Matcha.php index 3d44de0..616b5d9 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -357,26 +357,22 @@ class Matcha */ static public function footerInfo() { + echo '<br />'; //字数统计 if (Helper::options()->EnableWordsCounter=='able') { - - echo '<br />'; - echo '一共书写了'; + echo '书写了 '; WordsCounter_Plugin::allOfCharacters(); - echo '字'; - } - //备案号 - if (Helper::options()->icpNum!='') { - echo '<br />'; - echo '<a rel="nofollow" href="http://beian.miit.gov.cn"> '.Helper::options()->icpNum.' </a>'; + echo ' 字'; } //不蒜子统计 if (Helper::options()->EnableBusuanzi=='able') { - echo '<br />'; + if (Helper::options()->EnableWordsCounter=='able') echo ' · '; echo '<span id="busuanzi_value_site_pv">......</span> 次访问 · <span id="busuanzi_value_site_uv">......</span> 位访客 '; echo '<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>'; } + //附加信息 + if (Helper::options()->footerInfo!='') echo '<div class="footer-info">'.Helper::options()->footerInfo.'</div>'; } /** |
