1 |
dpavlin |
2 |
{*---------------------------------------- |
2 |
|
|
$Id: list-tags.tpl,v 1.6 2006/02/27 23:03:42 fruminator Exp $ |
3 |
|
|
vim: ts=4 foldcolumn=4 foldmethod=marker |
4 |
|
|
|
5 |
|
|
This file is part of Reblog: http://reblog.org |
6 |
|
|
A derivative work of Feed On Feeds: http://feedonfeeds.com |
7 |
|
|
|
8 |
|
|
Distributed under the Gnu Public License, see LICENSE |
9 |
|
|
|
10 |
|
|
Copyright mike@stamen.com, http://stamen.com |
11 |
|
|
mfrumin@eyebeam.org, http://eyebeam.org |
12 |
|
|
|
13 |
|
|
list-tags.tpl - tag list |
14 |
|
|
----------------------------------------*} |
15 |
|
|
|
16 |
|
|
{if $tags} |
17 |
|
|
<ul> |
18 |
|
|
{foreach from=$tags item="tag"} |
19 |
|
|
|
20 |
|
|
{if $tag_object == 'feed'} |
21 |
|
|
{if $RB.client_response == $_CONSTANT.REBLOG_RESPONSE_ITEM_LIST} |
22 |
|
|
{capture assign="taglink"}{view_link feedtag=$tag how="paged" what="new"}{/capture} |
23 |
|
|
{else} |
24 |
|
|
{capture assign="taglink"}{view_link feedtag=$tag}{/capture} |
25 |
|
|
{/if} |
26 |
|
|
{elseif $tag_object == 'item'} |
27 |
|
|
{capture assign="taglink"}{view_link itemtag=$tag how="paged" what="new"}{/capture} |
28 |
|
|
{/if} |
29 |
|
|
|
30 |
|
|
{if $tag == $argstag} |
31 |
|
|
<li class="on"><a href="{$taglink}">{$tag|escape}</a></li> |
32 |
|
|
{elseif $tag_usage.$tag} |
33 |
|
|
<li class="related"><a href="{$taglink}">{$tag|escape} *</a></li> |
34 |
|
|
{else} |
35 |
|
|
<li><a href="{$taglink}">{$tag|escape}</a></li> |
36 |
|
|
{/if} |
37 |
|
|
{/foreach} |
38 |
|
|
|
39 |
|
|
{if $argstag} |
40 |
|
|
<li><em><a href="{view_link how="paged" what="new"}">any tag</a></em></li> |
41 |
|
|
{/if} |
42 |
|
|
</ul> |
43 |
|
|
{else} |
44 |
|
|
<p>No tags.</p> |
45 |
|
|
{/if} |