diff --git a/local/templates/.default/components/bitrix/breadcrumb/breadcrumbs/template.php b/local/templates/.default/components/bitrix/breadcrumb/breadcrumbs/template.php index 03f024a..82f1ea5 100644 --- a/local/templates/.default/components/bitrix/breadcrumb/breadcrumbs/template.php +++ b/local/templates/.default/components/bitrix/breadcrumb/breadcrumbs/template.php @@ -6,6 +6,7 @@ if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); */ global $APPLICATION; +global $sotbitSeoMetaBreadcrumbTitle; //delayed function must return a string if(empty($arResult)) @@ -19,7 +20,12 @@ $itemSize = count($arResult); for($index = 0; $index < $itemSize; $index++) { - $title = htmlspecialcharsex($arResult[$index]["TITLE"]); + if ($sotbitSeoMetaBreadcrumbTitle) { + $title = $sotbitSeoMetaBreadcrumbTitle; // вывели "Название страницы в хлебных крошках" из Сотбит + }else{ + $title = htmlspecialcharsex($arResult[$index]["TITLE"]); + } + if (mb_strtoupper($title) === "ГЛАВНАЯ СТРАНИЦА") { $title = "Главная"; @@ -39,7 +45,7 @@ for($index = 0; $index < $itemSize; $index++) { $strReturn .= ' '; } }