clipbucket/upload/styles/cbv3/layout/blocks/categories.html
Arslan Hassan ea10f2989b Added : New Category System inc SQL updates
Added : Amplify 
Added : bootstrap and jQuery UI
Added : Amlpify on front-end
Added : Category iCons
Updated : Admin Area Template
2012-05-19 13:42:45 +00:00

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>
&#8211; <a href="{$catLink}">{$sub_child.category_name}</a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ol>
{/if}</li>
{/if}
{/foreach}
</ul>
</div>