Как вот этот шаблон:
<div class="bc_breadcrumbs">
<ul>
<li><a href="">Каталог</a></li>
<li><a href="">Мебель</a></li>
<li><a href="">Выставки и события</a></li>
</ul>
<div class="clearboth"></div>
</div>
интегрировать в дефолтный шаблон:
<?php
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/**
* @global CMain $APPLICATION
*/
global $APPLICATION;
//delayed function must return a string
if(empty($arResult))
return "";
$strReturn = '';
//we can't use $APPLICATION->SetAdditionalCSS() here because we are inside the buffered function GetNavChain()
$css = $APPLICATION->GetCSSArray();
if(!is_array($css) || !in_array("/bitrix/css/main/font-awesome.css", $css))
{
$strReturn .= '<link href="'.CUtil::GetAdditionalFileURL("/bitrix/css/main/font-awesome.css").'" type="text/css" rel="stylesheet" />'."\n";
}
$strReturn .= '<div class="bx-breadcrumb" itemprop="http://schema.org/breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">';
$itemSize = count($arResult);
for($index = 0; $index < $itemSize; $index++)
{
$title = htmlspecialcharsex($arResult[$index]["TITLE"]);
$arrow = ($index > 0? '<i class="fa fa-angle-right"></i>' : '');
if($arResult[$index]["LINK"] <> "" && $index != $itemSize-1)
{
$strReturn .= '
<div class="bx-breadcrumb-item" id="bx_breadcrumb_'.$index.'" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
'.$arrow.'
<a href="'.$arResult[$index]["LINK"].'" title="'.$title.'" itemprop="url">
<span itemprop="name">'.$title.'</span>
</a>
<meta itemprop="position" content="'.($index + 1).'" />
</div>';
}
else
{
$strReturn .= '
<div class="bx-breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
'.$arrow.'
<span itemprop="name">'.$title.'</span>
<meta itemprop="position" content="'.($index + 1).'" />
</div>';
}
}
$strReturn .= '<div style="clear:both"></div></div>';
return $strReturn;
Спасибо.