summaryrefslogtreecommitdiffstats
path: root/includes/footer.php
blob: e9e0c083c60e8976ee291b29f3f3ae9fb0197c80 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
    </div><!-- 结束 pjax-container -->
	<!-- Footer Information -->
    <footer>
      <div class="footer-info footer-dark">
		<p id="custom-footer"><?php $this->options->footerEcho(); ?></p>
		<p class="copyright"><span id="copyright">Powered by <a href="http://typecho.org">Typecho</a> | Theme <a href="https://github.com/BigCoke233/miracles" id="copyright-name">Miracles</a> by <a href="https://guhub.cn" id="copyright-author">Eltrac</a></span><br>
		Copyright &copy; <?php echo date('Y'); ?> <a href="<?php $this->options->SiteUrl(); ?>"><?php $this->options->title(); ?></a>, All rights reserved.<br>
        <?php 
		echo $this->options->build_time?"记录已延续了 <span id=\"build-time\"></span>":"";
		if($faces=$this->options->anime_face){
		  $faces = explode("&&",$faces);
		  $faces = "<span class=\"anime-face\">".$faces[mt_rand(0,count($faces))]."</span>";
		}
		if($faces && $this->options->build_time)echo $faces;
		?></p>
	  </div>
    </footer>
	<!-- Raised Buttons -->
	<div class="fixed-tools">
	  <button title="返回顶部" class="fixed-button gotop-button" id="gotop"><i class="iconfont icon-chevron-up"></i></button>
	</div>
	<!-- JavaScript Require-->
	<?php
	$js_files=array("jquery","pjax.jquery","gazeimg","nprogress","OwO.min","highlight","highlight-line-number","pangu","qrcode.min","details-element-polyfill");
	if($this->options->customCDN): $custom=$this->options->customCDN; else: $custom=Helper::options()->themeUrl("","Miracles"); endif;
	Utils::addRequires($js_files,"js",$this->options->CDN,$custom);
	?>
	<!-- Options -->
	<script>var navSlide = <?php if($this->options->navSlide==1):?>false<?php else:?>true<?php endif;?>;
	var panguLoadAllow = <?php if($this->options->pangu==1):?>false<?php else:?>true<?php endif;?>;
	var allowNavAero = <?php if($this->options->navAero==1):?>false<?php else:?>true<?php endif;?>;
	var siteurl = '<?php $this->options->SiteUrl() ;?>';
	var owoJson = '<?php Utils::indexTheme('assets/OwO.json'); ?>';
	var faviconUrl = '<?php if($this->options->favicon):$this->options->favicon();else:echo Utils::indexTheme('favicon.ico');endif;	?>';
	var faviconDark = <?php $faviconDarkExist = file_exists('/faviconDark.ico');
	if($faviconDarkExist=true): echo 'true'; else: echo 'false'; endif; ?>;
	<?php if($this->options->pjax && $this->options->pjax!=0) :?>var loadPjax = true;
    beforePjax = function() {NProgress.start();};
	afterPjax = function() {owoLoad();<?php $this->options->pjax_complete(); ?>};<?php endif; ?></script>
	<!-- Script that must be after-->
	<?php
	$js_files=array("miracles.min","cmt.miracles");
	if($this->options->customCDN): $custom=$this->options->customCDN; else: $custom=Helper::options()->themeUrl("","Miracles"); endif;
	Utils::addRequires($js_files,"js",$this->options->CDN,$custom);
	?>
	<!-- JavaScript -->
	<script>
	<?php if($this->options->build_time)echo "startTime(\"".$this->options->build_time."\");" ?>
	</script>
	<!-- Send News and Loaders -->
	<script><?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?><?php $this->options->jsEcho(); ?></script>
    <!-- Others -->
	<?php $this->footer(); ?>
  </body>
</html>
<!--

Powered by Typecho,
Theme Miracles by
 _____ _ _                  
| ____| | |_ _ __ __ _  ___ 
|  _| | | __| '__/ _` |/ __|
| |___| | |_| | | (_| | (__ 
|_____|_|\__|_|  \__,_|\___|

Repo: https://github.com/BigCoke233/miracles

-->