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 @@
+
+if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
+/** @var CBitrixComponent $this */
+/** @var array $arParams */
+/** @var array $arResult */
+/** @var string $componentPath */
+/** @var string $componentName */
+/** @var string $componentTemplate */
+/** @global CDatabase $DB */
+/** @global CUser $USER */
+/** @global CMain $APPLICATION */
+
+$this->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 @@
+
+$MESS ['DEFAULT_NAME'] = "Агрегационные страницы: список условий";
+$MESS ['DEFAULT_DESC'] = "Агрегационные страницы: список условий";
+?>
\ 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);
+?>
+
+ $rules_title = "Условия лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])."";
+
+ if(isset($arParams['BRAND']))
+ {
+ if(isset($arParams['TYPE']))
+ {
+ $rules_title = "Условия лизинга ".mb_strtolower($arParams['TYPE_GENITIVE'])." ".$arParams['BRAND_NAME'];
+ }
+ else
+ {
+ $rules_title = "Условия лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arParams['BRAND_NAME'];
+ }
+ }
+ elseif(isset($arParams['TYPE']))
+ {
+ $rules_title = "Условия лизинга ".mb_strtolower($arParams['TYPE_GENITIVE']);
+ }
+ elseif(isset($arParams['GROUP']))
+ {
+ $rules_title = "Условия лизинга ".mb_strtolower($arParams['GROUP_GENITIVE']);
+ }
+?>
+ if(is_array($arParams['PROPERTIES']['RULES']['~VALUE']) && count($arParams['PROPERTIES']['RULES']['~VALUE']) > 0): ?>
+
+ endif; ?>
\ 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);
?>
+
+ $types_title = "Виды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг";
+
+ if(isset($arParams['BRAND']))
+ {
+ $types_title = "Каталог ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arParams['BRAND_NAME']." в лизинг";
+ }
+?>
if(is_array($arResult['SECTIONS']) && count($arResult['SECTIONS']) > 0): ?>
-
= $arParams['TITLE']; ?>
+ if(!isset($arParams['GROUP'])): ?>
+
= $types_title; ?>
+ endif; ?>
foreach($arResult['SECTIONS'] AS $section): ?>
-
-
= $section['NAME']; ?>
+
">
+
+ if(!isset($arParams['GROUP'])): ?>
+
+ = $section['NAME']; ?>
+
+ else: ?>
+ = $arParams['GROUP_NAME']; ?>
+ endif; ?>
+
if(is_array($section['ITEMS'])): ?>
foreach($section['ITEMS'] AS $item): ?>
- ">= $item['NAME']; ?>
+ = $item['CODE']; ?>/">= $item['NAME']; ?>
endforeach; ?>
endif; ?>
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 ""; 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'],
+ ]
+ );
+?>
+
if(!empty($arResult['DETAIL_TEXT'])): ?>
if(isset($arResult['TYPE']) && isset(($arResult['BRAND']))): ?>
@@ -100,59 +133,131 @@ $this->setFrameMode(true);
endif; ?>
endif; ?>
-
-
- $APPLICATION->IncludeComponent(
- "evolution:programs.aggregations.offers.list",
- "",
- [
- "IDS" => $arResult['PROPERTIES']['OFFERS']['VALUE'],
- "TITLE" => $arParams['SPECIAL_OFFERS_TITLE'],
- ]
- );
-?>
-
- if(isset($arResult['BRAND']) && !isset($arResult['TYPE'])): ?>
+ if(isset($arResult['GROUP']) && !isset($arResult['TYPE'])): ?>
$APPLICATION->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'],
]
);
?>
endif; ?>
- if(is_array($arResult['PROPERTIES']['RULES']['~VALUE']) && count($arResult['PROPERTIES']['RULES']['~VALUE']) > 0): ?>
-
-
-
= $rules_title; ?>
-
- foreach($arResult['PROPERTIES']['RULES']['~VALUE'] AS $rules): ?>
- = $rules['TEXT']; ?>
- endforeach; ?>
-
-
-
+ if(!isset($arResult['GROUP'])): ?>
+ if(isset($arResult['BRAND']) && !isset($arResult['TYPE'])): ?>
+
+ $APPLICATION->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'],
+ ]
+ );
+ ?>
+ endif; ?>
endif; ?>
-
- $APPLICATION->IncludeComponent(
- "evolution:programs.aggregations.types",
- "",
- [
- "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'],
- "TITLE" => "Виды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг",
- "PATH" => "/programs/".$arParams['PATH']."/",
- ]
- );
-?>
+ if(!isset($arResult['GROUP'])): ?>
+
+ $APPLICATION->IncludeComponent(
+ "evolution:programs.aggregations.rules",
+ "",
+ array_merge(
+ $arResult,
+ [
+ "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'],
+ "SHORT_TITLE_ACCUSATIVE" => $arParams['SHORT_TITLE_ACCUSATIVE'],
+ ]
+ )
+ );
+ ?>
+ endif; ?>
+
+ if(!isset($arResult['GROUP']) && !isset($arResult['TYPE'])): ?>
+
+ $APPLICATION->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'],
+ ]
+ );
+ ?>
+ endif; ?>
+
+ if(isset($arResult['GROUP'])): ?>
+
+ $APPLICATION->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'],
+ ]
+ )
+ );
+ ?>
+ endif; ?>
$APPLICATION->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'],
]
);
?>
- $APPLICATION->IncludeComponent(
+
+ $calculator_title = "Калькулятор расчета лизинга";
+
+ if(isset($arResult['BRAND']))
+ {
+ if(isset($arResult['TYPE']))
+ {
+ $calculator_title = "Калькулятор расчета лизинга ".mb_strtolower($arResult['TYPE_GENITIVE'])." ".$arResult['BRAND_NAME'];
+ }
+ else
+ {
+ $calculator_title = "Калькулятор расчета лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arResult['BRAND_NAME'];
+ }
+ }
+ elseif(isset($arResult['TYPE']))
+ {
+ $calculator_title = "Калькулятор расчета лизинга ".mb_strtolower($arResult['TYPE_GENITIVE_SINGULAR']);
+ }
+ elseif(isset($arResult['GROUP']))
+ {
+ $calculator_title = "Калькулятор расчета лизинга ".mb_strtolower($arResult['GROUP_GENITIVE']);
+ }
+
+ $APPLICATION->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);
endif; ?>
endif; ?>
+ if(isset($arResult['GROUP']) || (isset($arResult['BRAND'])) && isset($arResult['TYPE'])): ?>
+
+ $APPLICATION->IncludeComponent(
+ "evolution:programs.aggregations.types",
+ "",
+ [
+ "IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'],
+ "SHORT_TITLE_GENITIVE" => $arParams['SHORT_TITLE_GENITIVE'],
+ "PATH" => "/programs/".$arParams['PATH'],
+ ]
+ );
+ ?>
+ endif; ?>
+
+ $form_subtitle = "Всё о покупке ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг";
+
+ if(isset($arResult['BRAND']))
+ {
+ if(isset($arResult['TYPE']))
+ {
+ $form_subtitle = "Всё о покупке ".mb_strtolower($arResult['TYPE_GENITIVE'])." ".$arResult['BRAND_NAME']." в лизинг";
+ }
+ else
+ {
+ $form_subtitle = "Всё о покупке ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arResult['BRAND_NAME']." в лизинг";
+ }
+ }
+ elseif(isset($arResult['TYPE']))
+ {
+ $form_subtitle = "Всё о покупке ".mb_strtolower($arResult['TYPE_GENITIVE_SINGULAR'])." в лизинг";
+ }
+ elseif(isset($arResult['GROUP']))
+ {
+ $form_subtitle = "Всё о покупке ".mb_strtolower($arResult['GROUP_GENITIVE'])." в лизинг";
+ }
+
$APPLICATION->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("Эволюция автолизинга: Политик
- $APPLICATION->IncludeComponent(
- "evolution:form.leasing",
- "",
- Array()
-);?>
\ No newline at end of file
+
+ $APPLICATION->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 @@
+
+require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
+?>
+
+ $APPLICATION->IncludeComponent("bitrix:breadcrumb", "evolution", Array(
+ "PATH" => "", // Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь)
+ "SITE_ID" => "s1", // Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный)
+ "START_FROM" => "0", // Номер пункта, начиная с которого будет построена навигационная цепочка
+ ),
+ false
+ );
+?>
+
+ $APPLICATION->IncludeComponent(
+ "evolution:leasing.programs.taxi",
+ "",
+ Array(
+ "CODE" => $_REQUEST['PROGRAM']
+ )
+);
+?>
+
+ $APPLICATION->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('
-$APPLICATION->IncludeComponent(
- "evolution:form.leasing",
- "",
-Array()
-);?>
+
+ $APPLICATION->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('
+
+ $APPLICATION->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('
+
+ $APPLICATION->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("Эволюция автолизинга: Вместе с
-$APPLICATION->IncludeComponent(
- "evolution:form.leasing",
- "",
-Array()
-);?>
\ No newline at end of file
+
+ $APPLICATION->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(