special offers return horizontal scroll, programs filter full, add CSS for autofaq

This commit is contained in:
merelendor 2024-02-28 18:44:50 +03:00
parent e384bfb08f
commit 919cf67810
11 changed files with 6570 additions and 159 deletions

View File

@ -127,6 +127,10 @@ function checkRecaptchaRequest($token, $ipAddress)
function getCompaniesForUser($user_id, $except_company_id = null)
{
/*
ищет все компании для пользователя, с фильтрацией по ID компании
*/
if(CModule::IncludeModule('iblock'))
{
$filter = [ 'IBLOCK_ID' => IBLOCK_ID_CLIENTS, 'PROPERTY_USERS' => $user_id ];
@ -211,6 +215,20 @@ function getUsersForCompany($code)
function setCompanyForUser($ID, $REQ, $replace = false)
{
/*
МЕТОД:
1. пытается создать новую запись о компании;
2. ???
как надо:
1. пытается создать новую запись о компании;
2. в зависимости от статуса компании:
2.1. если компании нет:
2.1.1. добавляет во вновь созданную компанию пользователя как пользователя и как админа;
2.2 если компания есть:
2.2.1.
*/
$user_properties = [
'COMPANY' => (string)$REQ['org_title'],
'INN' => (string)$REQ['inn'],
@ -233,9 +251,20 @@ function setCompanyForUser($ID, $REQ, $replace = false)
$new_client = new CIBlockElement;
if($new_client_id = $new_client->Add($ar_new_client))
{
/*
при успешном создании новой компании админ и пользователь добавились автоматом
*/
/*
завершили создание компании, возврат
*/
}
else
{
/*
получаем текущих админов и пользователей в этой компании
*/
$existed_client_res = CIBlockElement::GetList([ 'id' => 'desc' ], [ 'IBLOCK_ID' => IBLOCK_ID_CLIENTS, 'CODE' => $REQ['crm_id'] ], false, []);
while ($existed_client_element = $existed_client_res->GetNextElement())
{
@ -244,17 +273,33 @@ function setCompanyForUser($ID, $REQ, $replace = false)
if($replace)
{
/*
пустые массивы для замены админов и пользователей в этой компании
*/
$admins = [];
$users = [];
/*
помечаем админов на удаление из этой компании
*/
$admins_to_remove = $existed_client_record['PROPERTIES']['ADMINS']['VALUE'];
}
else
{
/*
админы и пользователи в этой компании
*/
$admins = $existed_client_record['PROPERTIES']['ADMINS']['VALUE'];
$users = $existed_client_record['PROPERTIES']['USERS']['VALUE'];
}
/*
добавляем пользователя в админы и пользователи в этой компании
*/
array_push($admins, $ID);
array_push($users, $ID);
@ -268,12 +313,22 @@ function setCompanyForUser($ID, $REQ, $replace = false)
]
];
/*
обновляем запись о компании
*/
CIBlockElement::SetPropertyValuesEx($existed_client_record['ID'], IBLOCK_ID_CLIENTS, [ 'ADMINS' => $admins, 'USERS' => $users, ]);
/*
проходим по списку админов для удаления
*/
foreach($admins_to_remove AS $admin_to_remove_id)
{
$another_user_companies = getCompaniesForUser($admin_to_remove_id, $existed_client_record['ID']);
/*
проверяем, если у указанного админа (пользователя) более нет компании то удаляем запись о пользователе
*/
if(gettype($another_user_companies) === "array" && count($another_user_companies) === 0)
{
\CUser::Delete($admin_to_remove_id);
@ -414,6 +469,10 @@ switch($PARAM_1)
if($company_registered_id === null)
{
//new company for user
/*
создаём запись о компании для пользователя
*/
setCompanyForUser($user_registered_id, $REQ);
$company_message = "Вам предоставлен доступ к Личному кабинету следующей организации:<br><br>\n\n";
@ -499,6 +558,10 @@ switch($PARAM_1)
}
else
{
/*
пользователя нет, создаём
*/
if($company_registered_id === null)
{
$user = new \CUser;

View File

@ -21,6 +21,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
{
$arResult = array();
$sort = Array("NAME" => "ASC");
// if($arParams['CODE'] ===)
$filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => 3, "CODE" => $arParams['CODE']);
$options = Array("nPageSize" => 1000);

View File

@ -53,7 +53,7 @@ $this->setFrameMode(true);
"leasing_program" => $arResult['PROPERTIES']['CATALOG']['VALUE_XML_ID'],
//"section_code" => $arResult['DETAIL_PAGE_URL'],
"top_banners" => false,
"FILTER_SMALL" => true,
"FILTER_SMALL" => false,
"BRAND" => $_REQUEST['BRAND'],
"MODEL" => $_REQUEST['MODEL'],
"MODIFICATION" => $_REQUEST['MODIFICATION'],

View File

@ -12,7 +12,7 @@
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div id="special_slider" style="overflow-x: clip;">
<div id="special_slider" <?php /* style="overflow-x: clip;" */ ?>>
<div class="special_list swiped" style="<?= isset($_GET['advertise']) ? "flex-wrap: wrap;" : "" ?>">
<? foreach($arResult['BANNERS'] AS $banner): ?>
<div class="special_item" id="program_special_offers_banner_<?= $banner['ID']; ?>">

View File

@ -85,7 +85,16 @@
<script src="/local/templates/evolution/js/embla-carousel.umd.min.js"></script>
<script src="/local/templates/evolution/js/rangeslider.min.js"></script>
<script src="/local/templates/evolution/js/main.js"></script>
<? if(AUTOFAQ_AI_ENABLED): ?>
<script
data-widget-host="https://chat.autofaq.ai"
data-widget-service-id="<?= AUTOFAQ_AI_SERVICE_ID; ?>"
data-widget-channel-id="<?= AUTOFAQ_AI_CHANNEL_ID; ?>"
data-widget-style-params='{ "headerBackgroundColor": "#1c01a9", "messageToWidgetBackgroundColor":"#3d21f8"}'
data-widget-operator-name="true"
src="https://chat.autofaq.ai/widget/static/js/main.js"
id="autofaqWidget"></script>
<? endif; ?>
<?
$APPLICATION->IncludeComponent(
"evolution:mainoffice.markup",

View File

@ -24,6 +24,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap" rel="stylesheet">
<link href="https://chat.autofaq.ai/widget/static/css/main.css" rel="stylesheet">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

File diff suppressed because one or more lines are too long

View File

@ -4841,6 +4841,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
flex-wrap: wrap;
position: relative;
min-height: 100px;
min-height: 195px;
margin-bottom: 177px;
@media all and (max-width: 1000px) {
@ -5056,7 +5057,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
left: -8px;
z-index: 1;
pointer-events: none;
height: 204px;
height: 205px;
background: url("/images/about/bottom-2.png") no-repeat bottom left #fff;
background-size: 100% auto;
@ -6736,4 +6737,71 @@ main .dropdown_blocks_list .dropdown_block .block_body {
[data-sm-order="10"] {
order: 10;
}
}
}
#chat21-launcher-button circle {
fill: #1c01a9 !important;
}
#chat21-launcher-button {
bottom: -5px !important;
}
@media screen and (max-width: 1279px) {
#chat21-launcher-button {
bottom: 69px !important;
}
}
// Виджет AutoFaq
.chat-21-channel-qr {
border-radius: 0px !important;
}
.chat21-sheet {
border-radius: 15px !important;
font-family: 'Montserrat', sans-serif !important;
}
.chat-21-channel-invite-button {
border-radius: 0px !important;
font-family: 'Montserrat', sans-serif !important;
}
.chat21-sheet-header{
box-shadow: none !important;
webkit-box-shadow: none !important;
}
.chat21-sheet-header-title {
font-family: 'Montserrat', sans-serif !important;
}
#chat21-launcher-button image {
display:none !important;
}
.chat-21-channels-list-item {
box-shadow: none !important;
webkit-box-shadow: none !important;
}
// Ниже этой линии фикс ширины для публичной части
#chat21-launcher-button circle {
fill: #1c01a9 !important;
}
#chat21-launcher-button
{
bottom: -5px !important;
margin-right: -10px !important;
}
@media screen and (max-width: 1279px) {
#chat21-launcher-button {
bottom: 69px !important;
margin-right: -10px !important;
}
}
.chat21-window.chat21-sheet {
width: 376px !important;
}
// Закончили упражнение с виджетом AutoFaq

View File

@ -682,6 +682,9 @@ section[data-page] + #order .container {
border: 0;
}
}
section[data-page][data-page="leasing_special"] {
overflow-x: clip;
}
section[data-page][data-page="programs"] .container:before {
content: "";
display: block;

View File

@ -657,6 +657,10 @@ section[data-page] {
}
}
&[data-page="leasing_special"] {
overflow-x: clip;
}
&[data-page="programs"] {
.container {

View File

@ -1,6 +1,6 @@
<?php
$arUrlRewrite=array (
0 =>
array (
'CONDITION' => '#^/api/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+)/\\??.*$#',
'RULE' => 'PARAM_1=$1&PARAM_2=$2&PARAM_3=$3',
@ -8,7 +8,7 @@ $arUrlRewrite=array (
'PATH' => '/api/index.php',
'SORT' => 1,
),
1 =>
array (
'CONDITION' => '#^/api/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+)/\\??.*$#',
'RULE' => 'PARAM_1=$1&PARAM_2=$2&PARAM_3=$3',
@ -16,7 +16,7 @@ $arUrlRewrite=array (
'PATH' => '/api/index.php',
'SORT' => 2,
),
2 =>
array (
'CONDITION' => '#^/api/([A-Za-z0-9]+)/([A-Za-z0-9]+)/\\??.*$#',
'RULE' => 'PARAM_1=$1&PARAM_2=$2',
@ -24,7 +24,7 @@ $arUrlRewrite=array (
'PATH' => '/api/index.php',
'SORT' => 3,
),
3 =>
array (
'CONDITION' => '#^/api/([A-Za-z0-9]+)/\\??.*$#',
'RULE' => 'PARAM_1=$1',
@ -32,7 +32,7 @@ $arUrlRewrite=array (
'PATH' => '/api/index.php',
'SORT' => 4,
),
4 =>
array (
'CONDITION' => '#^/programs/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'PROGRAM=$1&BRAND=$2&MODEL=$3&PAGEN_1=$4',
@ -40,7 +40,7 @@ $arUrlRewrite=array (
'PATH' => '/programs/entry.php',
'SORT' => 5,
),
5 =>
array (
'CONDITION' => '#^/programs/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'PROGRAM=$1&BRAND=$2&PAGEN_1=$3',
@ -48,7 +48,7 @@ $arUrlRewrite=array (
'PATH' => '/programs/entry.php',
'SORT' => 6,
),
6 =>
array (
'CONDITION' => '#^/programs/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'PROGRAM=$1&PAGEN_1=$2',
@ -56,7 +56,7 @@ $arUrlRewrite=array (
'PATH' => '/programs/entry.php',
'SORT' => 7,
),
7 =>
array (
'CONDITION' => '#^/programs/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#',
'RULE' => 'PROGRAM=$1&BRAND=$2&MODEL=$3',
@ -64,7 +64,7 @@ $arUrlRewrite=array (
'PATH' => '/programs/entry.php',
'SORT' => 8,
),
8 =>
array (
'CONDITION' => '#^/programs/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#',
'RULE' => 'PROGRAM=$1&BRAND=$2',
@ -72,7 +72,7 @@ $arUrlRewrite=array (
'PATH' => '/programs/entry.php',
'SORT' => 9,
),
9 =>
array (
'CONDITION' => '#^/programs/([a-zA-Z0-9_-]+)/\\??.*$#',
'RULE' => 'PROGRAM=$1',
@ -80,23 +80,7 @@ $arUrlRewrite=array (
'PATH' => '/programs/entry.php',
'SORT' => 10,
),
array (
'CONDITION' => '#^/catalog/kuzov-([a-zA-Z0-9_-]+)/(|\?(.+))$#',
'RULE' => 'TYPE=body&BODY_SLUG=$1',
'ID' => '',
'PATH' => '/catalog/landing.php',
'SORT' => 11,
),
array (
'CONDITION' => '#^/catalog/dvigatel-([a-zA-Z0-9_-]+)/(|\?(.+))$#',
'RULE' => 'TYPE=engine_fuel&ENGINE_FUEL_SLUG=$1',
'ID' => '',
'PATH' => '/catalog/landing.php',
'SORT' => 11,
),
12 =>
array (
'CONDITION' => '#^/catalog/electric-car/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'ENGINE_FUEL=электричество&BRAND=$1&MODEL=$2&PAGEN_1=$3',
@ -104,49 +88,7 @@ $arUrlRewrite=array (
'PATH' => '/catalog/index.php',
'SORT' => 11,
),
array (
'CONDITION' => '#^/catalog/electric-car/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'ENGINE_FUEL=электричество&BRAND=$1&PAGEN_1=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 12,
),
array (
'CONDITION' => '#^/catalog/electric-car/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'ENGINE_FUEL=электричество&BRAND=$1&MODEL=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 13,
),
array (
'CONDITION' => '#^/catalog/electric-car/page-([0-9]+)/\\??.*$#',
'RULE' => 'ENGINE_FUEL=электричество&PAGEN_1=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 14,
),
array (
'CONDITION' => '#^/catalog/electric-car/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'ENGINE_FUEL=электричество&BRAND=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 15,
),
array (
'CONDITION' => '#^/catalog/electric-car/#',
'RULE' => 'ENGINE_FUEL=электричество',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 15,
),
18 =>
array (
'CONDITION' => '#^/catalog/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'BRAND=$1&MODEL=$2&PAGEN_1=$3',
@ -154,49 +96,7 @@ $arUrlRewrite=array (
'PATH' => '/catalog/index.php',
'SORT' => 11,
),
array (
'CONDITION' => '#^/catalog/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'BRAND=$1&PAGEN_1=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 12,
),
array (
'CONDITION' => '#^/catalog/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'BRAND=$1&MODEL=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 13,
),
array (
'CONDITION' => '#^/catalog/page-([0-9]+)/\\??.*$#',
'RULE' => 'PAGEN_1=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 14,
),
array (
'CONDITION' => '#^/catalog/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'BRAND=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 15,
),
array (
'CONDITION' => '#^/car/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'OFFER=$1',
'ID' => '',
'PATH' => '/catalog/position.php',
'SORT' => 16,
),
24 =>
array (
'CONDITION' => '#^/used/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'BRAND=$1&MODEL=$2&PAGEN_1=$3',
@ -204,7 +104,39 @@ $arUrlRewrite=array (
'PATH' => '/used/index.php',
'SORT' => 11,
),
11 =>
array (
'CONDITION' => '#^/catalog/dvigatel-([a-zA-Z0-9_-]+)/(|\\?(.+))$#',
'RULE' => 'TYPE=engine_fuel&ENGINE_FUEL_SLUG=$1',
'ID' => '',
'PATH' => '/catalog/landing.php',
'SORT' => 11,
),
10 =>
array (
'CONDITION' => '#^/catalog/kuzov-([a-zA-Z0-9_-]+)/(|\\?(.+))$#',
'RULE' => 'TYPE=body&BODY_SLUG=$1',
'ID' => '',
'PATH' => '/catalog/landing.php',
'SORT' => 11,
),
13 =>
array (
'CONDITION' => '#^/catalog/electric-car/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'ENGINE_FUEL=электричество&BRAND=$1&PAGEN_1=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 12,
),
19 =>
array (
'CONDITION' => '#^/catalog/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'BRAND=$1&PAGEN_1=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 12,
),
25 =>
array (
'CONDITION' => '#^/used/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'BRAND=$1&PAGEN_1=$2',
@ -212,7 +144,23 @@ $arUrlRewrite=array (
'PATH' => '/used/index.php',
'SORT' => 12,
),
14 =>
array (
'CONDITION' => '#^/catalog/electric-car/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'ENGINE_FUEL=электричество&BRAND=$1&MODEL=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 13,
),
20 =>
array (
'CONDITION' => '#^/catalog/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'BRAND=$1&MODEL=$2',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 13,
),
26 =>
array (
'CONDITION' => '#^/used/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'BRAND=$1&MODEL=$2',
@ -220,7 +168,23 @@ $arUrlRewrite=array (
'PATH' => '/used/index.php',
'SORT' => 13,
),
15 =>
array (
'CONDITION' => '#^/catalog/electric-car/page-([0-9]+)/\\??.*$#',
'RULE' => 'ENGINE_FUEL=электричество&PAGEN_1=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 14,
),
21 =>
array (
'CONDITION' => '#^/catalog/page-([0-9]+)/\\??.*$#',
'RULE' => 'PAGEN_1=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 14,
),
27 =>
array (
'CONDITION' => '#^/used/page-([0-9]+)/\\??.*$#',
'RULE' => 'PAGEN_1=$1',
@ -228,7 +192,23 @@ $arUrlRewrite=array (
'PATH' => '/used/index.php',
'SORT' => 14,
),
16 =>
array (
'CONDITION' => '#^/catalog/electric-car/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'ENGINE_FUEL=электричество&BRAND=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 15,
),
22 =>
array (
'CONDITION' => '#^/catalog/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'BRAND=$1',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 15,
),
28 =>
array (
'CONDITION' => '#^/used/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'BRAND=$1',
@ -236,7 +216,23 @@ $arUrlRewrite=array (
'PATH' => '/used/index.php',
'SORT' => 15,
),
17 =>
array (
'CONDITION' => '#^/catalog/electric-car/#',
'RULE' => 'ENGINE_FUEL=электричество',
'ID' => '',
'PATH' => '/catalog/index.php',
'SORT' => 15,
),
23 =>
array (
'CONDITION' => '#^/car/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'OFFER=$1',
'ID' => '',
'PATH' => '/catalog/position.php',
'SORT' => 16,
),
29 =>
array (
'CONDITION' => '#^/izt/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'OFFER=$1',
@ -244,9 +240,7 @@ $arUrlRewrite=array (
'PATH' => '/used/position.php',
'SORT' => 16,
),
30 =>
array (
'CONDITION' => '#^/about/career/page-([0-9]+)/\\??.*$#',
'RULE' => 'PAGEN_1=$1',
@ -254,7 +248,7 @@ $arUrlRewrite=array (
'PATH' => '/about/career/index.php',
'SORT' => 20,
),
31 =>
array (
'CONDITION' => '#^/about/career/vacancy-([0-9]+)/\\??.*$#',
'RULE' => 'ID=$1',
@ -262,7 +256,7 @@ $arUrlRewrite=array (
'PATH' => '/about/career/vacancy.php',
'SORT' => 21,
),
32 =>
array (
'CONDITION' => '#^/about/news/page-([0-9]+)/\\??.*$#',
'RULE' => 'PAGEN_1=$1',
@ -270,7 +264,7 @@ $arUrlRewrite=array (
'PATH' => '/about/news/index.php',
'SORT' => 30,
),
33 =>
array (
'CONDITION' => '#^/search/page-([0-9]+)/\\??.*$#',
'RULE' => 'PAGEN_1=$1',
@ -278,7 +272,7 @@ $arUrlRewrite=array (
'PATH' => '/search/index.php',
'SORT' => 30,
),
34 =>
array (
'CONDITION' => '#^/about/news/([a-zA-Z0-9_-]+)\\??.*$#',
'RULE' => 'CODE=$1',
@ -286,7 +280,7 @@ $arUrlRewrite=array (
'PATH' => '/about/news/detail.php',
'SORT' => 31,
),
35 =>
array (
'CONDITION' => '#^/services/([a-zA-Z0-9_-]+)/\\??.*$#',
'RULE' => 'CODE=$1',
@ -294,7 +288,7 @@ $arUrlRewrite=array (
'PATH' => '/services/entry.php',
'SORT' => 40,
),
36 =>
array (
'CONDITION' => '#^/special/([a-zA-Z0-9_-]+)/\\??.*$#',
'RULE' => 'OFFER=$1',
@ -302,7 +296,7 @@ $arUrlRewrite=array (
'PATH' => '/special/offer.php',
'SORT' => 50,
),
37 =>
array (
'CONDITION' => '#^/revocation/page-([0-9]+)/\\??.*$#',
'RULE' => 'PAGEN_1=$1',
@ -310,7 +304,7 @@ $arUrlRewrite=array (
'PATH' => '/about/revocation/index.php',
'SORT' => 60,
),
38 =>
array (
'CONDITION' => '#^/revocation/\\??.*$#',
'RULE' => '',
@ -318,7 +312,23 @@ $arUrlRewrite=array (
'PATH' => '/about/revocation/index.php',
'SORT' => 70,
),
41 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/dvigatel-([a-zA-Z0-9_-]+)/(|\\?(.+))$#',
'RULE' => 'TYPE=engine_fuel&REGION=$1&ENGINE_FUEL_SLUG=$2',
'ID' => '',
'PATH' => '/regions/landing.php',
'SORT' => 80,
),
40 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/kuzov-([a-zA-Z0-9_-]+)/(|\\?(.+))$#',
'RULE' => 'TYPE=body&REGION=$1&BODY_SLUG=$2',
'ID' => '',
'PATH' => '/regions/landing.php',
'SORT' => 80,
),
39 =>
array (
'CONDITION' => '#^/general-terms/\\??.*$#',
'RULE' => '',
@ -326,23 +336,7 @@ $arUrlRewrite=array (
'PATH' => '/about/rules/index.php',
'SORT' => 80,
),
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/kuzov-([a-zA-Z0-9_-]+)/(|\?(.+))$#',
'RULE' => 'TYPE=body&REGION=$1&BODY_SLUG=$2',
'ID' => '',
'PATH' => '/regions/landing.php',
'SORT' => 80,
),
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/dvigatel-([a-zA-Z0-9_-]+)/(|\?(.+))$#',
'RULE' => 'TYPE=engine_fuel&REGION=$1&ENGINE_FUEL_SLUG=$2',
'ID' => '',
'PATH' => '/regions/landing.php',
'SORT' => 80,
),
42 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'REGION=$1&BRAND=$2&MODEL=$3&PAGEN_1=$4',
@ -350,7 +344,7 @@ $arUrlRewrite=array (
'PATH' => '/regions/region.php',
'SORT' => 81,
),
43 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'REGION=$1&BRAND=$2&MODEL=$3',
@ -358,7 +352,7 @@ $arUrlRewrite=array (
'PATH' => '/regions/region.php',
'SORT' => 82,
),
44 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'REGION=$1&BRAND=$2&PAGEN_1=$3',
@ -366,7 +360,7 @@ $arUrlRewrite=array (
'PATH' => '/regions/region.php',
'SORT' => 83,
),
45 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#',
'RULE' => 'REGION=$1&BRAND=$2',
@ -374,7 +368,7 @@ $arUrlRewrite=array (
'PATH' => '/regions/region.php',
'SORT' => 84,
),
46 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'REGION=$1',
@ -382,7 +376,7 @@ $arUrlRewrite=array (
'PATH' => '/regions/region.php',
'SORT' => 85,
),
47 =>
array (
'CONDITION' => '#^\\/?\\/mobileapp/jn\\/(.*)\\/.*#',
'RULE' => 'componentName=$1',
@ -390,7 +384,7 @@ $arUrlRewrite=array (
'PATH' => '/bitrix/services/mobileapp/jn.php',
'SORT' => 90,
),
48 =>
array (
'CONDITION' => '#^/rest/#',
'RULE' => '',