zblogphp面包屑导航代码

zblogphp面包屑导航代码编写

{if $type == 'index'}
	网站改版调试中!
{elseif $type == 'category'}
	 首页
	{php}
		$html='';
		function navcate($id){
			global $html;
			$cate = new Category;
			$cate->LoadInfoByID($id);
			$html ='»  ' .$cate->Name. ' '.$html;
			if(($cate->ParentID)>0){navcate($cate->ParentID);}
		}
		navcate($category->ID);
		global $html;
		echo $html;
	{/php}
{elseif $type =="article"}	
	  首页	
	 {php}
		$html='';
		function navcate($id){
			global $html;
			$cate = new Category;
			$cate->LoadInfoByID($id);
			$html ='»  ' .$cate->Name. ' '.$html;
			if(($cate->ParentID)>0){navcate($cate->ParentID);}
		}
		navcate($article->Category->ID);
		global $html;
		echo $html;
   {/php} » 正文
{elseif $type =="page"}
	  首页
	 » 正文 
{elseif $type =="tag"}
	  首页
	 »
	 标签存档:{$tag.Name}
{elseif $type =="author"}
	   首页
	  »
	 {$author.Name} 的文章
{/if}

 

你可能感兴趣的:(网站建设)