
Added : Amplify Added : bootstrap and jQuery UI Added : Amlpify on front-end Added : Category iCons Updated : Admin Area Template
38 lines
No EOL
1.3 KiB
HTML
38 lines
No EOL
1.3 KiB
HTML
{* Getting a list of categories *}
|
|
|
|
<div class="categories-nav">
|
|
{$categories=getCategoryList(['type'=>$type])}
|
|
|
|
<ul>
|
|
{foreach $categories as $category}
|
|
{if !$category.parent_id}
|
|
|
|
{$catLink = category_link($category,$type)}
|
|
<li class="gradient relative"><img src="{$cbvid->get_icon($category)}"/>
|
|
<a href="{$catLink}">{$category.category_name}</a>
|
|
|
|
{if $category.children}
|
|
<i class="icon-toggle icon-set absolute right"></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>
|
|
</div> |