联系官方销售客服
1835022288
028-61286886
{navigator type=1 pid=7 return=n1} <li> <a href="{$n1.url}" class=" {if MOD_DIR==$n1.mark}active{/if}">{$n1.name}{if $n1.thumb}<i><img src="{dr_get_file($n1.thumb, 100, 12, 0, 'height')}" alt=""></i>{/if}</a><span class="nav-click"><span class="caret"></span></span> {if $n1.child} <ul class="nav-down"> {navigator type=1 pid=$n1.id return=n2} <li><a href="{$n2.url}" class=" {if MOD_DIR==$n2.mark}active{/if}">{$n2.name}</a></li> {/navigator} </ul> {/if} </li> {/navigator}
这段点谁知道怎么调用 当有二级菜单的时候就下面这样显示
{navigator type=1 pid=7 return=n1} <li> <a href="{$n1.url}" class=" {if MOD_DIR==$n1.mark}active{/if}">{$n1.name}{if $n1.thumb}<i><img src="{dr_get_file($n1.thumb, 100, 12, 0, 'height')}" alt=""></i>{/if}</a><span class="nav-click"><span class="caret"></span></span> {if $n1.child} <ul class="nav-down"> {navigator type=1 pid=$n1.id return=n2} <li><a href="{$n2.url}" class=" {if MOD_DIR==$n2.mark}active{/if}">{$n2.name}</a></li> {/navigator} </ul> {/if} </li> {/navigator}
如果没有的情况就
<li> <a href="{$n1.url}" class=" {if MOD_DIR==$n1.mark}active{/if}">{$n1.name}{if $n1.thumb}<i><img src="{dr_get_file($n1.thumb, 100, 12, 0, 'height')}" alt=""></i>{/if}</a> </li>
主要是在顶级菜单的后面
<span class="nav-click"><span class="caret"></span></span>
这个HTML 是只在有的情况下才显示,没有就不显示