当前位置:网站首页>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 writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
- Kotlin compose and native nesting
- Six simple cases of QT
- Solve liquibase – waiting for changelog lock Cause database deadlock
- Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
- Advanced opencv:bgr pixel intensity map
- [C language] the use of dynamic memory development "malloc"
- QT timer realizes dynamic display of pictures
- Uncover the practice of Baidu intelligent testing in the field of automatic test execution
猜你喜欢
【系统设计】指标监控和告警系统
Kotlin Compose 多个条目滚动
.Net之延迟队列
Baidu app's continuous integration practice based on pipeline as code
Wechat applet - simple diet recommendation (4)
Officially launched! Tdengine plug-in enters the official website of grafana
H. 265 introduction to coding principles
Swift tableview style (I) system basic
[C language] the use of dynamic memory development "malloc"
The comparison of every() and some() in JS uses a power storage plan
随机推荐
A high density 256 channel electrode cap for dry EEG
On July 2, I invite you to TD Hero online press conference
【 conseils 】 obtenir les valeurs des axes X et y de la fonction cdfplot dans MATLAB
How to use sqlcipher tool to decrypt encrypted database under Windows system
为什么不建议你用 MongoDB 这类产品替代时序数据库?
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
基于单片机步进电机控制器设计(正转反转指示灯挡位)
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
Unity particle special effects series - the poison spray preform is ready, and the unitypackage package can be used directly - next
Cut off 20% of Imagenet data volume, and the performance of the model will not decline! Meta Stanford et al. Proposed a new method, using knowledge distillation to slim down the data set
Evolution of Baidu intelligent applet patrol scheduling scheme
tongweb设置gzip
Unity particle special effects series - the poison spray preform is ready, and the unitypackage package is directly used - on
QT realizes signal transmission and reception between two windows
Oracle combines multiple rows of data into one row of data
TypeError: Cannot read properties of undefined (reading ‘cancelToken‘)
能源势动:电力行业的碳中和该如何实现?
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
Theme. AppCompat. Light. Darkactionbar not found