forked from Dreamer-Paul/Fantasy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
75 lines (73 loc) · 4.28 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<footer>
<div class="wrap mid">
<section class="foot-action">
<div class="to-top"></div>
</section>
<section class="foot-widget">
<div class="row">
<div class="col-m-3">
<h3>最新文章:</h3>
<ul class="clear">
<?php $this -> widget('Widget_Contents_Post_Recent', 'pageSize=6') -> parse('<li><a href="{permalink}" target="_blank">{title}</a></li>'); ?>
</ul>
</div>
<div class="col-m-3">
<h3>时光机:</h3>
<ul class="clear">
<?php $this -> widget('Widget_Contents_Post_Date', 'type=month&format=Y 年 m 月&limit=6') -> parse('<li><a href="{permalink}" rel="nofollow" target="_blank">{date}</a></li>'); ?>
</ul>
</div>
<div class="col-m-3">
<h3>最近评论:</h3>
<div class="foot-comments">
<?php $this -> widget('Widget_Comments_Recent', 'pageSize=5') -> to($comments); ?>
<?php while($comments -> next()): ?>
<a href="<?php $comments -> permalink(); ?>" rel="nofollow" target="_blank"><img src="<?php echo Typecho_Common::gravatarUrl($comments -> mail, 32, 'X', 'wavatar', $this -> request -> isSecure()) ?>"/><?php $comments -> author(false); ?>:<?php $comments -> excerpt(10, '...'); ?></a>
<?php endwhile; ?>
</div>
</div>
<div class="col-m-3">
<h3>站点信息:</h3>
<ul class="clear">
<?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?>
<li>文章:<?php $stat->publishedPostsNum() ?> 篇</li>
<li>分类:<?php $stat->categoriesNum() ?> 个</li>
<li>评论:<?php $stat->publishedCommentsNum() ?> 条</li>
<li>页面:<?php $stat->publishedPagesNum() ?> 个</li>
<li>上次更新:<?php echo Fantasy::tran_time($this -> modified) ?></li>
<li>上次登录:<?php echo Fantasy::get_last_login() ?></li>
</ul>
</div>
</div>
</section>
<section class="foot-copyright">
<div class="row">
<div class="col-m-6 left bottom to-center">
<?php if(in_array('verify', $this -> options -> footer_content) && $this -> options -> verify_num): ?>
<p><a href="http://www.miitbeian.gov.cn" rel="nofollow" target="_blank"><?php $this -> options -> verify_num() ?></a></p>
<?php endif; ?>
<?php if(in_array('link', $this -> options -> footer_content) && $this -> options -> home_social): ?>
<p class="foot-social"><?php $this -> options -> home_social() ?></p>
<?php endif; ?>
<?php if(in_array('time', $this -> options -> footer_content)): ?>
<p class="foot-date">站点已萌萌哒存活了 <a>?</a> 天 <a>?</a> 小时 <a>?</a> 分 <a>?</a> 秒</p>
<?php endif; ?>
<?php if(in_array('hitokoto', $this -> options -> footer_content)): ?>
<p class="foot-hitokoto">重要的是无论我们选择哪条路,都要担负起选择的责任。</p>
<?php endif; ?>
</div>
<div class="col-m-6 right bottom to-center">
<p>© <?php echo date('Y') ?> <a href="<?php $this -> options -> siteUrl() ?>"><?php $this->options->title(); ?></a>. 版权所有.</p>
<p>Published With <a href="http://typecho.org" target="_blank" rel="nofollow">Typecho.</a> Theme By <a href="https://github.com/Dreamer-Paul/Fantasy" target="_blank" rel="nofollow">Fantasy</a>.</p>
</div>
</div>
</section>
</div>
</footer>
<script src="<?php $this->options->themeUrl('static/kico.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('static/fantasy.js'); ?>"></script>
<script>var fantasy = new Fantasy_Theme({created: <?php if($this -> options -> site_created): ?>"<?php echo $this -> options -> site_created; ?>"<?php else: ?>false<?php endif; ?>});</script>
<?php $this -> options -> custom_script() ?>
<?php $this -> footer() ?>
</body>
</html>