{* 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 *}
| {/if}
{/foreach}