导航高亮显示,有多种方法,这里给出一个简单的表示下:
<a href="__ROOT__"><span class="text db">网站首页</span><span class="eng db">HOME</span> </a> <a href="{:cmf_url('portal/page/index',array('id'=>1))}" <if condition="!empty($page['id']) && ($page['id'] eq 1)">class="aHover"</if>><span class="text db">关于我们</span><span class="eng db">ABOUT</span> </a> <a href="{:cmf_url('portal/List/index',array('id'=>1))}" <if condition="!empty($category['id']) && ($category['id'] eq 1)">class="aHover"</if>><span class="text db">成功案例</span><span class="eng db">CASE</span> </a> <a href="{:cmf_url('portal/List/index',array('id'=>2))}" <if condition="!empty($category['id']) && ($category['id'] eq 2)">class="aHover"</if>><span class="text db">新闻资讯</span><span class="eng db">news</span> </a>