Тут
/apps/system/lib/sitebill.php
/**
* Get category breadcrumbs
* @param array $params
* @param array $category_structure
* @param string $url
* @return string
*/
function get_category_breadcrumbs( $params, $category_structure, $url = '' ) {
$rs = '';
if ( !isset($params['topic_id']) || is_array($params['topic_id']) ) {
return $rs;
}
if((int)$params['topic_id']==0){
return $rs;
}
if(!isset($category_structure['catalog'][$params['topic_id']])){
return $rs;
}
//foreach ( $category_structure['childs'][0] as $item_id => $catalog_id ) {
if($category_structure['catalog'][$params['topic_id']]['url']!=''){
$ra[] = '<a href="'.rtrim($url,'/').'/'.$category_structure['catalog'][$params['topic_id']]['url'].'">'.$category_structure['catalog'][$params['topic_id']]['name'].'</a>';
}else{
$ra[] = '<a href="'.rtrim($url,'/').'/topic'.$params['topic_id'].'.html">'.$category_structure['catalog'][$params['topic_id']]['name'].'</a>';
}
$parent_category_id = $category_structure['catalog'][$params['topic_id']]['parent_id'];
while ( $category_structure['catalog'][$parent_category_id]['parent_id'] != 0 ) {
if ( $j++ > 100 ) {
return;
}
if($category_structure['catalog'][$parent_category_id]['url']!=''){
$ra[] = '<a href="'.rtrim($url,'/').'/'.$category_structure['catalog'][$parent_category_id]['url'].'">'.$category_structure['catalog'][$parent_category_id]['name'].'</a>';
}else{
$ra[] = '<a href="'.rtrim($url,'/').'/topic'.$parent_category_id.'.html">'.$category_structure['catalog'][$parent_category_id]['name'].'</a>';
}
$parent_category_id = $category_structure['catalog'][$parent_category_id]['parent_id'];
}
if ( $category_structure['catalog'][$parent_category_id]['name'] != '' ) {
if($category_structure['catalog'][$parent_category_id]['url']!=''){
$ra[] = '<a href="'.rtrim($url,'/').'/'.$category_structure['catalog'][$parent_category_id]['url'].'">'.$category_structure['catalog'][$parent_category_id]['name'].'</a>';
}else{
$ra[] = '<a href="'.rtrim($url,'/').'/topic'.$parent_category_id.'.html">'.$category_structure['catalog'][$parent_category_id]['name'].'</a>';
}
}
if(Multilanguage::is_set('LT_BC_HOME', '_template')){
$ra[]='<a href="'.SITEBILL_MAIN_URL.'/">'.Multilanguage::_('LT_BC_HOME', '_template').'</a>';
}else{
$ra[]='<a href="'.SITEBILL_MAIN_URL.'/">'.Multilanguage::_('L_HOME').'</a>';
}
//$ra[]='<a href="'.SITEBILL_MAIN_URL.'/">'.Multilanguage::_('L_HOME').'</a>';
$rs = implode(' / ', array_reverse($ra));
return $rs;
}