diff --git a/about/additional/index.php b/about/additional/index.php index 5763d7b..6c79370 100644 --- a/about/additional/index.php +++ b/about/additional/index.php @@ -9,9 +9,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга - Реквизи Array() ); ?> -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/about/contacts/index.php b/about/contacts/index.php index 6a3eeba..c8febcc 100644 --- a/about/contacts/index.php +++ b/about/contacts/index.php @@ -18,9 +18,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Контакт Array() ); ?> -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/about/index.php b/about/index.php index 35736dc..884f50a 100644 --- a/about/index.php +++ b/about/index.php @@ -83,7 +83,10 @@ $APPLICATION->AddHeadString(' "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/about/investoram/cfa/index.php b/about/investoram/cfa/index.php index 1f0ac43..f8e5f38 100644 --- a/about/investoram/cfa/index.php +++ b/about/investoram/cfa/index.php @@ -53,8 +53,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Цифровы -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> \ No newline at end of file +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/about/investoram/index-test.php b/about/investoram/index-test.php index 47f2b4b..212c6b8 100644 --- a/about/investoram/index-test.php +++ b/about/investoram/index-test.php @@ -47,8 +47,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Инвесто -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> \ No newline at end of file +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/about/investoram/index.php b/about/investoram/index.php index f817a01..73b8195 100644 --- a/about/investoram/index.php +++ b/about/investoram/index.php @@ -46,8 +46,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Инвесто -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> \ No newline at end of file +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/about/news/detail.php b/about/news/detail.php index 72ba34d..9eec8fb 100644 --- a/about/news/detail.php +++ b/about/news/detail.php @@ -23,7 +23,10 @@ require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/about/news/index.php b/about/news/index.php index 8cd3b5a..860e5c3 100644 --- a/about/news/index.php +++ b/about/news/index.php @@ -25,7 +25,10 @@ $APPLICATION->AddHeadString(' "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/about/requisites/index.php b/about/requisites/index.php index 9bb5581..1b3d213 100644 --- a/about/requisites/index.php +++ b/about/requisites/index.php @@ -79,9 +79,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Реквизи -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/about/revocation/index.php b/about/revocation/index.php index 8942539..ae600d0 100644 --- a/about/revocation/index.php +++ b/about/revocation/index.php @@ -23,9 +23,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Отзыв до -IncludeComponent( - "evolution:form.leasing", - "", - Array() -);?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/about/rules/index.php b/about/rules/index.php index f91ff2d..f9749f1 100644 --- a/about/rules/index.php +++ b/about/rules/index.php @@ -18,9 +18,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Общие ус Array() ); ?> -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/boston/index.php b/boston/index.php index 7df3fbf..c85f9c5 100644 --- a/boston/index.php +++ b/boston/index.php @@ -52,11 +52,16 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Вместе с
-IncludeComponent( - "evolution:form.leasing.nomail", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing.nomail", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?>
diff --git a/catalog/index.php b/catalog/index.php index b0f87d5..fe8b7d6 100644 --- a/catalog/index.php +++ b/catalog/index.php @@ -41,7 +41,10 @@ $APPLICATION->SetTitle("Новые автомобили в лизинг"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/catalog/landing.php b/catalog/landing.php index 3ae4c8b..abb3c1f 100644 --- a/catalog/landing.php +++ b/catalog/landing.php @@ -53,7 +53,10 @@ $APPLICATION->SetTitle("Новые автомобили в лизинг"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/catalog/position.php b/catalog/position.php index 7813154..fd73c6f 100644 --- a/catalog/position.php +++ b/catalog/position.php @@ -35,7 +35,10 @@ $APPLICATION->AddChainItem("Каталог", "/catalog/"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/chat/index.php b/chat/index.php index d8fde5a..b468b36 100644 --- a/chat/index.php +++ b/chat/index.php @@ -10,11 +10,16 @@ $APPLICATION->SetTitle("Эволюция автолизинга: finlab");
-IncludeComponent( - "evolution:form.leasing.nomail", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing.nomail", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?>
diff --git a/cookies/index.php b/cookies/index.php index 69a7d9d..8fc48b7 100644 --- a/cookies/index.php +++ b/cookies/index.php @@ -16,8 +16,15 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Использ
- IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> \ No newline at end of file + + IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/corp/index.php b/corp/index.php index e9209a4..b4d9163 100644 --- a/corp/index.php +++ b/corp/index.php @@ -28,8 +28,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Вместе с -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> \ No newline at end of file +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/finlab/index.php b/finlab/index.php index 3d56d3b..80ad2ef 100644 --- a/finlab/index.php +++ b/finlab/index.php @@ -44,11 +44,16 @@ $APPLICATION->SetTitle("Эволюция автолизинга: finlab");
-IncludeComponent( - "evolution:form.leasing.nomail", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing.nomail", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?>
diff --git a/index.php b/index.php index d373ff9..18a122c 100644 --- a/index.php +++ b/index.php @@ -47,9 +47,14 @@ $APPLICATION->AddHeadString(' -IncludeComponent( - "evolution:form.leasing", - "", - Array() -); ?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/local/components/evolution/form.leasing/templates/.default/template.php b/local/components/evolution/form.leasing/templates/.default/template.php index e2d3c53..5d6dc98 100644 --- a/local/components/evolution/form.leasing/templates/.default/template.php +++ b/local/components/evolution/form.leasing/templates/.default/template.php @@ -50,8 +50,8 @@ $this->setFrameMode(true);
-

У Вас появились вопросы?

-

Всё о покупке автомобилей в лизинг

+

+

Заполните форму и наш менеджер в ближайшее время свяжется с Вами

diff --git a/local/components/evolution/programs.aggregations.brands.list/templates/.default/template.php b/local/components/evolution/programs.aggregations.brands.list/templates/.default/template.php index 7eff768..efccff6 100644 --- a/local/components/evolution/programs.aggregations.brands.list/templates/.default/template.php +++ b/local/components/evolution/programs.aggregations.brands.list/templates/.default/template.php @@ -12,13 +12,39 @@ /** @var CBitrixComponent $component */ $this->setFrameMode(true); ?> + 0): ?>
-

+

diff --git a/local/components/evolution/programs.aggregations.offers.list/templates/.default/template.php b/local/components/evolution/programs.aggregations.offers.list/templates/.default/template.php index a80632a..1cd88fe 100644 --- a/local/components/evolution/programs.aggregations.offers.list/templates/.default/template.php +++ b/local/components/evolution/programs.aggregations.offers.list/templates/.default/template.php @@ -12,10 +12,33 @@ /** @var CBitrixComponent $component */ $this->setFrameMode(true); ?> + Спецпредложения и акции на тракторы в лизинг*/?> 0): ?>
-

+

diff --git a/local/components/evolution/programs.aggregations.rules/component.php b/local/components/evolution/programs.aggregations.rules/component.php new file mode 100644 index 0000000..81e8d0e --- /dev/null +++ b/local/components/evolution/programs.aggregations.rules/component.php @@ -0,0 +1,13 @@ +IncludeComponentTemplate(); \ No newline at end of file diff --git a/local/components/evolution/programs.aggregations.rules/lang/ru/.description.php b/local/components/evolution/programs.aggregations.rules/lang/ru/.description.php new file mode 100644 index 0000000..c5b4e79 --- /dev/null +++ b/local/components/evolution/programs.aggregations.rules/lang/ru/.description.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/local/components/evolution/programs.aggregations.rules/templates/.default/template.php b/local/components/evolution/programs.aggregations.rules/templates/.default/template.php new file mode 100644 index 0000000..7a53ac3 --- /dev/null +++ b/local/components/evolution/programs.aggregations.rules/templates/.default/template.php @@ -0,0 +1,47 @@ +setFrameMode(true); +?> + + 0): ?> +
+

+
+ + + +
+
+ \ No newline at end of file diff --git a/local/components/evolution/programs.aggregations.types/component.php b/local/components/evolution/programs.aggregations.types/component.php index 21215b0..06313ca 100644 --- a/local/components/evolution/programs.aggregations.types/component.php +++ b/local/components/evolution/programs.aggregations.types/component.php @@ -25,10 +25,17 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $sort = [ "SORT" => "ASC" ]; $filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID'] ]; + $section_filter = $filter; + $element_filter = $filter; $options = false; $types_ids = []; + if(isset($arParams['GROUP'])) + { + $section_filter['ID'] = $arParams['GROUP']; + } + if(isset($arParams['BRAND'])) { $res_filter = CIBlockElement::GetList( @@ -36,28 +43,26 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_RULES'], "PROPERTY_VEHICLE_BRAND" => $arParams['BRAND'], "!PROPERTY_VEHICLE_TYPE" => false, ], false, false, ['ID', 'NAME', 'PROPERTY_VEHICLE_TYPE'] ); - while ($element_filter = $res_filter->GetNextElement()) + while ($ar_element_filter = $res_filter->GetNextElement()) { - $ar_res_filter = $element_filter->GetFields(); + $ar_res_filter = $ar_element_filter->GetFields(); array_push($types_ids, $ar_res_filter['PROPERTY_VEHICLE_TYPE_VALUE']); } - //print_r($types_ids); - //die(); } + - $sec_res = CIBlockSection::GetList($sort, $filter, false, [], false); + $sec_res = CIBlockSection::GetList($sort, $section_filter, false, [], false); while ($section = $sec_res->GetNext()) - { + { if(!empty($section['PICTURE'])) { $section['PICTURE'] = CFile::GetPath($section['PICTURE']); } - + $section['ITEMS'] = []; - $filter = array_merge($filter, [ "SECTION_ID" => $section['ID'] ]); - - $res = CIBlockElement::GetList($sort, $filter, false, $options); + + $res = CIBlockElement::GetList($sort, array_merge($element_filter, [ "SECTION_ID" => $section['ID'] ]), false, $options); while ($element = $res->GetNextElement()) { $ar_res = $element->GetFields(); diff --git a/local/components/evolution/programs.aggregations.types/templates/.default/template.php b/local/components/evolution/programs.aggregations.types/templates/.default/template.php index 7eef7a0..34040a5 100644 --- a/local/components/evolution/programs.aggregations.types/templates/.default/template.php +++ b/local/components/evolution/programs.aggregations.types/templates/.default/template.php @@ -12,18 +12,36 @@ /** @var CBitrixComponent $component */ $this->setFrameMode(true); ?> + 0): ?>
-

+ +

+
-
-

+
"> +

+ + + + + + + +

  • - "> + /">
  • diff --git a/local/components/evolution/programs.aggregations/component.php b/local/components/evolution/programs.aggregations/component.php index 3b48765..7b86be2 100644 --- a/local/components/evolution/programs.aggregations/component.php +++ b/local/components/evolution/programs.aggregations/component.php @@ -23,6 +23,13 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_RULES'], ]; $options = false; + $group = null; + $group_name = null; + $group_genitive = null; + $group_accusative = null; + $group_prepositional = null; + $group_slug = null; + $brand = null; $brand_name = null; $brand_slug = null; @@ -31,29 +38,39 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $type_name = null; $type_plural = null; $type_genitive = null; + $type_singular_genitive = null; $type_slug = null; + $type_section = null; - if(isset($_REQUEST['TYPE']) && isset($_REQUEST['BRAND'])) + if(isset($_REQUEST['GROUP'])) { - $res_type = CIBlockElement::GetList( + $res_group = CIBlockSection::GetList( [ "SORT" => "ASC" ], - [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], "CODE" => $_REQUEST['TYPE'], ], - false, false + [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], "CODE" => $_REQUEST['GROUP'], ], + false, [ "UF_VEHICLE_GROUP_GENITIVE_NAME", "UF_VEHICLE_GROUP_ACCUSATIVE_NAME", "UF_VEHICLE_GROUP_PREPOSITIONAL_NAME", ] ); - while ($element_type = $res_type->GetNextElement()) + while($section_group = $res_group->GetNext()) { - $ar_res_type = $element_type->GetFields(); - $ar_res_type['PROPERTIES'] = $element_type->GetProperties(); + $group = $section_group['ID']; + $group_name = $section_group['NAME']; + $group_genitive = $section_group['UF_VEHICLE_GROUP_GENITIVE_NAME']; + $group_accusative = $section_group['UF_VEHICLE_GROUP_ACCUSATIVE_NAME']; + $group_prepositional = $section_group['UF_VEHICLE_GROUP_PREPOSITIONAL_NAME']; + $group_slug = $section_group['CODE']; - $type = $ar_res_type['ID']; - $type_name = $ar_res_type['NAME']; - $type_plural = $ar_res_type['PROPERTIES']['PLURAL_NAME']['VALUE']; - $type_genitive = $ar_res_type['PROPERTIES']['GENITIVE_NAME']['VALUE']; - $type_slug = $ar_res_type['CODE']; - $type_gender = $ar_res_type['PROPERTIES']['NAME_GENDER']['VALUE_XML_ID']; + //$section_group['PROPERTIES'] = $section_group; +// print "
    ";
    +//				print_r($section_group);
    +//				print "
    "; +// print "
    ";
    +//				print_r($group);
    +//				print "
    "; } + } + if(isset($_REQUEST['BRAND'])) + { $res_brand = CIBlockElement::GetList( [ "SORT" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS'], "CODE" => $_REQUEST['BRAND'], ], @@ -68,11 +85,12 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $brand_slug = $ar_res_brand['CODE']; } } - elseif(isset($_REQUEST['CHUNK'])) + + if(isset($_REQUEST['TYPE'])) { $res_type = CIBlockElement::GetList( [ "SORT" => "ASC" ], - [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], "CODE" => $_REQUEST['CHUNK'], ], + [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], "CODE" => $_REQUEST['TYPE'], ], false, false ); @@ -80,28 +98,77 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $ar_res_type = $element_type->GetFields(); $ar_res_type['PROPERTIES'] = $element_type->GetProperties(); - + $type = $ar_res_type['ID']; $type_name = $ar_res_type['NAME']; $type_plural = $ar_res_type['PROPERTIES']['PLURAL_NAME']['VALUE']; $type_genitive = $ar_res_type['PROPERTIES']['GENITIVE_NAME']['VALUE']; + $type_singular_genitive = $ar_res_type['PROPERTIES']['GENITIVE_SINGULAR_NAME']['VALUE']; $type_slug = $ar_res_type['CODE']; $type_gender = $ar_res_type['PROPERTIES']['NAME_GENDER']['VALUE_XML_ID']; + $type_section = $ar_res_type['IBLOCK_SECTION_ID']; } - $res_brand = CIBlockElement::GetList( - [ "SORT" => "ASC" ], - [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS'], "CODE" => $_REQUEST['CHUNK'], ], - false, false - ); + // if($group === null && $type_section !== null) + // { + // $group_res = CIBlockSection::GetByID($type_section); - while ($element_brand = $res_brand->GetNextElement()) + // if($ar_group_res = $group_res->GetNext()) + // { + // $group_name = $ar_group_res['NAME']; + // $group_slug = $ar_group_res['CODE']; + // } + // } + } + + if(isset($_REQUEST['TYPE'])) + { + /* + elseif(isset($_REQUEST['CHUNK'])) { - $ar_res_brand = $element_brand->GetFields(); - $brand = $ar_res_brand['ID']; - $brand_name = $ar_res_brand['NAME']; - $brand_slug = $ar_res_brand['CODE']; + $res_type = CIBlockElement::GetList( + [ "SORT" => "ASC" ], + [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], "CODE" => $_REQUEST['CHUNK'], ], + false, false + ); + + while ($element_type = $res_type->GetNextElement()) + { + $ar_res_type = $element_type->GetFields(); + $ar_res_type['PROPERTIES'] = $element_type->GetProperties(); + + $type = $ar_res_type['ID']; + $type_name = $ar_res_type['NAME']; + $type_plural = $ar_res_type['PROPERTIES']['PLURAL_NAME']['VALUE']; + $type_genitive = $ar_res_type['PROPERTIES']['GENITIVE_NAME']['VALUE']; + $type_slug = $ar_res_type['CODE']; + $type_gender = $ar_res_type['PROPERTIES']['NAME_GENDER']['VALUE_XML_ID']; + } + + $res_brand = CIBlockElement::GetList( + [ "SORT" => "ASC" ], + [ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS'], "CODE" => $_REQUEST['CHUNK'], ], + false, false + ); + + while ($element_brand = $res_brand->GetNextElement()) + { + $ar_res_brand = $element_brand->GetFields(); + $brand = $ar_res_brand['ID']; + $brand_name = $ar_res_brand['NAME']; + $brand_slug = $ar_res_brand['CODE']; + } } + */ + } + + if($group !== null) + { + $filter['PROPERTY_VEHICLE_GROUP'] = $group; + } + else + { + $filter['PROPERTY_VEHICLE_GROUP'] = false; } if($type !== null) @@ -123,7 +190,10 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) } $res = CIBlockElement::GetList($sort, $filter, false, $options); - //print_r($filter); +// print "
    ";
    +//		print_r($filter);
    +//		print "
    "; +// die(); while ($element = $res->GetNextElement()) { $ar_res = $element->GetFields(); @@ -133,6 +203,13 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $arResult['BANNER'] = CFile::GetPath($ar_res['PREVIEW_PICTURE']); $arResult['DETAIL_PICTURE'] = CFile::GetPath($ar_res['DETAIL_PICTURE']); + $arResult['GROUP'] = $group; + $arResult['GROUP_NAME'] = $group_name; + $arResult['GROUP_SLUG'] = $group_slug; + $arResult['GROUP_GENITIVE'] = $group_genitive; + $arResult['GROUP_ACCUSATIVE'] = $group_accusative; + $arResult['GROUP_PREPOSITIONAL'] = $group_prepositional; + $arResult['BRAND'] = $brand; $arResult['BRAND_NAME'] = $brand_name; $arResult['BRAND_SLUG'] = $brand_slug; @@ -140,6 +217,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $arResult['TYPE'] = $type; $arResult['TYPE_PLURAL'] = $type_plural; $arResult['TYPE_GENITIVE'] = $type_genitive; + $arResult['TYPE_GENITIVE_SINGULAR'] = $type_singular_genitive; } $APPLICATION->AddChainItem($arParams['TITLE'], "/programs/special/"); @@ -150,36 +228,59 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) if(empty($arResult['NAME'])) { define('ERROR_404', 'Y'); } else { - if($type !== null) + if($group !== null) { - $APPLICATION->SetPageProperty("title", "".$type_plural." в лизинг для юридических лиц и ИП в Москве - купить ".($type_gender === "M" ? "новый" : ($type_gender === "F" ? "новую" : "новые" ))." ".$type_name." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("description", "Новые ".mb_strtolower($type_plural)." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$type_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); - $APPLICATION->SetPageProperty("keywords", "".$type_plural." в лизинг, купить ".$type_name." в лизинг, ".$type_name." в лизинг для юридических лиц, ".$type_name." в лизинг для ип"); + $APPLICATION->SetPageProperty("title", "".$group_name." в лизинг для юридических лиц и ИП в Москве - купить новую ".mb_strtolower($group_accusative)." в лизинг | Эволюция"); + $APPLICATION->SetPageProperty("description", "Новая ".mb_strtolower($group_name)." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".mb_strtolower($group_accusative)." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", "".mb_strtolower($group_name)." в лизинг, купить ".mb_strtolower($group_accusative)." в лизинг, ".mb_strtolower($group_name)." в лизинг для юридических лиц, ".mb_strtolower($group_name)." в лизинг для ип"); + $APPLICATION->AddChainItem($group_name, "/programs/special/".$group_slug."/"); - $APPLICATION->AddChainItem($type_name, "/programs/special/".$type_slug."/"); - if($brand !== null) + if($type !== null) { - $APPLICATION->AddChainItem($brand_name, "/programs/special/".$type_slug."/".$brand_slug."/"); + $APPLICATION->SetPageProperty("title", "".$type_plural." в лизинг для юридических лиц и ИП в Москве - купить ".($type_gender === "M" ? "новый" : ($type_gender === "F" ? "новую" : "новые" ))." ".$type_name." в лизинг | Эволюция"); + $APPLICATION->SetPageProperty("description", "Новые ".mb_strtolower($type_plural)." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$type_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", "".$type_plural." в лизинг, купить ".$type_name." в лизинг, ".$type_name." в лизинг для юридических лиц, ".$type_name." в лизинг для ип"); - $APPLICATION->SetPageProperty("title", "".$type_plural." ".$brand_name." в лизинг для юридических лиц и ИП в Москве - купить ".($type_gender === "M" ? "новый" : ($type_gender === "F" ? "новую" : "новые" ))." ".$type_name." ".$brand_name." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("description", "Новые ".mb_strtolower($type_plural)." ".$brand_name." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$type_name." ".$brand_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); - $APPLICATION->SetPageProperty("keywords", "".$type_plural." ".$brand_name." в лизинг, купить ".$type_name." ".$brand_name." в лизинг, ".$type_name." ".$brand_name." в лизинг для юридических лиц, ".$type_name." ".$brand_name." в лизинг для ип"); + $APPLICATION->AddChainItem($type_name, "/programs/special/".$group_slug."/".$type_slug."/"); } } else { - if($brand !== null) + if($type !== null) { - $APPLICATION->AddChainItem($brand_name, "/programs/special/".$brand_slug."/"); + $APPLICATION->SetPageProperty("title", "".$type_plural." в лизинг для юридических лиц и ИП в Москве - купить ".($type_gender === "M" ? "новый" : ($type_gender === "F" ? "новую" : "новые" ))." ".$type_name." в лизинг | Эволюция"); + $APPLICATION->SetPageProperty("description", "Новые ".mb_strtolower($type_plural)." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$type_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", "".$type_plural." в лизинг, купить ".$type_name." в лизинг, ".$type_name." в лизинг для юридических лиц, ".$type_name." в лизинг для ип"); - $APPLICATION->SetPageProperty("title", "".$arParams['SHORT_TITLE']." ".$brand_name." в лизинг для юридических лиц и ИП в Москве - купить новую ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." ".$brand_name." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("description", "Новая ".mb_strtolower($arParams['SHORT_TITLE'])." ".$brand_name." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." ".$brand_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); - $APPLICATION->SetPageProperty("keywords", "".$brand_name." в лизинг, купить ".$brand_name." в лизинг, ".$brand_name." в лизинг для юридических лиц, ".$brand_name." в лизинг для ип, ".mb_strtolower($arParams['SHORT_TITLE'])." ".$brand_name." в лизинг"); + if($brand !== null) + { + $APPLICATION->AddChainItem($brand_name, "/programs/special/brand-".$brand_slug."/"); + + $APPLICATION->SetPageProperty("title", "".$type_plural." ".$brand_name." в лизинг для юридических лиц и ИП в Москве - купить ".($type_gender === "M" ? "новый" : ($type_gender === "F" ? "новую" : "новые" ))." ".$type_name." ".$brand_name." в лизинг | Эволюция"); + $APPLICATION->SetPageProperty("description", "Новые ".mb_strtolower($type_plural)." ".$brand_name." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$type_name." ".$brand_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", "".$type_plural." ".$brand_name." в лизинг, купить ".$type_name." ".$brand_name." в лизинг, ".$type_name." ".$brand_name." в лизинг для юридических лиц, ".$type_name." ".$brand_name." в лизинг для ип"); + $APPLICATION->AddChainItem($type_name, "/programs/special/brand-".$brand_slug."/".$type_slug."/"); + } + else + { + $APPLICATION->AddChainItem($type_name, "/programs/special/".$type_slug."/"); + } + } + else + { + if($brand !== null) + { + $APPLICATION->AddChainItem($brand_name, "/programs/special/brand-".$brand_slug."/"); + + $APPLICATION->SetPageProperty("title", "".$arParams['SHORT_TITLE']." ".$brand_name." в лизинг для юридических лиц и ИП в Москве - купить новую ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." ".$brand_name." в лизинг | Эволюция"); + $APPLICATION->SetPageProperty("description", "Новая ".mb_strtolower($arParams['SHORT_TITLE'])." ".$brand_name." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." ".$brand_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", "".$brand_name." в лизинг, купить ".$brand_name." в лизинг, ".$brand_name." в лизинг для юридических лиц, ".$brand_name." в лизинг для ип, ".mb_strtolower($arParams['SHORT_TITLE'])." ".$brand_name." в лизинг"); + } } } - $ipropValues = new \Bitrix\Iblock\InheritedProperty\ElementValues($arResult['IBLOCK_ID'], $arResult["ID"]); - $meta = $ipropValues->getValues(); +// $ipropValues = new \Bitrix\Iblock\InheritedProperty\ElementValues($arResult['IBLOCK_ID'], $arResult["ID"]); +// $meta = $ipropValues->getValues(); // $APPLICATION->SetPageProperty("title", $meta['ELEMENT_META_TITLE']); // $APPLICATION->SetPageProperty("keywords", $meta['ELEMENT_META_KEYWORDS']); diff --git a/local/components/evolution/programs.aggregations/templates/.default/template.php b/local/components/evolution/programs.aggregations/templates/.default/template.php index 97ad8bb..3066244 100644 --- a/local/components/evolution/programs.aggregations/templates/.default/template.php +++ b/local/components/evolution/programs.aggregations/templates/.default/template.php @@ -16,7 +16,12 @@ $this->setFrameMode(true); $title = $arResult['NAME']; $rules_title = "Условия лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE']).""; - if($arResult['BRAND'] !== null) + if($arResult['GROUP'] !== null) + { + $title = "".$arResult['NAME']." в лизинг для юридических лиц и ИП"; + $rules_title = "Условия лизинга ".mb_strtolower($arResult['GROUP_GENITIVE']); + } + elseif($arResult['BRAND'] !== null) { if($arResult['TYPE'] !== null) { @@ -82,6 +87,34 @@ $this->setFrameMode(true);
+
+"; print_r($arResult); print ""; +// die(); + + $APPLICATION->IncludeComponent( + "evolution:programs.aggregations.offers.list", + "", + [ + "IDS" => $arResult['PROPERTIES']['OFFERS']['VALUE'], + "SHORT_TITLE_ACCUSATIVE" => $arParams['SHORT_TITLE_ACCUSATIVE'], + "GROUP" => $arResult['GROUP'], + "GROUP_NAME" => $arResult['GROUP_NAME'], + "GROUP_SLUG" => $arResult['GROUP_SLUG'], + "GROUP_GENITIVE" => $arResult['GROUP_GENITIVE'], + "GROUP_ACCUSATIVE" => $arResult['GROUP_ACCUSATIVE'], + "GROUP_PREPOSITIONAL" => $arResult['GROUP_PREPOSITIONAL'], + "BRAND" => $arResult['BRAND'], + "BRAND_NAME" => $arResult['BRAND_NAME'], + "BRAND_SLUG" => $arResult['BRAND_SLUG'], + "TYPE" => $arResult['TYPE'], + "TYPE_PLURAL" => $arResult['TYPE_PLURAL'], + "TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'], + ] + ); +?> +
@@ -100,59 +133,131 @@ $this->setFrameMode(true); -
-IncludeComponent( - "evolution:programs.aggregations.offers.list", - "", - [ - "IDS" => $arResult['PROPERTIES']['OFFERS']['VALUE'], - "TITLE" => $arParams['SPECIAL_OFFERS_TITLE'], - ] - ); -?> - - + IncludeComponent( "evolution:programs.aggregations.types", "", [ "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], - "TITLE" => "Виды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arResult['BRAND_NAME']." в лизинг", "IBLOCK_ID_RULES" => $arParams['IBLOCK_ID_RULES'], + "PATH" => "/programs/".$arParams['PATH'], + "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'], + "SHORT_TITLE_ACCUSATIVE" => $arParams['SHORT_TITLE_ACCUSATIVE'], + "GROUP" => $arResult['GROUP'], + "GROUP_NAME" => $arResult['GROUP_NAME'], + "GROUP_SLUG" => $arResult['GROUP_SLUG'], + "GROUP_GENITIVE" => $arResult['GROUP_GENITIVE'], + "GROUP_ACCUSATIVE" => $arResult['GROUP_ACCUSATIVE'], + "GROUP_PREPOSITIONAL" => $arResult['GROUP_PREPOSITIONAL'], "BRAND" => $arResult['BRAND'], + "BRAND_NAME" => $arResult['BRAND_NAME'], "BRAND_SLUG" => $arResult['BRAND_SLUG'], - "PATH" => "/programs/".$arParams['PATH']."/", + "TYPE" => $arResult['TYPE'], + "TYPE_PLURAL" => $arResult['TYPE_PLURAL'], + "TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'], ] ); ?> - 0): ?> - -
-

-
- - - -
-
- + + + IncludeComponent( + "evolution:programs.aggregations.types", + "", + [ + "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], + "IBLOCK_ID_RULES" => $arParams['IBLOCK_ID_RULES'], + "PATH" => "/programs/".$arParams['PATH'], + "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'], + "SHORT_TITLE_ACCUSATIVE" => $arParams['SHORT_TITLE_ACCUSATIVE'], + "GROUP" => $arResult['GROUP'], + "GROUP_NAME" => $arResult['GROUP_NAME'], + "GROUP_SLUG" => $arResult['GROUP_SLUG'], + "GROUP_GENITIVE" => $arResult['GROUP_GENITIVE'], + "GROUP_ACCUSATIVE" => $arResult['GROUP_ACCUSATIVE'], + "GROUP_PREPOSITIONAL" => $arResult['GROUP_PREPOSITIONAL'], + "BRAND" => $arResult['BRAND'], + "BRAND_NAME" => $arResult['BRAND_NAME'], + "BRAND_SLUG" => $arResult['BRAND_SLUG'], + "TYPE" => $arResult['TYPE'], + "TYPE_PLURAL" => $arResult['TYPE_PLURAL'], + "TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'], + ] + ); + ?> + -IncludeComponent( - "evolution:programs.aggregations.types", - "", - [ - "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], - "TITLE" => "Виды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг", - "PATH" => "/programs/".$arParams['PATH']."/", - ] - ); -?> + + IncludeComponent( + "evolution:programs.aggregations.rules", + "", + array_merge( + $arResult, + [ + "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'], + "SHORT_TITLE_ACCUSATIVE" => $arParams['SHORT_TITLE_ACCUSATIVE'], + ] + ) + ); + ?> + + + + IncludeComponent( + "evolution:programs.aggregations.types", + "", + [ + "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], + "PATH" => "/programs/".$arParams['PATH'], + "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'], + "SHORT_TITLE_ACCUSATIVE" => $arParams['SHORT_TITLE_ACCUSATIVE'], + "GROUP" => $arResult['GROUP'], + "GROUP_NAME" => $arResult['GROUP_NAME'], + "GROUP_SLUG" => $arResult['GROUP_SLUG'], + "GROUP_GENITIVE" => $arResult['GROUP_GENITIVE'], + "GROUP_ACCUSATIVE" => $arResult['GROUP_ACCUSATIVE'], + "GROUP_PREPOSITIONAL" => $arResult['GROUP_PREPOSITIONAL'], + "TYPE" => $arResult['TYPE'], + "TYPE_PLURAL" => $arResult['TYPE_PLURAL'], + "TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'], + ] + ); + ?> + + + + IncludeComponent( + "evolution:programs.aggregations.rules", + "", + array_merge( + $arResult, + [ + "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'], + "SHORT_TITLE_ACCUSATIVE" => $arParams['SHORT_TITLE_ACCUSATIVE'], + "GROUP" => $arResult['GROUP'], + "GROUP_NAME" => $arResult['GROUP_NAME'], + "GROUP_SLUG" => $arResult['GROUP_SLUG'], + "GROUP_GENITIVE" => $arResult['GROUP_GENITIVE'], + "GROUP_ACCUSATIVE" => $arResult['GROUP_ACCUSATIVE'], + "GROUP_PREPOSITIONAL" => $arResult['GROUP_PREPOSITIONAL'], + "BRAND" => $arResult['BRAND'], + "BRAND_NAME" => $arResult['BRAND_NAME'], + "BRAND_SLUG" => $arResult['BRAND_SLUG'], + "TYPE" => $arResult['TYPE'], + "TYPE_PLURAL" => $arResult['TYPE_PLURAL'], + "TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'], + ] + ) + ); + ?> + IncludeComponent( @@ -160,16 +265,41 @@ $this->setFrameMode(true); "", [ "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS'], - "TITLE" => isset($arResult['TYPE']) - ? (isset($arResult['BRAND']) ? "Рекомендуем производителей ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг" : "Выберите производителя для просмотра каталога ".mb_strtolower($arResult['TYPE_GENITIVE'])) - : "Бренды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг", - "TYPE" => isset($arResult['BRAND']) ? null : $arResult['TYPE'], + "TYPE" => $arResult['TYPE'], + "TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'], "PATH" => "/programs/".$arParams['PATH']."/", + "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'], + "GROUP" => $arResult['GROUP'], + "GROUP_GENITIVE" => $arResult['GROUP_GENITIVE'], + "BRAND" => $arResult['BRAND'], ] ); ?> -IncludeComponent( +IncludeComponent( "evolution:calculator", "", Array( @@ -185,13 +315,7 @@ $this->setFrameMode(true); "LEASE_PERIOD_MAX" => 60, "REDEMPTION_PAYMENT_MIN" => 1, "REDEMPTION_PAYMENT_MAX" => 5, - "TITLE" => - isset($arResult['TYPE']) && isset($arResult['BRAND']) - ? "Калькулятор лизинга ".mb_strtolower($arResult['TYPE_GENITIVE'])." ".$arResult['BRAND_NAME'] - : (isset($arResult['BRAND']) - ? "Калькулятор лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arResult['BRAND_NAME'] - : "Калькулятор расчета лизинга" - ), + "TITLE" => $calculator_title ) ); ?> @@ -220,10 +344,49 @@ $this->setFrameMode(true); + + IncludeComponent( + "evolution:programs.aggregations.types", + "", + [ + "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'], + "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'], + "PATH" => "/programs/".$arParams['PATH'], + ] + ); + ?> + + IncludeComponent( "evolution:form.leasing", "", - [], + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => $form_subtitle, + ] ); ?> diff --git a/local/templates/evolution/css/main/style.css b/local/templates/evolution/css/main/style.css index b82c0bd..859adc5 100644 --- a/local/templates/evolution/css/main/style.css +++ b/local/templates/evolution/css/main/style.css @@ -3142,7 +3142,7 @@ article #choose_region { gap: 0 30px; } .leasing_offers_list .offer_item { - width: 100%; + width: fit-content; position: relative; } .leasing_offers_list .offer_item:not(.no_padding) { @@ -6355,6 +6355,9 @@ main .dropdown_blocks_list .dropdown_block .block_body .transaction_detail ul li .types_grid .grid_item .h2 { max-width: 65%; } +.types_grid .grid_item .h2 a { + color: #000; +} .types_grid .grid_item ul { column-count: 2; break-inside: avoid; @@ -6428,6 +6431,9 @@ main .dropdown_blocks_list .dropdown_block .block_body .transaction_detail ul li font-size: 18px; line-height: 1.3; } + .types_grid .grid_item .h2 a { + color: #000; + } .types_grid .grid_item img { top: auto; height: 55%; diff --git a/local/templates/evolution/css/main/style.less b/local/templates/evolution/css/main/style.less index 80f2669..2840c00 100644 --- a/local/templates/evolution/css/main/style.less +++ b/local/templates/evolution/css/main/style.less @@ -3372,7 +3372,7 @@ article #choose_region { .offer_item { //width: calc(33.333% - 20px); - width: 100%; + width: fit-content; position: relative; &:not(.no_padding) { @@ -6911,6 +6911,10 @@ main .dropdown_blocks_list .dropdown_block .block_body { .h2 { max-width: 65%; + + a { + color: #000; + } } ul { @@ -6985,6 +6989,10 @@ main .dropdown_blocks_list .dropdown_block .block_body { max-width: 100%; font-size: 18px; line-height: 1.3; + + a { + color: #000; + } } img { diff --git a/personal_data/index.php b/personal_data/index.php index b7e3ca1..7f55cba 100644 --- a/personal_data/index.php +++ b/personal_data/index.php @@ -14,8 +14,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Политик
- IncludeComponent( - "evolution:form.leasing", - "", - Array() -);?> \ No newline at end of file + IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/programs/custom.php b/programs/custom.php new file mode 100644 index 0000000..502df0f --- /dev/null +++ b/programs/custom.php @@ -0,0 +1,32 @@ + +IncludeComponent("bitrix:breadcrumb", "evolution", Array( + "PATH" => "", // Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь) + "SITE_ID" => "s1", // Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный) + "START_FROM" => "0", // Номер пункта, начиная с которого будет построена навигационная цепочка + ), + false + ); +?> +IncludeComponent( + "evolution:leasing.programs.taxi", + "", + Array( + "CODE" => $_REQUEST['PROGRAM'] + ) +); +?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/programs/entry.php b/programs/entry.php index 55766fa..231a081 100644 --- a/programs/entry.php +++ b/programs/entry.php @@ -23,7 +23,10 @@ require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/programs/faq/index.php b/programs/faq/index.php index 7276bd4..d81d59f 100644 --- a/programs/faq/index.php +++ b/programs/faq/index.php @@ -25,7 +25,10 @@ $APPLICATION->AddHeadString(' "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/programs/index.php b/programs/index.php index 0070f15..e7d85db 100644 --- a/programs/index.php +++ b/programs/index.php @@ -19,9 +19,14 @@ $APPLICATION->AddHeadString(' -IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/programs/program/index.php b/programs/program/index.php index ddca28b..924cb0c 100644 --- a/programs/program/index.php +++ b/programs/program/index.php @@ -27,7 +27,10 @@ $APPLICATION->SetTitle("Специальные предложения"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/programs/program/offer.php b/programs/program/offer.php index 9d2ab97..0bf6572 100644 --- a/programs/program/offer.php +++ b/programs/program/offer.php @@ -22,7 +22,10 @@ $APPLICATION->SetTitle("Специальное предложение"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/regions/index.php b/regions/index.php index d660a83..5406de0 100644 --- a/regions/index.php +++ b/regions/index.php @@ -42,7 +42,10 @@ $APPLICATION->SetTitle("Новые автомобили в лизинг"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> diff --git a/regions/landing.php b/regions/landing.php index 6dba175..b6c4cf3 100644 --- a/regions/landing.php +++ b/regions/landing.php @@ -54,7 +54,10 @@ $APPLICATION->SetTitle("Новые автомобили в лизинг"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/regions/region.php b/regions/region.php index 33b1b0e..b888d6f 100644 --- a/regions/region.php +++ b/regions/region.php @@ -42,7 +42,10 @@ $APPLICATION->SetTitle("Новые автомобили в лизинг"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/search/index.php b/search/index.php index ffa0914..870eb8a 100644 --- a/search/index.php +++ b/search/index.php @@ -119,7 +119,10 @@ $APPLICATION->SetTitle("Поиск"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/services/entry.php b/services/entry.php index aa4ae9a..425743c 100644 --- a/services/entry.php +++ b/services/entry.php @@ -21,7 +21,10 @@ require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/services/index.php b/services/index.php index 7830381..c6124c5 100644 --- a/services/index.php +++ b/services/index.php @@ -19,9 +19,14 @@ $APPLICATION->AddHeadString(' +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/special/index.php b/special/index.php index 1bee434..4cd21e8 100644 --- a/special/index.php +++ b/special/index.php @@ -22,9 +22,14 @@ $APPLICATION->AddHeadString(' +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> \ No newline at end of file diff --git a/special/offer.php b/special/offer.php index f861e21..16bd78d 100644 --- a/special/offer.php +++ b/special/offer.php @@ -21,7 +21,10 @@ require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/telematics/index.php b/telematics/index.php index e290e50..547dcd1 100644 --- a/telematics/index.php +++ b/telematics/index.php @@ -22,8 +22,14 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Вместе с
-IncludeComponent( - "evolution:form.leasing", - "", -Array() -);?> \ No newline at end of file +IncludeComponent( + "evolution:form.leasing", + "", + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] + ); +?> + \ No newline at end of file diff --git a/urlrewrite.php b/urlrewrite.php index 4fd4e55..beddb5f 100644 --- a/urlrewrite.php +++ b/urlrewrite.php @@ -28,16 +28,30 @@ $arUrlRewrite=array ( 'PATH' => '/api/index.php', 'SORT' => 4, ), + array ( + 'CONDITION' => '#^/programs/special/brand-([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#', + 'RULE' => 'BRAND=$1&TYPE=$2', + 'ID' => '', + 'PATH' => '/programs/special/index.php', + 'SORT' => 5, + ), + array ( + 'CONDITION' => '#^/programs/special/brand-([a-zA-Z0-9_-]+)/\\??.*$#', + 'RULE' => 'BRAND=$1', + 'ID' => '', + 'PATH' => '/programs/special/index.php', + 'SORT' => 5, + ), array ( 'CONDITION' => '#^/programs/special/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#', - 'RULE' => 'TYPE=$1&BRAND=$2', + 'RULE' => 'GROUP=$1&TYPE=$2', 'ID' => '', 'PATH' => '/programs/special/index.php', 'SORT' => 5, ), array ( 'CONDITION' => '#^/programs/special/([a-zA-Z0-9_-]+)/\\??.*$#', - 'RULE' => 'CHUNK=$1', + 'RULE' => 'GROUP=$1', 'ID' => '', 'PATH' => '/programs/special/index.php', 'SORT' => 5, @@ -49,16 +63,30 @@ $arUrlRewrite=array ( 'PATH' => '/programs/special/index.php', 'SORT' => 5, ), + array ( + 'CONDITION' => '#^/programs/cargo/brand-([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#', + 'RULE' => 'BRAND=$1&TYPE=$2', + 'ID' => '', + 'PATH' => '/programs/cargo/index.php', + 'SORT' => 5, + ), + array ( + 'CONDITION' => '#^/programs/cargo/brand-([a-zA-Z0-9_-]+)/\\??.*$#', + 'RULE' => 'BRAND=$1', + 'ID' => '', + 'PATH' => '/programs/special/index.php', + 'SORT' => 5, + ), array ( 'CONDITION' => '#^/programs/cargo/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#', - 'RULE' => 'TYPE=$1&BRAND=$2', + 'RULE' => 'GROUP=$1&TYPE=$2', 'ID' => '', 'PATH' => '/programs/cargo/index.php', 'SORT' => 5, ), array ( 'CONDITION' => '#^/programs/cargo/([a-zA-Z0-9_-]+)/\\??.*$#', - 'RULE' => 'CHUNK=$1', + 'RULE' => 'GROUP=$1', 'ID' => '', 'PATH' => '/programs/cargo/index.php', 'SORT' => 5, diff --git a/used/index.php b/used/index.php index 03bd632..ca1d4a1 100644 --- a/used/index.php +++ b/used/index.php @@ -52,7 +52,10 @@ $APPLICATION->SetPageProperty("keywords", "Лизинг бу автомобил $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/used/landing.php b/used/landing.php index d1d2668..9f1d59d 100644 --- a/used/landing.php +++ b/used/landing.php @@ -52,7 +52,10 @@ $APPLICATION->SetTitle("Новые автомобили в лизинг"); $APPLICATION->IncludeComponent( "evolution:form.leasing", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/used/position.php b/used/position.php index 5d17099..4634434 100644 --- a/used/position.php +++ b/used/position.php @@ -35,7 +35,10 @@ $APPLICATION->AddChainItem("С пробегом", "/used/"); $APPLICATION->IncludeComponent( "evolution:form.leasing.used", "", - Array() + [ + "TITLE" => "У Вас появились вопросы?", + "SUBTITLE" => "Всё о покупке автомобилей в лизинг", + ] ); ?> \ No newline at end of file diff --git a/vizitka/index.php b/vizitka/index.php index e14f7a8..edc4216 100644 --- a/vizitka/index.php +++ b/vizitka/index.php @@ -18,11 +18,16 @@ $APPLICATION->IncludeComponent(