Files

49 lines
1.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- 右侧栏:热门文章 / 分类 / 标签云 / 最新评论(前台共用 fb-aside 风格) -->
<aside class="fb-aside">
<div class="fb-widget">
<h4>热门文章</h4>
<ul class="fb-hot">
{volist name="hotArticles" id="a"}
<li>
<span class="rank">{$i}</span>
<a href="{:url('blog/article/detail', ['id' => $a.id])}">{$a.title}</a>
</li>
{/volist}
</ul>
</div>
<div class="fb-widget">
<h4>文章分类</h4>
<ul class="fb-catlist">
{volist name="categories" id="c"}
<li><a href="{:url('blog/category/index', ['id' => $c.id])}">{$c.name}<span class="cnt">{$c.card_count|default=0}</span></a></li>
{/volist}
</ul>
</div>
<div class="fb-widget">
<h4>标签云</h4>
<div class="fb-tagcloud">
{volist name="tags" id="t"}
<a href="{:url('blog/tag/index', ['id' => $t.id])}">{$t.name}</a>
{/volist}
</div>
</div>
{notempty name="latestComments"}
{if !$latestComments->isEmpty()}
<div class="fb-widget">
<h4>最新评论</h4>
<ul class="fb-cmt">
{volist name="latestComments" id="cmt"}
<li>
<span class="who">{$cmt.user.nickname|default='匿名'}</span>
<span class="txt">{$cmt.content}</span>
</li>
{/volist}
</ul>
</div>
{/if}
{/notempty}
</aside>