{* 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}No records found that match your keyword(s){/l}: "{$search|escape|wordwrap:200:"\n":true}"

{l}Suggestions{/l}:


{/if} {* Categories *} {if !empty($categs)} {* Categories *} {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} {/foreach} {/if} {if $category.ID==0}
{/if} {if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}
{if $category.ID==0 and count($categs) gt 0} {else}
{/if} {/if} {* Categories *} {if $smarty.const.FTR_ENABLE == 1 and !empty($feat_links)}

Featured sites

{foreach from=$feat_links item=link name=links}
{include file="link.tpl" link=$link}
{/foreach}

{/if} {* Links heading and sorting*} {if ($uid || $search || !empty($category.ID) || $list) && !empty($links)} {if $list==latest || $list==top} {else}

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

Standard links

{/if} {foreach from=$links item=link name=links}
{include file="link.tpl" link=$link}
{/foreach} {/if} {* Articles *} {if !empty($articles) and !$uid and !$search} {if $list==latestarticles} {else}

{l}Articles{/l}

{/if} {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="footer.tpl"} {/strip}