phpcms V9 header.html(顶部)
2022-07-04 17:21:34 来源: 评论:0 点击:
调用导航的代码xml代码123456789101112131415161718{pc:content action="category" catid="0" num="25" siteid="$siteid" order="list
调用导航的代码
调用二级导航的代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"} < ul > < li >< a href = "{siteurl($siteid)}" >公司首页</ a ></ li > {loop $data $r} < li >< a href = "{$r[url]}" >{$r[catname]}</ a > //此处为调用子栏目 {pc:content action="category" siteid="1" catid="$r[catid]" num="10" return="data" } < ul > {loop $data $n $r} < li >< a href = "{$r['url']}" title = "{$r['title']}" >{$r['catname']}</ a ></ li > {/loop} </ ul > {/pc} //调用子栏目结束 </ li > {/loop} </ ul > {/pc} |
调用二级导航的代码
1
2
3
|
{loop $arrchild_arr $cid} < li {if $catid==$cid} class = "cur" {/if}>< a href = "{$CATEGORYS[$cid][url]}" >{$CATEGORYS[$cid][catname]}</ a ></ li > {/loop} |
相关热词搜索:
上一篇:phpcms v9 后台管理 标题更改 模版修改(title)
下一篇:phpcms v9 content(内容模型) index.html(网站首页)
分享到:
收藏