实际上他每一次的循环就是这几个代码循环代码:
- <span style="font-family: 'Microsoft YaHei', tahoma, Verdana, Geneva, sans-serif;"><!--{loop $_G['setting']['navs'] $nav}--></span>
- <span style="font-family: 'Microsoft YaHei', tahoma, Verdana, Geneva, sans-serif;"> <!--{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}--></span>
- <span style="font-family: 'Microsoft YaHei', tahoma, Verdana, Geneva, sans-serif;"> <!--{/loop}--></span>
复制代码
循环核心模板
- <li {if $mnid == $nav[navid]}class="a" {/if}$nav[nav]></li>
复制代码 而这一段
- {if $mnid == $nav[navid]}class="a" {/if}
复制代码
是判断高亮的!
由此可见
- <div><span style="font-family: 'Microsoft YaHei', tahoma, Verdana, Geneva, sans-serif; background-color: rgb(247, 247, 247);">$nav[nav]</span></div><div></div>
复制代码 就是导航的核心!
|