forked from Dreamer-Paul/Single
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfooter.php
60 lines (58 loc) · 3.14 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 if(!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<footer>
<div class="buttons">
<a class="to-top" href="#"></a>
</div>
<?php if($this -> options -> widget_home_category == 1): ?>
<div class="wrap has-trees min">
<?php else: ?>
<div class="wrap min">
<?php endif; ?>
<?php if($this -> options -> widget_set == '1'): ?>
<section class="widget">
<div class="row">
<div class="col-m-4">
<h3 class="title-recent">最新文章:</h3>
<ul>
<?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-4">
<h3 class="title-date">时光机:</h3>
<ul>
<?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-4">
<h3 class="title-comments">最近评论:</h3>
<ul>
<?php $this -> widget('Widget_Comments_Recent', 'pageSize=6') -> to($comments); ?>
<?php while($comments -> next()): ?>
<li><?php $comments -> author(false); ?>: <a href="<?php $comments -> permalink(); ?>" rel="nofollow" target="_blank"><?php $comments -> excerpt(10, '...'); ?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>
</section>
<?php endif; ?>
<section class="sub-footer">
<p>© <?php echo date('Y'); ?> <a href="<?php $this -> options -> siteUrl() ?>"><?php $this -> options -> title() ?></a>. All Rights Reserved. Theme By <a href="https://github.com/smallraw/Single" target="_blank" rel="nofollow">Single</a>.</p>
<p><a href="<?php $this -> options -> filing_domain_url(); ?>" target="view_window"><?php $this -> options -> filing_domain_text(); ?></a></p>
</section>
</div>
</footer>
<script src="<?php $this -> options -> themeUrl('static/kico.js'); ?>"></script>
<script src="<?php $this -> options -> themeUrl('static/single.js'); ?>"></script>
<script async="async" src="<?php $this -> options -> themeUrl('static/prism.js'); ?>"></script>
<script>var single = new Paul_Single({copyright: <?php if($this -> options -> copy_notice == 1): ?>true<?php else: ?>false<?php endif; ?>, night: <?php if($this -> options -> night_mode == 1): ?>true<?php else: ?>false<?php endif; ?> });</script>
<?php $this -> options -> custom_script(); ?>
<?php $this -> footer(); ?>
<script async="async">
if(true === <?php if($this -> options -> widget_home_category == 1): ?>true<?php else: ?>false<?php endif; ?>){
var categorys = new Categorys({
categorys:eval(<?php $this->widget('Widget_Metas_Category_List')->to($categorys); echo json_encode($categorys);?>)
})
}
</script>
</body>
</html>