tags.tpl 1.96 KB
Newer Older
1
2
{include file="header.tpl"}

3
{if $tags}
4
5
6
7
8
9
  <ul class="in-page-tabs">
  {foreach from=$tagsortoptions key=tagsortfield item=selectedsort name=tagsortoptions}
    <li><a href="{$WWWROOT}tags.php?ts={$tagsortfield}" class="tag-sort{if $selectedsort} current-tab{/if}">{str tag=sort$tagsortfield}</a></li>
  {/foreach}
  </ul>
  <div class="subpage mytags">
10
  {foreach from=$tags item=t}
11
    <a id="tag:{$t->tag}" class="tag{if $t->tag == $tag} selected{/if}" href="{$WWWROOT}tags.php?tag={$t->tag|urlencode}">{$t->tag|escape}&nbsp;<span class="tagfreq">({$t->count})</span></a> 
12
  {/foreach}
13
  </div>
14
{else}
15
16
17
    <div>{str tag=youhavenottaggedanythingyet}</div>
{/if}

18
19
20
21
         <div id="results_container" class="tag-results{if !$tag} hidden{/if}">
           <h2 id="results_heading">{str tag=searchresultsfor} <a class="tag" href="{$WWWROOT}tags.php?tag={$tag|urlencode}">{$tag|escape}</a></h4>
           <div id="results_sort">{str tag=sortresultsby}
{foreach from=$results->sortcols item=sortfield name=sortcols}
22
23
24
25
26
27
           <a href="{$results->baseurl}&type={$results->filter}&sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$smarty.foreach.sortcols.last} | {/if}
{/foreach}
           </div>
           <div id="results_filter">{str tag=filterresultsby}
{foreach from=$results->filtercols key=filtername item=filterdisplay name=filtercols}
           <a href="{$results->baseurl}&sort={$results->sort}&type={$filtername}"{if $results->filter == $filtername} class="selected"{/if}>{$filterdisplay}</a>{if !$smarty.foreach.filtercols.last} | {/if}
28
29
30
{/foreach}
           </div>
           <table id="results" class="tablerenderer fullwidth">
31
32
33
34
             <thead>
               <tr><th></th><th></th><th></th></tr>
             </thead>
             <tbody>
35
{if !empty($results->data)}
36
              {$results->tablerows}
37
{/if}
38
39
40
             </tbody>
           </table>
           {$results->pagination}
41
         </div>
42
43

{include file="footer.tpl"}