zblog的面包屑路径怎么调用
文章页调用面包屑
当前位置:<ahref="{$host}">首页</a>
{php}
$html='';
functionnavcate($id){
global$html;
$cate=newCategory;
$cate->LoadInfoByID($id);
$html='>><ahref="'.$cate->Url.'"title="查看'.$cate->Name.'中的全部文章">'.$cate->Name.'</a>'.$html;
if(($cate->ParentID)>0){navcate($cate->ParentID);}
}
navcate($article->Category->ID);
global$html;
echo$html;
{/php}分类页调用面包屑
当前位置:<ahref="{$host}">首页</a>
{php}
$html='';
functionnavcate($id){
global$html;
$cate=newCategory;
$cate->LoadInfoByID($id);
$html='>><ahref="'.$cate->Url.'"title="查看'.$cate->Name.'中的全部文章">'.$cate->Name.'</a>'.$html;
if(($cate->ParentID)>0){navcate($cate->ParentID);}
}
navcate($category->ID);
global$html;
echo$html;
{/php}通用面包屑路径
当前位置:<ahref="{$host}">首页</a>
{php}
$html='';
functionnavcate($id){
global$html;
$cate=newCategory;
$cate->LoadInfoByID($id);
$html='>><ahref="'.$cate->Url.'"title="查看'.$cate->Name.'中的全部文章">'.$cate->Name.'</a>'.$html;
if(($cate->ParentID)>0){navcate($cate->ParentID);}
}
if($type=='category'){
navcate($category->ID);}
elseif($type=='article'){
navcate($article->Category->ID);
}
global$html;
echo$html;
{/php}
{if$type!='category'&&$type!='index'}
>>{$title}
{/if}



