From e7224e32af12aab158d8b2ef567e747c87549b6c Mon Sep 17 00:00:00 2001 From: merelendor Date: Thu, 24 Nov 2022 16:49:51 +0300 Subject: [PATCH] after SEO release updates, remove JS determination on mobile of active section --- local/ilsa_update.php | 8 ++------ .../components/bitrix/menu/evolution/template.php | 14 ++++++++++++-- local/templates/evolution/css/header/style.css | 2 +- local/templates/evolution/css/header/style.less | 2 +- local/templates/evolution/js/main.js | 6 +++--- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/local/ilsa_update.php b/local/ilsa_update.php index ef79316..8dfcc41 100644 --- a/local/ilsa_update.php +++ b/local/ilsa_update.php @@ -11,10 +11,6 @@ $_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__, 1); require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'); CModule::IncludeModule('iblock'); -print "\n\n"; -print $_SERVER['DOCUMENT_ROOT']; -print "\n\n"; - $arrContextOptions = [ "ssl" => [ "verify_peer"=>false, @@ -427,7 +423,7 @@ foreach($json AS $car) //"ID" $car_existed = null; - $car_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => 1, "PROPERTY_UID" => $car['uid'] ], false, ["nPageSize" => 1], [] ); + $car_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, "PROPERTY_UID" => $car['uid'] ], false, ["nPageSize" => 1], [] ); while($car_search_ob = $car_search_res->GetNextElement()) { @@ -438,7 +434,7 @@ foreach($json AS $car) if($car_existed !== null) { - CIBlockElement::SetPropertyValuesEx($model_existed['ID'], IBLOCK_ID_MODELS, array_merge($car_update_payload, $PROPERTY_VALUES), []); + CIBlockElement::SetPropertyValuesEx($car_existed['ID'], IBLOCK_ID_CATALOG_CARS_NEW, array_merge($car_update_payload, $PROPERTY_VALUES), []); } else { diff --git a/local/templates/.default/components/bitrix/menu/evolution/template.php b/local/templates/.default/components/bitrix/menu/evolution/template.php index fcb87dc..682ee3c 100644 --- a/local/templates/.default/components/bitrix/menu/evolution/template.php +++ b/local/templates/.default/components/bitrix/menu/evolution/template.php @@ -14,9 +14,19 @@ -