当前位置:网站首页>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}
边栏推荐
- Officially launched! Tdengine plug-in enters the official website of grafana
- From "chemist" to developer, from Oracle to tdengine, two important choices in my life
- Click the picture in the mobile browser and the picture will not pop up
- Idea debugs com intellij. rt.debugger. agent. Captureagent, which makes debugging impossible
- Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
- 双容水箱液位模糊PID控制系统设计与仿真(Matlab/Simulink)
- 盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
- Wechat applet - simple diet recommendation (2)
- Swift set pickerview to white on black background
- 如何獲取GC(垃圾回收器)的STW(暫停)時間?
猜你喜欢

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

Evolution of Baidu intelligent applet patrol scheduling scheme

(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software

Viewpager pageradapter notifydatasetchanged invalid problem

Implementation of smart home project

Solve the problem of no all pattern found during Navicat activation and registration

B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条...

Baidu app's continuous integration practice based on pipeline as code

On July 2, I invite you to TD Hero online press conference

美图炒币半年亏了3个亿,华为被曝在俄罗斯扩招,AlphaGo的同类又刷爆一种棋,今日更多大新闻在此...
随机推荐
[system design] index monitoring and alarm system
能源势动:电力行业的碳中和该如何实现?
To bring Euler's innovation to the world, SUSE should be the guide
[tips] get the x-axis and y-axis values of cdfplot function in MATLAB
Charm of code language
. Net delay queue
自动化规范检查软件如何发展而来?
QT timer realizes dynamic display of pictures
百度智能小程序巡檢調度方案演進之路
Uncover the practice of Baidu intelligent testing in the field of automatic test execution
How to use sqlcipher tool to decrypt encrypted database under Windows system
天龙八部TLBB系列 - 单体技能群伤
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
驱动制造业产业升级新思路的领域知识网络,什么来头?
Coordinate system of view
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
The king of pirated Dall · e? 50000 images per day, crowded hugging face server, and openai ordered to change its name
盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
【OpenCV 例程200篇】219. 添加数字水印(盲水印)
Using directive in angualr2 to realize that the picture size changes with the window size