+
+ $APPLICATION->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 '