{* 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} {if $title_prefix} {assign var="in_page_title" value=$title_prefix|cat:$category.TITLE} {else} {assign var="in_page_title" value=$category.TITLE} {/if} {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} {if $cats_per_col > 15} {php} $this->assign('cats_per_col', ceil(count($this->get_template_vars('categs')) / (CATS_PER_ROW + 1))); {/php} {/if} {* Show category search results *} {if $search_category} {$search_category} {/if} {* Show article search results *} {if $search_article} {$search_article} {/if} {if isset($have_search_results) and $have_search_results == 0}

{l}Sorry, no records found that match your keyword(s){/l}: "{$search|escape|wordwrap:200:"\n":true}"

{l}Suggestions{/l}:

{/if} {* Categories *} {if !empty($categs)} {if !empty($category.ID)}

{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|escape}{if $smarty.const.CATS_COUNT} ({$cat.COUNT}){/if}

{* Display subcategories *} {if !empty($cat.SUBCATS)}

{foreach from=$cat.SUBCATS item=scat name=scategs} {$scat.TITLE|escape}, {/foreach}...

{/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)}

{l}Featured Links{/l}

{foreach from=$feat_links item=link name=links}

{/foreach} {/if} {* Links heading and sorting*} {if ($uid or $search or !empty($category.ID) or $list) and !empty($links)}

{l}Links{/l} {if not $list}{l}Sort by{/l}: {if $smarty.const.ENABLE_PAGERANK and $smarty.const.SHOW_PAGERANK}{if $sort eq 'P'} {l}PageRank{/l}{else} {l}PageRank{/l}{/if} |{/if} {if $sort eq 'H'} {l}Hits{/l}{else} {l}Hits{/l}{/if} {if $sort eq 'A'} | {l}Alphabetical{/l}{else} | {l}Alphabetical{/l}{/if} {/if}

{/if} {* Articles *} {if !empty($articles) and !$uid and !$search}

{l}Articles{/l}

{foreach from=$articles item=article name=name}
{include file="articlelink.tpl" link=$article}
{/foreach}
{/if} {* Javascript for tracking link clicks *} {if $StopLinkHits eq 0} {/if} {include file="sidebar.tpl"} {include file="footer.tpl"} {/strip}