after SEO release updates, remove JS determination on mobile of active section
This commit is contained in:
parent
92110cef4e
commit
e7224e32af
@ -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
|
||||
{
|
||||
|
||||
@ -14,9 +14,19 @@
|
||||
<button type="submit" class="button button-blue">Поиск</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
<button class="nav_toggle"></button>
|
||||
<?
|
||||
$selected = "Главная";
|
||||
foreach($arResult as $arItem)
|
||||
{
|
||||
if($arItem["SELECTED"])
|
||||
{
|
||||
$selected = $arItem['TEXT'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<button class="nav_toggle"><?= $selected; ?></button>
|
||||
<ul id="menu_list">
|
||||
<li>
|
||||
<form action="/search/">
|
||||
|
||||
@ -260,7 +260,7 @@ header .lk {
|
||||
bottom: 0;
|
||||
background: #fff;
|
||||
padding: 15px 20px;
|
||||
top: 84px;
|
||||
top: 114px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
header .header_menu nav ul li:not(:last-child) {
|
||||
|
||||
@ -309,7 +309,7 @@ header {
|
||||
bottom: 0;
|
||||
background: #fff;
|
||||
padding: 15px 20px;
|
||||
top: 84px;
|
||||
top: 114px;
|
||||
overflow-y: auto;
|
||||
|
||||
li:not(:last-child) {
|
||||
|
||||
@ -7,9 +7,9 @@ $('a[href*="#order"]').each(function() {
|
||||
})
|
||||
});
|
||||
|
||||
let activeMenuLink = $("header #menu_list li.active").length > 0 ? $("header #menu_list li.active a").text() : "Главная";
|
||||
console.log($("header #menu_list li.active"));
|
||||
$("header .nav_toggle").text(activeMenuLink);
|
||||
//let activeMenuLink = $("header #menu_list li.active").length > 0 ? $("header #menu_list li.active a").text() : "Главная";
|
||||
//console.log($("header #menu_list li.active"));
|
||||
//$("header .nav_toggle").text(activeMenuLink);
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
// Main menu toggle
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user