/
footer.php
executable file
·57 lines (57 loc) · 2.98 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<footer class="footer flex">
<section class="container">
<?php if ($this->options->FooterHTML): ?>
<?php $this->options->FooterHTML() ?>
<?php endif; ?>
<nav class="footer-links">
<p><center>Theme <a href="https://fmcf.cc" target="_blank">TinaTheme</a> By Magneto</center></p>
</nav>
</section>
<!--KaTeX-->
<?php if ($this->options->MathRender == 'KaTeX'): ?>
<link rel="stylesheet" href="<?= staticUrl('katex.min.css') ?>">
<script src="<?= staticUrl('katex.min.js') ?>"></script>
<script src="<?= staticUrl('auto-render.min.js') ?>"></script>
<script>renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:true},{left:"$",right:"$",display:false},{left:'\\(',right:'\\)',display:false},{left:'\\[',right:'\\]',display:true}]});</script>
<?php endif; ?>
<!--MathJax-->
<?php if ($this->options->MathRender == 'MathJax'): ?>
<script src="<?= staticUrl('tex-mml-chtml.min.js') ?>"></script>
<!--MathJax FOR PJAX-->
<script type="text/javascript">$(document).ready(function(){MathJax.Hub.Config({tex:{inlineMath:[['$','$'],['\\(','\\)']],}});MathJax.Hub.Queue(["Typeset",MathJax.Hub])});</script>
<?php endif; ?>
<?php if ($this->options->MathRender == 'Close'): ?>
<?php endif; ?>
<script src="<?php $this->options->themeUrl('/assets/js/features.js'); ?>" data-enable-footnotes="true"></script>
<script src="<?php $this->options->themeUrl(); ?>/assets/js/codecopy.js"></script>
</footer>
<?php if ($this->options->WebPjax): ?>
<script src="<?= staticUrl('jquery.pjax.min.js') ?>"></script>
<link href="<?= staticUrl('nprogress.min.css') ?>" rel="stylesheet">
<script src="<?= staticUrl('nprogress.min.js') ?>"></script>
</div>
<script>$(document).pjax('a[href^="<?php Helper::options()->siteUrl()?>"]:not(a[target="_blank"],a[no-pjax]), a[href^="?"], a[href^="/"]',{container:'#pjax-load',fragment:'#pjax-load',timeout:8000}).on('pjax:send',function(){NProgress.start()}).on('pjax:complete',function(){NProgress.done();hljs.initHighlightingOnLoad();MathJax.typeset()});$(document).on('pjax:success',function(){$.getScript('<?php $this->options->themeUrl('/assets/js/features.js'); ?>',function(){});$.getScript('<?php $this->options->themeUrl('/assets/js/codecopy.js'); ?>', function() {})});</script>
<?php endif; ?>
</body>
<?php if ($this->options->cursor): ?>
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
$is_mobile = preg_match('/(iPhone|iPad|iPod|Android|BlackBerry|Windows Phone)/i', $ua);
$mobile = $is_mobile ? true : false;
if ($mobile == false) {
echo '<script src="';
$this->options->themeUrl('/assets/js/cursor.js');
echo '" data-enable-footnotes="true"></script>';
}
?>
<?php endif; ?>
<?php $this->footer(); ?>
</html>
<?php /* 来自 MDr | HTML 压缩 */
if ($this->options->compressHtml) {
$html_source = ob_get_contents();
ob_clean();
print compressHtml($html_source);
ob_end_flush();
}
?>