From f248a44134371ff4b141a64125ce46bf52827a4a Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 24 Jun 2025 03:21:28 +0300 Subject: [PATCH] =?UTF-8?q?Maks=20|=20wip:=20=D1=81=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D0=BB=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B4=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20HTML-=D0=BA?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D1=8B,=20=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=BD?= =?UTF-8?q?=D1=8F=D1=82=D0=BD=D0=BE=20=D1=87=D1=82=D0=BE=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=89=D0=B5=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D1=81=D0=B0=D0=B9=D1=82=D0=BC?= =?UTF-8?q?=D0=B0=D0=BF=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20=D0=A1=D0=BE?= =?UTF-8?q?=D1=82=D0=B1=D0=B8=D1=82=20=D0=BF=D0=BE=D0=B4=20=D0=B2=D1=81?= =?UTF-8?q?=D0=B5=20=20=D0=BA=D0=BE=D0=BC=D0=B1=D0=B8=D0=BD=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html-map/index.php | 20 +++++++++++++++++++ local/components/era/html.map/class.php | 26 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 html-map/index.php diff --git a/html-map/index.php b/html-map/index.php new file mode 100644 index 0000000..a220532 --- /dev/null +++ b/html-map/index.php @@ -0,0 +1,20 @@ +SetTitle("Расчет септика"); +?> + +
+
+ IncludeComponent( + "era:html.map", + "", + Array( + // "IBLOCK_ID" => "4", // ID инфоблока с товарами + // "CACHE_TYPE" => "A", + // "CACHE_TIME" => "3600" + ) + );?> +
+
+ + \ No newline at end of file diff --git a/local/components/era/html.map/class.php b/local/components/era/html.map/class.php index 9c30bcc..70faf42 100644 --- a/local/components/era/html.map/class.php +++ b/local/components/era/html.map/class.php @@ -4,6 +4,9 @@ if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); use Bitrix\Main\Loader; use Bitrix\Iblock\SectionTable; use Bitrix\Iblock\ElementTable; +use Sotbit\Seometa\SeoMetaTable; + + class HtmlMapComponent extends CBitrixComponent { @@ -14,8 +17,31 @@ class HtmlMapComponent extends CBitrixComponent $this->includeComponentTemplate(); } + private $arSotbitPages = []; + + private function SotbitSeoPages(){ + + if (Loader::includeModule('sotbit.seometa')) { + $rsSeoPages = SeoMetaTable::getList([ + 'filter' => ['ACTIVE' => 'Y'], + 'select' => ['ID', 'NAME', 'FILTER_CONDITION', 'NEW_URL', 'REAL_URL'] + ]); + + + while ($arSeoPage = $rsSeoPages->fetch()) { + // $arSeoPages[] = $arSeoPage; + $this->arSotbitPages[] = $arSeoPage; + } + } + + // $this->arSotbitPages[] = $arSeoPages; + } private function getSiteTree() { + echo '
';
+        print_r($this->arSotbitPages);
+        echo '
'; + die(); // TODO: Реализовать сбор структуры сайта, разделов, фильтров // Пример: получить разделы каталога $tree = [];