{tr}Directory{/tr}

{* The navigation bar *} {include file=tiki-directory_bar.tpl}

{* The category path *} Top{if $parent > 0} >> {/if}{$path}

{tr}Find{/tr}:
{if count($categs)}

{tr}Subcategories{/tr}
{* The table with the subcategories *}
{section name=numloop loop=$categs} {* see if we should go to the next row *} {if not ($smarty.section.numloop.rownum mod $cols)} {if not $smarty.section.numloop.last} {/if} {/if} {if $smarty.section.numloop.last} {* pad the cells not yet created *} {math equation = "n - a % n" n=$cols a=$data|@count assign="cells"} {if $cells ne $cols} {section name=pad loop=$cells} {/section} {/if} {/if} {/section}
{$categs[numloop].name} {if $categs[numloop].showCount eq 'y'} ({$categs[numloop].sites}) {/if}
{* Now display subcats if any *} {section name=ix loop=$categs[numloop].subcats} {if $categs[numloop].childrenType ne 'd'} {$categs[numloop].subcats[ix].name} {else} {$categs[numloop].subcats[ix].name} {/if} {if $categs[numloop].subcats[ix].showCount eq 'y'} ({$categs[numloop].subcats[ix].sites}) {/if} {/section}
 
{/if}
{* The links *} {if $categ_info.allowSites eq 'y' and count($items) > 0} {tr}Links{/tr}
{tr}Sort by{/tr}:

{section name=ix loop=$items}
{$items[ix].name} {if $tiki_p_admin_directory_sites eq 'y'} [edit]{/if} {if $cachepages eq 'y'}({tr}cache{/tr}){/if}
{assign var=fsfs value=1} {tr}. . . Categories{/tr}: {section name=ii loop=$items[ix].cats} {if $fsfs}{assign var=fsfs value=0}{else}, {/if} {$items[ix].cats[ii].path} {/section}
{tr}. . . URL{/tr}: {$items[ix].url}
{tr}. . . Added{/tr}: {$items[ix].created|tiki_short_date} {tr}Last updated{/tr}: {$items[ix].lastModif|tiki_short_date} {tr}Hits{/tr}: {$items[ix].hits}

{/section}

{* next and prev links *}
{if $prev_offset >= 0} [{tr}prev{/tr}]  {/if} {tr}Page{/tr}: {$actual_page}/{$cant_pages} {if $next_offset >= 0}  [{tr}next{/tr}] {/if} {if $direct_pagination eq 'y'}
{section loop=$cant_pages name=foo} {assign var=selector_offset value=$smarty.section.foo.index|times:$maxRecords} {$smarty.section.foo.index_next}  {/section} {/if}
{/if} {if count($related)>0}
{tr}Related categories{/tr}

{section name=ix loop=$related} {$related[ix].path}
{/section}
{/if} {include file=tiki-directory_footer.tpl}