-
Notifications
You must be signed in to change notification settings - Fork 2
/
widget-tags.php
executable file
·41 lines (20 loc) · 1.11 KB
/
widget-tags.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="Trends module trends">
<div class="trends-inner">
<div class="flex-module trends-container ">
<?php Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->to($tags); ?>
<div class="flex-module-header">
<h3><span class="trend-location js-trend-location">标签云</span></h3>
</div>
<div class="flex-module-inner">
<ul class="trend-items js-trends">
<?php if($tags->have()): ?>
<?php while ($tags->next()): ?>
<li class="trend-item js-trend-item" > <a class="js-nav trend-name" dir="ltr" href="<?php $tags->permalink();?>" data-query-source="trend_click"><?php $tags->name(); ?></a> </li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</div>
</div>
</div>
</div>