|
|
@ -6,6 +6,7 @@ if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
global $APPLICATION; |
|
|
|
global $APPLICATION; |
|
|
|
|
|
|
|
global $sotbitSeoMetaBreadcrumbTitle; |
|
|
|
|
|
|
|
|
|
|
|
//delayed function must return a string |
|
|
|
//delayed function must return a string |
|
|
|
if(empty($arResult)) |
|
|
|
if(empty($arResult)) |
|
|
@ -19,7 +20,12 @@ $itemSize = count($arResult); |
|
|
|
|
|
|
|
|
|
|
|
for($index = 0; $index < $itemSize; $index++) |
|
|
|
for($index = 0; $index < $itemSize; $index++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if ($sotbitSeoMetaBreadcrumbTitle) { |
|
|
|
|
|
|
|
$title = $sotbitSeoMetaBreadcrumbTitle; // вывели "Название страницы в хлебных крошках" из Сотбит |
|
|
|
|
|
|
|
}else{ |
|
|
|
$title = htmlspecialcharsex($arResult[$index]["TITLE"]); |
|
|
|
$title = htmlspecialcharsex($arResult[$index]["TITLE"]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mb_strtoupper($title) === "ГЛАВНАЯ СТРАНИЦА") { |
|
|
|
if (mb_strtoupper($title) === "ГЛАВНАЯ СТРАНИЦА") { |
|
|
|
$title = "Главная"; |
|
|
|
$title = "Главная"; |
|
|
|