Add Trending Tags widget + template
This commit is contained in:
parent
6b7dfd0c71
commit
a947bd0889
2 changed files with 132 additions and 0 deletions
18
view/templates/widget/trending_tags.tpl
Normal file
18
view/templates/widget/trending_tags.tpl
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div id="trending-tags-sidebar" class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<ul>
|
||||
{{section name=ol loop=$tags max=10}}
|
||||
<li><a href="search?tag={{$tags[ol].term}}">{{$tags[ol].term}}</a></li>
|
||||
{{/section}}
|
||||
</ul>
|
||||
{{if $tags|count > 10}}
|
||||
<details>
|
||||
<summary>{{$more}}</summary>
|
||||
<ul>
|
||||
{{section name=ul loop=$tags start=10}}
|
||||
<li><a href="search?tag={{$tags[ul].term}}">{{$tags[ul].term}}</a></li>
|
||||
{{/section}}
|
||||
</ul>
|
||||
</details>
|
||||
{{/if}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue