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

3
{if $tags}
Richard Mansfield's avatar
Richard Mansfield committed
4
  <div class="rbuttons"><a href="{$WWWROOT}edittags.php">{str tag=edittags}</a></div>
5
6
7
8
9
10
  <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">
11
  {foreach from=$tags item=t}
12
    <a id="tag:{$t->tag}" class="tag{if $t->tag == $tag} selected{/if}" href="{$WWWROOT}tags.php?tag={$t->tag|urlencode}">{$t->tag|str_shorten_text:30|escape}&nbsp;<span class="tagfreq">({$t->count})</span></a> 
13
  {/foreach}
14
  </div>
15
{else}
16
17
18
    <div>{str tag=youhavenottaggedanythingyet}</div>
{/if}

19
20
21
         <div id="results_container" class="rel tag-results">
           <h2 id="results_heading">{str tag=searchresultsfor} <a class="tag" href="{$WWWROOT}tags.php{if $tag}?tag={$tag|urlencode}{/if}">{if $tag}{$tag|str_shorten_text:50|escape}{else}{str tag=alltags}{/if}</a></h2>
           <div class="rbuttons"><a class="edit-tag{if !$tag} hidden{/if}" href="{$WWWROOT}edittags.php?tag={$tag|urlencode}">{str tag=editthistag}</a></div>
22
23
           <div id="results_sort">{str tag=sortresultsby}
{foreach from=$results->sortcols item=sortfield name=sortcols}
24
25
26
27
28
29
           <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}
30
31
32
{/foreach}
           </div>
           <table id="results" class="tablerenderer fullwidth">
33
34
35
36
             <thead>
               <tr><th></th><th></th><th></th></tr>
             </thead>
             <tbody>
37
{if !empty($results->data)}
38
              {$results->tablerows}
39
{/if}
40
41
42
             </tbody>
           </table>
           {$results->pagination}
43
         </div>
44
45

{include file="footer.tpl"}