-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
26 lines (26 loc) · 1.05 KB
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<footer id="footer" class="footer">
<?php echo allwords(); ?>
<div class="copyright">
<span>© <?php $this->options->title() ?> | Powered by <a href="https://typecho.org" target="_blank">Typecho</a> & <a href="https://github.com/Siricee/hexo-theme-Chic" target="_blank">Chic</a>| Theme by <a href="https://imsun.org" target="_blank">Sun</a> </span>
</div>
<?php $this->options->tongji(); ?>
</footer>
<?php if ($this->options->showprism): ?>
<script src="<?php $this->options->themeUrl('prism.js'); ?>"></script>
<link rel="stylesheet" href="<?php $this->options->themeUrl('prism.css'); ?>" />
<script>
document.addEventListener('DOMContentLoaded', function () {
var defaultLanguage = 'javascript'; // 设置默认语言
document.querySelectorAll('pre code').forEach(function (block) {
if (!block.classList.length) {
block.classList.add('language-' + defaultLanguage);
}
});
Prism.highlightAll();
});
</script>
<?php endif; ?>
</div>
</body>
</html>