{foreach from=$categories item=category}
{$category->category|capitalize}
{foreach from=$category->templates item=template}
{$template->templatename}
{if $template->description} - {$template->description}{/if} {if $template->locked}
({$_lang.locked})
{/if}
{foreachelse}
No templates for this category.
{/foreach}
{/foreach}