尤明明Blog

网站建设 | 前端切图,技术不仅是一种专业,更是一种责任!

您的当前位置: 首页 » CMS学习 » 极致cms »

极致cms输出多层级导航高亮效果

2023-06-29   Umming   极致cms    评论(0)    浏览(907)


{foreach $classtypedata as $v}
{if($v['pid']==0 && $v['isshow']==1)}
//输出一级
<li>{$v['classname']}</li>
{foreach $v['children']['list'] as $vv}
{if($vv['isshow']==1)}
//输出二级
<li {if(isset($type) && in_array($type['id'],$vv['children']['ids']))}class="cur"{/if}>{$vv['classname']}</li>
{foreach $vv['children']['list'] as $vvv}
{if($vvv['isshow']==1)}
//输出三级
<li {if(isset($type) && in_array($type['id'],$vvv['children']['ids']))}class="cur"{/if}>{$vvv['classname']}</li>
{/if}
{/foreach}

{/if}
{/foreach}

{/if}
{/foreach}

标签: 极致cms

本文链接:https://www.umming.com/jizhicms/312.html

声明:本站信息由网友自行发布或来源于网络,真实性、合法性由发布人负责,请仔细甄别!本站只为传递信息,我们不做任何双方证明,也不承担任何法律责任。文章内容若侵犯你的权益,请联系本站删除!


发表评论:

//