当前位置:网站首页>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}
边栏推荐
- The essence of persuasion is to remove obstacles
- MySQL character type learning notes
- Implementation of smart home project
- Application of data modeling based on wide table
- Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
- Design and Simulation of fuzzy PID control system for liquid level of double tank (matlab/simulink)
- .Net之延迟队列
- 自动化规范检查软件如何发展而来?
- oracle和mysql批量Merge对比
- QT event filter simple case
猜你喜欢

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

Energy momentum: how to achieve carbon neutralization in the power industry?

Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes

Generics, generic defects and application scenarios that 90% of people don't understand

How to use sqlcipher tool to decrypt encrypted database under Windows system

Common fault analysis and Countermeasures of using MySQL in go language

RMS TO EAP通过MQTT简单实现
![[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution](/img/f3/782246100bca3517d95869be80d9c5.png)
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution

How Windows bat script automatically executes sqlcipher command

Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
随机推荐
天龙八部TLBB系列 - 单体技能群伤
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
最全是一次I2C总结
Design of stepping motor controller based on single chip microcomputer (forward rotation and reverse rotation indicator gear)
Windows uses commands to run kotlin
oracle和mysql批量Merge对比
Understand the window query function of tdengine in one article
Comparison of batch merge between Oracle and MySQL
盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
Energy momentum: how to achieve carbon neutralization in the power industry?
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
Swift saves an array of class objects with userdefaults and nssecurecoding
The comparison of every() and some() in JS uses a power storage plan
How to correctly evaluate video image quality
H. 265 introduction to coding principles
Implementation of smart home project
(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
Getting started with Apache dolphin scheduler (one article is enough)
【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...