tags.tpl 1.56 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
22
23
24
25
         <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}
           <a href="{$results->baseurl}&sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$smarty.foreach.sortcols.last} | {/if}
{/foreach}
           </div>
           <table id="results" class="tablerenderer fullwidth">
26
27
28
29
             <thead>
               <tr><th></th><th></th><th></th></tr>
             </thead>
             <tbody>
30
{if !empty($results->data)}
31
              {$results->tablerows}
32
{/if}
33
34
35
             </tbody>
           </table>
           {$results->pagination}
36
         </div>
37
38

{include file="footer.tpl"}