电话
13363039260
一个标准的云优cms导航菜单标签,包括二级下拉菜简,这个菜单可以自我控制是否弹出,而不是说有了二级就一定要弹出,你只需要在云优cms栏目的外部链接填一点东西不为空就行。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | < li >< a href="<yunu:url name = 'home' />">首页</ a ></ li > <? php $chkid = isset($cid) ? $cid : 0; $catid = isset($category) ? $category['pid'] : 0; ?> < yunu:nav typeid = "1" limit = "10" > < li <if condition = "$nav['id'] eq $chkid || $nav['id'] eq $catid" >class="active"</ if >> < a href = "{$nav.url}" class = "first-level" title = "{$nav.etitle}" > {$nav.title} < if condition = "$nav.jumpurl!=''" >< i class = "far fa-angle-down margin-little-left text-default text-gray" ></ i ></ if > <!-- 如果栏目外部链接不为空,则说明有下拉显示一个小图标 --> </ a > <!-- 如果栏目外部链接不为空,则显示下拉,只要是能自定义是否要显示下拉 --> < if condition = "$nav.jumpurl!=''" > < if condition = "$nav.child" > < ul class = "drop-menu" > < volist name = "nav['child']" id = "v" > < li >< a href = "{$v.url}" >{$v.title}</ a ></ li > </ volist > </ ul > < else /> </ if > </ if > </ li > </ yunu:nav > |