-
Notifications
You must be signed in to change notification settings - Fork 36
/
sidebar.php
76 lines (76 loc) · 3.12 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="am-u-lg-4 am-u-sm-10 am-u-lg-offset-0 am-u-sm-offset-0 sidebar-container">
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
关于博主
</span>
</div>
<ul class="list-inline">
<?php if ($this->options->socialQQ): ?>
<li>
<a class="am-icon-btn am-icon-qq" target="_blank" itemtype="url" href="tencent://message/?uin=<?php $this->options->socialQQ(); ?>&Site=junichi&Menu=yes"></a>
</li>
<?php endif; ?>
<?php if ($this->options->socialWechat): ?>
<li>
<a class="am-icon-btn am-icon-wechat" target="_blank" itemtype="url" href="<?php $this->options->socialWechat(); ?>"></a>
</li>
<?php endif; ?>
<?php if ($this->options->socialGithub): ?>
<li>
<a class="am-icon-btn am-icon-github" target="_blank" itemtype="url" href="<?php $this->options->socialGithub(); ?>"></a>
</li>
<?php endif; ?>
<?php if ($this->options->socialWeibo): ?>
<li>
<a class="am-icon-btn am-icon-weibo" target="_blank" itemtype="url" href="<?php $this->options->socialWeibo(); ?>"></a>
</li>
<?php endif; ?>
<?php if ($this->options->socialTwitter): ?>
<li>
<a class="am-icon-btn am-icon-twitter" target="_blank" itemtype="url" href="<?php $this->options->socialTwitter(); ?>"></a>
</li>
<?php endif; ?>
</ul>
</section>
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
分类列表
</span>
</div>
<div class="sidebar-list">
<ul class="sidebar-list-body sidebar-list-items">
<?php $this->widget('Widget_Metas_Category_List')
->parse('<li class="sidebar-list-item"><a href="{permalink}" title="{description}">{name} ({count})</a></li>'); ?>
</ul>
</div>
</section>
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
标签列表
</span>
</div>
<div class="tags">
<?php $this->widget('Widget_Metas_Tag_Cloud', array('sort' => 'count', 'ignoreZeroCount' => true, 'desc' => true, 'limit' => 50))->to($tags); ?>
<?php while($tags->next()): ?>
<a href="<?php $tags->permalink(); ?>"><?php $tags->name(); ?></a>
<?php endwhile; ?>
</div>
</section>
<section>
<div class="sidebar-header">
<span class="sidebar-header-title">
归档列表
</span>
</div>
<div class="sidebar-list">
<ul class="sidebar-list-body sidebar-list-items">
<?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
->parse('<li class="sidebar-list-item"><a href="{permalink}">{date} ({count})</a></li>'); ?>
</ul>
</div>
</section>
</div>