ecshop 调用 所有一级栏目和子栏目
<!--{foreach from=get_categories_tree() item=cat name=get_categories_tree}-->
<!--{foreach from=get_categories_tree() item=cat name=get_categories_tree}-->
<li mon="type=subnav&action=click">
<a class="ti" href="{$cat.url}" title="{$cat.name|escape:html}" mon="#content={$cat.name|escape:html}">{$cat.name|escape:html}</a>
{if $cat.cat_id}
<div class="prosmore">
<a href="{$cat.url}" target="_blank">全部({$cat.num})</a>
<!--{foreach from=$cat.cat_id item=child name=cat_cat_id}-->
<a href="{$child.url}" target="_blank">{$child.name|escape:html}({$child.num})</a>
<!--{/foreach}-->
</div>
{/if}
</li>
<!--{/foreach}-->