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 = [];