织梦三级导航判断有显示 没有隐藏<ul></ul>
<nav class="nav">
<div class="container">
<div class="place column" name="header_nav">
<div class="module">
<ul class="clearfix">
<li>
<a href="/" title="首页" class="a1">首页</a></li>
{dede:channelartlist typeid='top' currentstyle='active' }
<li class="{dede:field.currentstyle/}">
<a href="{dede:field name='typeurl'/}" title="{dede:field name='typename'/}" class="a1">{dede:field name='typename'/}</a>
{dede:field name=typeid runphp="yes"}
global $dsql; $sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
$row = $dsql->GetOne($sql);
@me=is_array($row)?'<div class="hidess">':'';
{/dede:field}
{dede:channel type='son' noself='yes'}<a href="[field:typelink/]" title="[field:typename/]">[field:typename/] </a>{/dede:channel}
{dede:field name=typeid runphp="yes"}
global $dsql; $sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
上一篇:dedecms列表页隔行指定分隔符或红线的办法
下一篇:怎么修改dede友情链接成下拉式
相关仿站教程:
仿站咨询扫二维码
仿站教程推荐
- 相关链接:
- 教程说明:
织梦三级导航判断有显示 没有隐藏<ul></ul> 。