网站导航的高亮
这个是高亮必需代码:这是导航代码:
- <!--{eval $mnid = getcurrentnav();}-->
- <!--{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}-->