当前位置:网站首页>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}
边栏推荐
- Comparison of batch merge between Oracle and MySQL
- 把欧拉的创新带向世界 SUSE 要做那个引路人
- 能源势动:电力行业的碳中和该如何实现?
- 90%的人都不懂的泛型,泛型的缺陷和应用场景
- QT event filter simple case
- 善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
- 美图炒币半年亏了3个亿,华为被曝在俄罗斯扩招,AlphaGo的同类又刷爆一种棋,今日更多大新闻在此...
- Optimize database queries using the cursor object of SQLite
- How to use sqlcipher tool to decrypt encrypted database under Windows system
- Apache DolphinScheduler 系统架构设计
猜你喜欢
TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
Is it really reliable for AI to make complex decisions for enterprises? Participate in the live broadcast, Dr. Stanford to share his choice | qubit · viewpoint
高级 OpenCV:BGR 像素强度图
Cent7 Oracle database installation error
Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
Understand the window query function of tdengine in one article
MySQL字符类型学习笔记
Viewpager pageradapter notifydatasetchanged invalid problem
【 conseils 】 obtenir les valeurs des axes X et y de la fonction cdfplot dans MATLAB
随机推荐
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
Data visualization platform based on template configuration
Meitu lost 300 million yuan in currency speculation for half a year. Huawei was exposed to expand its enrollment in Russia. Alphago's peers have made another breakthrough in chess. Today, more big new
tongweb设置gzip
QT VT100 parser
Apache DolphinScheduler 入门(一篇就够了)
Using directive in angualr2 to realize that the picture size changes with the window size
Matrix processing practice
Is it really reliable for AI to make complex decisions for enterprises? Participate in the live broadcast, Dr. Stanford to share his choice | qubit · viewpoint
Understand the window query function of tdengine in one article
B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条...
Uncover the practice of Baidu intelligent testing in the field of automatic test execution
Solve the problem of no all pattern found during Navicat activation and registration
Why don't you recommend using products like mongodb to replace time series databases?
一种用于干式脑电图的高密度256通道电极帽
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
Apache dolphin scheduler system architecture design
How to correctly evaluate video image quality
Android SQLite database encryption