<{foreach item=category from=$block.categories}> <{if $category.active==1}> <{$category.title}> <{else}> <{$category.title}> <{/if}> <{foreach item=content from=$category.contents}> <{if $content.active==1}> <{$content.title}> <{else}> <{$content.title}> <{/if}> <{/foreach}> <{/foreach}>