if $ type = ='index'&& $ page =='1'

来源:未知 浏览 312次 时间 2021-05-04 19:30

闭于什么是面包屑导航尔想诸位童鞋都该当格外的领会了吧此地尔便不再报告了;先贴二段官方WIKI给的代码瞅下:

页面估计 // *估计首页* / {if $ type =='category'} / *估计分类页* / {if $ type =='article'} // *估计日记 页排除独力页面sim卡pin码是什么 sim卡pin码排除独力页面{if $ article.Type == ZC_POST_TYPE_ARTICLE}(另一本书)* / {if $ type =='page'} // *估计独力页面* / {if $ type =='author' } // *估计用户页* / {if $ type =='date'}} // *估计日期页* / {if $ type =='tag'} // *估计标签页* /

分类目录面包屑的代码编写

{php} $ html ='';函数navcate($ id){global $ html; $ cate ==新类别; $ cate-> LoadInfoByID($ id); $ html ='>> '.. $ cate-> Url导航。'“ title =”察瞅.. $ cate->名称制作教程。''中的理想文章“>'.. $ cate->名称面包。''细的。$ html; if((($ cate-> ParentID)> 0){navcate($ cate-> ParentID);}} navcate($ article-> Category-> ID); global $ html; echo $ html; {/ php}

上头这二段代码是官方wiki的咱们只要共同下以上的代码稍干建改便不妨碍了底​​下咱们来瞅下烽火博客模板运用的面包屑导航代码 :

{if $ type =='index'} > 网站改版调试中!{elseif $ type =='category'} > 首页 {php} $ html ='';函数navcate($ id){global $ html; $ cate == newCategory; $ cate-> LoadInfoByID($ id); $ html =='» UrlZBlog。'“ title =”察瞅.. $ cate->名称超详。'中的理想文章“>'。$ cate->名称。''。$ html; if((($ cate-> ParentID)> 0){navcate($ cate-> ParentID);}} navcate($ category-> ID); global $ html; echo $ html ; {/ php} {elseif $ type =“ = article”} 首页 {php} $ html =''; function navcate($ id){global $ html; $ cate = new Category; $ cate-> LoadInfoByID($ id); $ html ='» 。$ cate-> Url

超详细的ZBlog面包屑导航制作教程!

'” title =“察瞅.. $ cate->名称'中的理想文章”>'。$ cate->名称。''。$ html; if((($ cate-> ParentID)> 0){navcate($ cate-> ParentID);}} navcate($ article-> Category-> ID); global $ html; echo $ html; {/ php}» 正文{elseif $ type =“ =” page“} 首页» 正文{elseif $ type ==“ tag”} 首页» 标签存档:{$ tag.Name} {elseif $ type ==“ author”} > 首页» > {$ author.Name}的文章 {/ if}

将上头的代码增添到你想要表露的场合便行了实际上普遍在导航栏下方香河县网站优化实际上普遍在导航栏下方效验不妨碍参照本博客。{超详细的ZBlog面包屑导航制作教程!}

标签: 超详细的ZBlog面包屑导航制作教程!