{* $Id$ *} {* The heading and category path *} {if $prefs.feature_breadcrumbs ne 'y'} {title help="Directory" url="tiki-directory_browse.php?parent=$parent"} {if $parent} {tr}Directory:{/tr} {$parent_name} {else} {tr}Directory{/tr} {/if} {/title} {else} {/if} {* The navigation bar *} {include file='tiki-directory_bar.tpl'} {* The category path *} {if $prefs.feature_breadcrumbs ne 'y'} {tr}Top{/tr}{if $parent > 0} >> {/if}{$path}{/if}
{$parent_info.description|escape}
{if count($items) > 0}
{tr}Find:{/tr}
{/if} {if count($categs)}

{tr}Directory 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|escape} {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'}

{tr}Links{/tr}

{if count($items) > 0}
{tr}Sort by:{/tr} 
{section name=ix loop=$items}
{if $prefs.directory_country_flag eq 'y'} flag {/if} {$items[ix].name|escape} {if $tiki_p_admin_directory_sites eq 'y'} [{tr}Edit{/tr}] {/if} {if $prefs.cachepages eq 'y'} ({tr}Cache{/tr}) {/if}
{$items[ix].description}
{assign var=fsfs value=1} {tr}Directory Categories:{/tr} {section name=ii loop=$items[ix].cats} {if $fsfs} {assign var=fsfs value=0}{else},  {/if} {$items[ix].cats[ii].path|escape} {/section}
{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}
{pagination_links cant=$cant_pages step=$prefs.directory_links_per_page offset=$offset}{/pagination_links} {elseif !empty($parent)} {tr}No records.{/tr} {/if} {/if} {if count($related)>0}
{tr}Related directory categories{/tr}

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