forked from ShawnZeng1996/Memory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
executable file
·60 lines (59 loc) · 3.24 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
58
59
60
<?php
/**
* ┌─┐┬ ┬┌─┐┬ ┬┌┐┌┌─┐┌─┐┌┐┌┌─┐ ┌─┐┌─┐┌┬┐
* └─┐├─┤├─┤││││││┌─┘├┤ ││││ ┬ │ │ ││││
* └─┘┴ ┴┴ ┴└┴┘┘└┘└─┘└─┘┘└┘└─┘o└─┘└─┘┴ ┴
*
* @package WordPress
* @Theme Memory
*
* @author [email protected]
* @link https://shawnzeng.com
*/
if(get_option( 'memory_foot_color' )!=null) { ?>
<style>
#foot, #foot a { color:<?php echo get_option( 'memory_foot_color' ); ?>; }
</style>
<?php } ?>
<div id="foot">
版权所有 © <?php if( get_option( 'memory_copyright' )!=null ) echo get_option( 'memory_copyright' ); ?> <a href="<?php echo get_option( 'siteurl' ); ?>"><?php bloginfo('name'); ?></a>
<?php if( get_option( 'memory_beian' )!=null ) { ?> | <a href="http://www.miitbeian.gov.cn"><?php echo get_option( 'memory_beian' ); ?></a> <?php } ?> <br/> Theme <a href="https://shawnzeng.com/wordpress-theme-memory.html" target="_blank">Memory</a> By <a href="https://shawnzeng.com" target="_blank">Shawn</a> With <i class="fa fa-heart throb" style="color: #d43f57;"></i> | All Rights Reserved<br/>
<span class="my-face">(●'◡'●)ノ</span>本博客已萌萌哒运行了<span id="span_dt_dt"></span>
</div>
<a href="javascript:void(0)" class="go-top"><i class="fa fa-paper-plane fa-fw"></i></a>
<?php if ( current_user_can( 'manage_options' ) ) { ?>
<a href="/wp-admin" title="" class="fawpadmin">
<i class="fa fa-user-secret fa-fw"></i>
</a>
<?php }; ?>
<footer>
<link href="//cdn.bootcss.com/highlight.js/9.12.0/styles/xcode.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/main.js"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.share.min.js" charset="utf-8"></script>
<script>
//------------------本博客已萌萌哒运行了……------------------
function show_date_time() {
window.setTimeout(function() {
show_date_time();
}, 1000);
var BirthDay = new Date("<?php echo get_option( 'memory_setuptime_month' ); ?>/<?php echo get_option( 'memory_setuptime_day' ); ?>/<?php echo get_option( 'memory_setuptime_year' ); ?> 00:00:00");
var today = new Date();
var timeold = (today.getTime() - BirthDay.getTime());
var msPerDay = 24 * 60 * 60 * 1000;
var e_daysold = timeold / msPerDay;
var daysold = Math.floor(e_daysold);
var e_hrsold = (e_daysold - daysold) * 24;
var hrsold = Math.floor(e_hrsold);
var e_minsold = (e_hrsold - hrsold) * 60;
var minsold = Math.floor((e_hrsold - hrsold) * 60);
var seconds = Math.floor((e_minsold - minsold) * 60);
$('#span_dt_dt').html(daysold + "天" + hrsold + "小时" + minsold + "分" + seconds + "秒");
}
show_date_time();
</script>
</footer>
<?php wp_footer(); ?>
</body>
</html>