網(wǎng)站全站欄目調(diào)用方法

  

  1. <!--loop頂級(jí)目錄-->
     
  2. <a href="{$base_url}/">網(wǎng)站首頁(yè)</a>
     
  3. {loop type() $t}
     
  4. <h2><a href="{$t[url]}" {if isset($topid) && $topid==$t[typeid]}class="current"{/if}>{$t[typename]}</a></h2>
     
  5. <!--loop一級(jí)目錄-->
     
  6. {loop type($t) $t1}
     
  7. <h3><a href="{$t1[url]}" {if isset($typeid) && $typeid==$t1[typeid]}class="current"{/if}>{$t1[typename]}</a></h3>
     
  8. <!--loop二級(jí)目錄...-->
     
  9. {loop type($t1) $t2}
     
  10. <h4><a href="{$t2[url]}" {if isset($typeid) && $typeid==$t2[typeid]}class="current"{/if}>{$t2[typename]}</a></h4>
     
  11. <!--loop三級(jí)目錄...-->
     
  12. {loop type($t2) $t3}
     
  13. <h5><a href="{$t3[url]}" {if isset($typeid) && $typeid==$t3[typeid]}class="current"{/if}>{$t3[typename]}</a></h5>
     
  14. {/loop}
     
  15. {/loop}
     
  16. {/loop}
     
  17. {/loop}

復(fù)制代碼