clipbucket/upload/styles/cbv3/layout/blocks/categories.html

39 lines
No EOL
1.1 KiB
HTML

{* Getting a list of categories *}
{$categories=getCategoryList(['type'=>$type])}
<h2 class="cb-widget-title">{lang code='Browse'}</h2>
<ul class="global-nav-list margin0 cbv3-scroller categories-nav">
{foreach $categories as $category}
{if !$category.parent_id}
{$catLink = category_link($category,$type)}
<li >
<a href="{$catLink}"> {$category.category_name}</a>
{if $category.children}
<i class="icon-toggle icon-chevron-down category-toggle"></i>
<ol>
{foreach $category.children as $child}
{$catLink = category_link($child,$type)}
<li><a href="{$catLink}">{$child.category_name}</a>
{if $child.children}
<ul>
{foreach $child.children as $sub_child}
{$catLink = category_link($sub_child,$type)}
<li>
<a href="{$catLink}">{$sub_child.category_name}</a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ol>
{/if}</li>
{/if}
{/foreach}
</ul>