Chic/footer.php

24 lines
917 B
PHP
Raw Normal View History

2024-06-27 19:59:47 +08:00
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<footer id="footer" class="footer">
2024-06-30 17:25:01 +08:00
<?php echo allwords(); ?>
2024-06-27 19:59:47 +08:00
<div class="copyright">
2024-07-01 14:16:35 +08:00
<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>
2024-06-27 19:59:47 +08:00
</div>
<?php $this->options->tongji(); ?>
</footer>
2024-07-02 09:26:49 +08:00
<?php if ($this->options->showprism): ?>
<script>
2024-07-01 14:16:35 +08:00
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>
2024-07-02 09:26:49 +08:00
<?php endif; ?>
2024-06-27 19:59:47 +08:00
</div>
</body>
</html>