去评论
dz插件网

网站导航的高亮

admin
2020/07/07 08:58:55
这个是高亮必需代码:
  1. <!--{eval $mnid = getcurrentnav();}-->
这是导航代码:
  1. <!--{loop $_G['setting']['navs'] $nav}--><!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {if $mnid == $nav[navid]}class="a" {/if}$nav[nav]></li><!--{/if}--><!--{/loop}-->