当前位置:网站首页>Zblogphp breadcrumb navigation code
Zblogphp breadcrumb navigation code
2022-07-05 10:10:00 【A poor webmaster】
zblogphp Breadcrumb navigation code writing
{if $type == 'index'}
<i class="fa fa-bullhorn"></i> Website revision and debugging !
{elseif $type == 'category'}
<i class="fa fa-home"></i> <a href="{$host}" title="{$name}"> home page </a>
{php}
$html='';
function navcate($id){
global $html;
$cate = new Category;
$cate->LoadInfoByID($id);
$html ='» <a href="' .$cate->Url.'" title=" see ' .$cate->Name. ' All the articles in ">' .$cate->Name. '</a> '.$html;
if(($cate->ParentID)>0){navcate($cate->ParentID);}
}
navcate($category->ID);
global $html;
echo $html;
{/php}
{elseif $type =="article"}
<i class="fa fa-home"></i> <a href="{$host}" title="{$name}"> home page </a>
{php}
$html='';
function navcate($id){
global $html;
$cate = new Category;
$cate->LoadInfoByID($id);
$html ='» <a href="' .$cate->Url.'" title=" see ' .$cate->Name. ' All the articles in ">' .$cate->Name. '</a> '.$html;
if(($cate->ParentID)>0){navcate($cate->ParentID);}
}
navcate($article->Category->ID);
global $html;
echo $html;
{/php} » Text
{elseif $type =="page"}
<i class="fa fa-home"></i> <a href="{$host}" title="{$name}"> home page </a>
» Text
{elseif $type =="tag"}
<i class="fa fa-home"></i> <a href="{$host}" title="{$name}"> home page </a>
»
<span class="current"> Label archiving :{$tag.Name}</span>
{elseif $type =="author"}
<i class="fa fa-home"></i> <a href="{$host}" title="{$name}"> home page </a>
»
<span class="current">{$author.Name} The article </span>
{/if}
边栏推荐
- Application of data modeling based on wide table
- QT event filter simple case
- Small program startup performance optimization practice
- Solve the problem of no all pattern found during Navicat activation and registration
- [app packaging error] to proceed, either fix the issues identified by lint, or modify your build script as follow
- 苹果 5G 芯片研发失败?想要摆脱高通为时过早
- Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
- Oracle combines multiple rows of data into one row of data
- About getfragmentmanager () and getchildfragmentmanager ()
- 剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
猜你喜欢

Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease

Officially launched! Tdengine plug-in enters the official website of grafana

写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用

idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试

Apache DolphinScheduler 入门(一篇就够了)

The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution

B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条...
![[tips] get the x-axis and y-axis values of cdfplot function in MATLAB](/img/08/2d039df6ea3ace8685512b2af8281d.png)
[tips] get the x-axis and y-axis values of cdfplot function in MATLAB

MySQL字符类型学习笔记

双容水箱液位模糊PID控制系统设计与仿真(Matlab/Simulink)
随机推荐
QT timer realizes dynamic display of pictures
Hard core, have you ever seen robots play "escape from the secret room"? (code attached)
Single chip microcomputer principle and Interface Technology (esp8266/esp32) machine human draft
. Net delay queue
A high density 256 channel electrode cap for dry EEG
一种用于干式脑电图的高密度256通道电极帽
Swift saves an array of class objects with userdefaults and nssecurecoding
MySQL character type learning notes
MySQL字符类型学习笔记
Implementation of smart home project
Unity粒子特效系列-毒液喷射预制体做好了,unitypackage包直接用 -下
.Net之延迟队列
Fluent generates icon prompt logo widget
MySQL digital type learning notes
Tdengine already supports the industrial Intel edge insight package
苹果 5G 芯片研发失败?想要摆脱高通为时过早
Swift tableview style (I) system basic
(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
如何获取GC(垃圾回收器)的STW(暂停)时间?
Wechat applet - simple diet recommendation (2)