{* Calculate title from path *} {capture name="title"} {if count($path)>1} - {/if} {foreach from=$path item=category name=path} {if $smarty.foreach.path.iteration gt 2} > {/if} {if not $smarty.foreach.path.first} {$category.TITLE} {/if} {/foreach} {/capture} {strip} {assign var="in_page_title" value=$category.TITLE} {assign var="description" value=$category.DESCRIPTION} {include file="header.tpl"} {include file="top_bar.tpl"} {* Calculate the number of categories per row *} {php} $this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / CATS_PER_ROW)); {/php} {* Display categories heading if not on homepage *}
{* Categories *} {if !empty($categs)}
{if $category.ID gt 0 and count($categs) gt 0}

{l}Categories{/l}

{/if} {foreach from=$categs item=cat name=categs} {if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}{/if} {/foreach}
    {/if}
  • {$cat.TITLE}{if $smarty.const.CATS_COUNT} ({$cat.COUNT}){/if}

    {if empty($cat.SUBCATS)}
    {/if} {* Display subcategories *} {if !empty($cat.SUBCATS)} {if $cat.SUBCATS} {foreach from=$cat.SUBCATS item=scat name=scategs} {$scat.TITLE}, {/foreach} ...
    {/if} {/if}
  • {if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}
{/if} {if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)} {/if} {* Links heading and sorting*} {if ($qu or $category.ID gt 0 or $p) and count($links) gt 0} {/if} {* Javascript for tracking link clicks *} {include file="footer.tpl"} {/strip}