当前位置:网站首页>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 ='&raquo;  <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 ='&raquo;  <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} &raquo;  Text 
{elseif $type =="page"}
	 <i class="fa fa-home"></i> <a href="{$host}" title="{$name}"> home page </a>
	 &raquo;  Text  
{elseif $type =="tag"}
	 <i class="fa fa-home"></i> <a href="{$host}" title="{$name}"> home page </a>
	 &raquo;
	 <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>
	  &raquo;
	 <span class="current">{$author.Name}  The article </span>
{/if}

 

原网站

版权声明
本文为[A poor webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140534389665.html

随机推荐