{pboot:if(’[nav:scode]’==’{sort:tcode}’)}class="active"{/pboot:if} //用于非首页 //完整示例 {pboot:nav}[nav:name]{/pboot:nav} |
{pboot:if([nav:soncount]>0)}…{/pboot:if} |
{pboot:nav} {pboot:2nav parent=[nav:scode]} [2nav:name] //二级菜单循环 {/pboot:2nav} {/pboot:if} |
{pboot:nav} |
{pboot:if(’[nav:scode]’==’{sort:scode}’)}class="active"{/pboot:if} //例: {pboot:nav parent={sort:tcode}} |
{pboot:if('{pboot:companyqq}'!='')}QQ:{pboot:companyqq}{/pboot:if} |
{pboot:if({page:rows}>0)}{page:bar}{else}暂无内容{/pboot:if} 例: {pboot:if({page:rows}>0)} |
{pboot:if({page:rows}>0)} |
{pboot:if(’[xx:i]’==‘1’)}class="active"{/pboot:if} {pboot:nav} [nav:name] {/pboot:nav} {pboot:list} [list:title] {/pboot:list} {pboot:slide gid=* num=*} {/pboot:slide} |
{pboot:if({content:ispics}==1)}…多图…{else}…缩略图…{/pboot:if} 例: {pboot:if({content:ispics}==1)}
|
{pboot:if(’[list:link]’==’{content:link}’)}class="active"{/pboot:if} //判断列表内链接等于本文链接 例:
|
{pboot:if([list:i]%2==0)}…{/pboot:if} 例:
|
{{pboot:if(’[nav:i]’>‘2’)}……{/pboot:if} //从第二个开始 例: {pboot:nav} {pboot:if('[nav:i]'>'2')} |
{pboot:if([nav:scode]==2||[nav:scode]==4||[nav:scode]==6)}style="display: none;"{/pboot:if} //隐藏 scode 为 2,4,6 的菜单 例: {pboot:nav} |
{pboot:nav} [nav:name]{pboot:if([nav:i]==3)}{/pboot:if} {/pboot:nav} |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!