pbootcms模板内页调用子栏目,如果没有子栏目则调用同级栏目(1)

COS、CDN
wdzsjl 3周前 (01-01) 阅读数 44 #宝塔面板
  • {pboot:if('{pboot:nav parent={sort:scode}}[nav:name]{/pboot:nav}' != '')} {pboot:nav parent={sort:scode}} <div class="pro_div"> <a class="item fl {pboot:2if('[nav:scode]' == '{sort:scode}')}on{/pboot:2if}" href="[nav:link]">[nav:name]</a> </div> {/pboot:nav} {else} {pboot:nav parent={sort:pcode}} <div class="pro_div"> <a class="item fl {pboot:2if('[nav:scode]' == '{sort:scode}')}on{/pboot:2if}" href="[nav:link]">[nav:name]</a> </div> {/pboot:nav} {/pboot:if}

 

COS、CDN
热门