-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsidebar.php
98 lines (97 loc) · 5 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<section id="contents" class="width">
<!-- 侧边栏 -->
<aside id="aside" class="left">
<div class="inner">
<div class="sns web-info">
<li class="frinum">
<?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?>
<a href="javascript:void(0)"><?php echo $stat->PublishedPostsNum ?>
<span>文章</span></a>
</li>
<li class="vitnum">
<a href="javascript:void(0)"><?php echo $stat->PublishedCommentsNum ?>
<span>评论</span></a>
</li>
<li class="ptnum">
<a href="javascript:void(0)"><?php echo $stat->categoriesNum ?>
<span>分类</span></a>
</li>
</div>
<div class="sns master-info">
<div class="person-info">
<p class="verify clearfix">
<span class="weibo_renz tips-top" aria-label="微博认证" style="background-image:url(<?php $this->options->themeUrl('images/icon.png'); ?>"></span>
<a class="master_lev tips-top" aria-label="当前等级:LV.<?php $this->options->levelNumber() ?>" href="javascript:void(0);">
<span>LV.<?php $this->options->levelNumber() ?></span></a>
</p>
<p class="info"><?php $this->options->verified() ?></p></div>
<ul class="m_info-items">
<li class="item">
<i class="icon louie-location"></i>
<span class="tips-right" aria-label="我在<?php $this->options->yourPlace() ?>,你在哪里?">居住地:<?php $this->options->yourPlace() ?></span></li>
<li class="item">
<i class="icon louie-time-o"></i>
<span class="tips-right" aria-label="我的生日:<?php $this->options->yourBirthday() ?>">生日:<?php $this->options->yourBirthday() ?></span></li>
<li class="item">
<i class="icon louie-smiling"></i>
<span class="tips-right" aria-label="<?php ($this->options->yourNickname) ? $this->options->yourDescription() : $this->options->description(); ?>">简介:<?php ($this->options->yourNickname) ? $this->options->yourDescription() : $this->options->description(); ?></span></li>
<li class="item last">
<i class="icon louie-link-o"></i>
<a class="tips-right" aria-label="个性域名" href="<?php $this->options->siteUrl(); ?>" target="_blank"><?php $this->options->siteUrl(); ?></a></li>
</ul>
<div class="sns readmore">
<a href="<?php $this->options->readMore() ?>">查看更多 ></a>
</div>
<div class="alteration">
<div class="widget">
<h3 class="widget-title">
<i class="icon louie-notice"></i>他们抢着跟我说这些</h3>
<div class="textwidget">
<!-- 评论 -->
<?php $this->widget('Widget_Comments_Recent')->to($comments); ?>
<ul class="items hot-comment">
<?php while($comments->next()): ?>
<li class="item">
<div class="image">
<?php $comments->gravatar('100', ''); ?></div>
<div class="info">
<h4 class="title nowarp"><?php $comments->author(); ?></h4>
<div class="meta">
<a class="hot-comment-link" href="<?php $comments->permalink(); ?>">
<p><?php $comments->excerpt(20, '[...]'); ?></p>
</a>
</div>
</div>
</li>
<?php endwhile; ?>
</ul>
<!-- 评论结束 -->
</div>
</div>
<?php if (class_exists("Links_Plugin")): ?>
<div class="widget">
<h3 class="widget-title">
<i class="icon icon louie-smile"></i>左邻右舍</h3>
<ul class="items hot-comment">
<!-- 友链 -->
<?php Links_Plugin::output('
<li class="item">
<div class="image">
<a href="{url}"><img height="100" src="{image}"></div></a>
<div class="info">
<a href="{url}"><h4 class="title nowarp">{name}</h4></a>
<div class="meta">
<a class="hot-comment-link" alt="{description}" href="{url}">
<p>{description}</p>
</a>
</div>
</div>
</li>
'); ?>
<!-- 友链结束 -->
</ul>
</div>
<?php endif; ?>
</div>
</aside>
<!-- 侧边栏结束 -->