-
Notifications
You must be signed in to change notification settings - Fork 15
/
sidebar.php
62 lines (61 loc) · 3.63 KB
/
sidebar.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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="col-md-4"><!-- #md-4 start -->
<div class="rightbar">
<section class="box-info">
<div class="info">
<?php $this->author->gravatar(); ?>
<p><?php $this->author(); ?></p>
</div>
<div class="table-info">
<a href="#" class="github" title="Github"></a>
<a href="#" class="twitter" title="Twitter"></a>
<a href="#" class="sina_weibo" title="Weibo"></a>
<a href="#" class="QQ" title="QQ"></a>
<a href="<?php $this->options->feedUrl(); ?>" class="RSS" title="RSS"></a>
</div>
</section>
<section class="box-art">
<div class="article">
<div class="cell">
<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span><span class="fcolor"><?php _e('最新文章'); ?></span>
</div>
<ul>
<?php $this->widget('Widget_Contents_Post_Recent','pageSize=6')
->parse('<li class="cell"><a href="{permalink}">{title}</a></li>'); ?>
</ul>
</div>
</section>
<section class="box-rep">
<div class="reply">
<div class="cell">
<span class="glyphicon glyphicon-comment" aria-hidden="true"></span><span class="fcolor"><?php _e('最近回复'); ?></span>
</div>
<ul >
<?php $this->widget('Widget_Comments_Recent', 'pageSize=6')->to($comments); ?>
<?php while($comments->next()): ?>
<li class="cell"><?php $comments->author(false); ?>: <a href="<?php $comments->permalink(); ?>"><?php $comments->excerpt(20, '[...]'); ?></a></li>
<?php endwhile; ?>
</ul>
</div>
</section>
<section class="box-link">
<div class="links">
<div class="cell">
<span class="glyphicon glyphicon-send" aria-hidden="true"></span><span class="fcolor">友情链接</span>
</div>
<div class="cell">
<span><a href="#">链接Link</a></span>
</div>
<div class="cell">
<span><a href="#">链接Link</a></span>
</div>
<div class="cell">
<span><a href="#">链接Link</a></span>
</div>
<div class="cell">
<span><a href="#">链接Link</a></span>
</div>
</div>
</section>
</div>
</div><!-- #md-4 end -->