From b1501931534168c1819fadbdd3782cc5134eb8d6 Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 24 Jun 2025 00:36:26 +0300 Subject: [PATCH] =?UTF-8?q?Maks=20|=20=D0=B2=D1=8B=D0=B2=D0=B5=D0=BB=20?= =?UTF-8?q?=D0=B2=20=D1=85=D0=BB=D0=B5=D0=B1=D0=BD=D1=8B=D0=B5=20=D0=BA?= =?UTF-8?q?=D1=80=D0=BE=D1=88=D0=BA=D0=B8=20=D0=BF=D0=BE=D0=BB=D0=B5=20?= =?UTF-8?q?=D0=BE=D1=82=20=D0=A1=D0=BE=D1=82=D0=B1=D0=B8=D1=82=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BF=D0=BE=D1=81=D0=B0=D0=B4=D0=BE=D1=87=D0=BD?= =?UTF-8?q?=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bitrix/breadcrumb/breadcrumbs/template.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 .= ' '; } }