From ca5bcbcf5089eba9ecdee4018169b093504578ba Mon Sep 17 00:00:00 2001 From: merelendor Date: Wed, 15 May 2024 10:59:27 +0300 Subject: [PATCH] programs.aggregations fixes (logic & markup) --- .../templates/.default/template.php | 2 +- .../templates/.default/template.php | 4 +-- .../templates/.default/template.php | 2 +- .../programs.aggregations/component.php | 16 ++++----- .../templates/.default/template.php | 1 + local/templates/evolution/css/forms/style.css | 2 +- .../templates/evolution/css/forms/style.less | 2 +- local/templates/evolution/css/main/style.css | 31 ++++++++++++++-- local/templates/evolution/css/main/style.less | 36 ++++++++++++++----- programs/cargo/index.php | 1 + programs/special/index.php | 1 + 11 files changed, 73 insertions(+), 25 deletions(-) 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 2e58b8d..7eff768 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 @@ -18,7 +18,7 @@ $this->setFrameMode(true);
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 9093ef2..a80632a 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 @@ -15,11 +15,11 @@ $this->setFrameMode(true); Спецпредложения и акции на тракторы в лизинг*/?> 0): ?>
-

Популярная специальная техника в лизинг

+

- + <?= $offer['NAME']; ?> 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 c9e5ebe..7eef7a0 100644 --- a/local/components/evolution/programs.aggregations.types/templates/.default/template.php +++ b/local/components/evolution/programs.aggregations.types/templates/.default/template.php @@ -23,7 +23,7 @@ $this->setFrameMode(true);
  • - "> + ">
  • diff --git a/local/components/evolution/programs.aggregations/component.php b/local/components/evolution/programs.aggregations/component.php index d21cff8..3b48765 100644 --- a/local/components/evolution/programs.aggregations/component.php +++ b/local/components/evolution/programs.aggregations/component.php @@ -144,8 +144,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $APPLICATION->AddChainItem($arParams['TITLE'], "/programs/special/"); $APPLICATION->SetPageProperty("title", "Лизинг ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." для юридических лиц и ИП в Москве - купить новую ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("keywords", "Новая ".mb_strtolower($arParams['SHORT_TITLE'])." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); - $APPLICATION->SetPageProperty("description", "".$arParams['SHORT_TITLE']." в лизинг, лизинг ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." для юридических лиц, лизинг ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." для ип"); + $APPLICATION->SetPageProperty("description", "Новая ".mb_strtolower($arParams['SHORT_TITLE'])." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", "".$arParams['SHORT_TITLE']." в лизинг, лизинг ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." для юридических лиц, лизинг ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." для ип"); if(empty($arResult['NAME'])) { define('ERROR_404', 'Y'); } else @@ -153,8 +153,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) if($type !== null) { $APPLICATION->SetPageProperty("title", "".$type_plural." в лизинг для юридических лиц и ИП в Москве - купить ".($type_gender === "M" ? "новый" : ($type_gender === "F" ? "новую" : "новые" ))." ".$type_name." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("keywords", "Новые ".mb_strtolower($type_plural)." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$type_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); - $APPLICATION->SetPageProperty("description", "".$type_plural." в лизинг, купить ".$type_name." в лизинг, ".$type_name." в лизинг для юридических лиц, ".$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->AddChainItem($type_name, "/programs/special/".$type_slug."/"); if($brand !== null) @@ -162,8 +162,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $APPLICATION->AddChainItem($brand_name, "/programs/special/".$type_slug."/".$brand_slug."/"); $APPLICATION->SetPageProperty("title", "".$type_plural." ".$brand_name." в лизинг для юридических лиц и ИП в Москве - купить ".($type_gender === "M" ? "новый" : ($type_gender === "F" ? "новую" : "новые" ))." ".$type_name." ".$brand_name." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("keywords", "Новые ".mb_strtolower($type_plural)." ".$brand_name." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$type_name." ".$brand_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); - $APPLICATION->SetPageProperty("description", "".$type_plural." ".$brand_name." в лизинг, купить ".$type_name." ".$brand_name." в лизинг, ".$type_name." ".$brand_name." в лизинг для юридических лиц, ".$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." в лизинг для ип"); } } else @@ -173,8 +173,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $APPLICATION->AddChainItem($brand_name, "/programs/special/".$brand_slug."/"); $APPLICATION->SetPageProperty("title", "".$arParams['SHORT_TITLE']." ".$brand_name." в лизинг для юридических лиц и ИП в Москве - купить новую ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." ".$brand_name." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("keywords", "Новая ".mb_strtolower($arParams['SHORT_TITLE'])." ".$brand_name." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." ".$brand_name." в лизинг от официальных дилеров на выгодных условиях со скидкой. Телефон горячей линии 8 (800) 333-75-75 - звонок по России бесплатный."); - $APPLICATION->SetPageProperty("description", "".$brand_name." в лизинг, купить ".$brand_name." в лизинг, ".$brand_name." в лизинг для юридических лиц, ".$brand_name." в лизинг для ип, ".mb_strtolower($arParams['SHORT_TITLE'])." ".$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." в лизинг"); } } diff --git a/local/components/evolution/programs.aggregations/templates/.default/template.php b/local/components/evolution/programs.aggregations/templates/.default/template.php index 803c0c6..97ad8bb 100644 --- a/local/components/evolution/programs.aggregations/templates/.default/template.php +++ b/local/components/evolution/programs.aggregations/templates/.default/template.php @@ -107,6 +107,7 @@ $this->setFrameMode(true); "", [ "IDS" => $arResult['PROPERTIES']['OFFERS']['VALUE'], + "TITLE" => $arParams['SPECIAL_OFFERS_TITLE'], ] ); ?> diff --git a/local/templates/evolution/css/forms/style.css b/local/templates/evolution/css/forms/style.css index d0891b1..4aea453 100644 --- a/local/templates/evolution/css/forms/style.css +++ b/local/templates/evolution/css/forms/style.css @@ -732,7 +732,7 @@ display: flex; align-items: center; justify-content: center; - width: 60px; + width: 100px; height: 60px; border-radius: 100%; box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.16); diff --git a/local/templates/evolution/css/forms/style.less b/local/templates/evolution/css/forms/style.less index 3d6ad16..cb2b512 100644 --- a/local/templates/evolution/css/forms/style.less +++ b/local/templates/evolution/css/forms/style.less @@ -870,7 +870,7 @@ display: flex; align-items: center; justify-content: center; - width: 60px; + width: 100px; height: 60px; border-radius: 100%; box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.16); diff --git a/local/templates/evolution/css/main/style.css b/local/templates/evolution/css/main/style.css index 99e8a20..b82c0bd 100644 --- a/local/templates/evolution/css/main/style.css +++ b/local/templates/evolution/css/main/style.css @@ -6382,13 +6382,38 @@ main .dropdown_blocks_list .dropdown_block .block_body .transaction_detail ul li position: absolute; right: 0; bottom: 0; - top: 0; - height: 100%; + top: auto; + width: 200px; + height: auto; } @media all and (max-width: 1279px) { .types_grid .grid_item img { - height: 65%; top: auto; + height: auto; + width: 35%; + } +} +@media all and (min-width: 640px) and (max-width: 767px) { + .types_grid .grid_item img { + height: auto !important; + max-width: 70% !important; + } +} +@media all and (min-width: 480px) and (max-width: 639px) { + .types_grid .grid_item img { + height: auto !important; + max-width: 50% !important; + } +} +@media all and (max-width: 479px) { + .types_grid .grid_item img { + height: 130px !important; + width: auto !important; + } +} +@media all and (min-width: 480px) and (max-width: 767px) { + .types_grid .grid_item { + min-height: 300px; } } @media all and (max-width: 767px) { diff --git a/local/templates/evolution/css/main/style.less b/local/templates/evolution/css/main/style.less index f443e3b..80f2669 100644 --- a/local/templates/evolution/css/main/style.less +++ b/local/templates/evolution/css/main/style.less @@ -6908,10 +6908,9 @@ main .dropdown_blocks_list .dropdown_block .block_body { padding: 25px 20px; background: var(--inactive); position: relative; - + .h2 { max-width: 65%; - } ul { @@ -6945,14 +6944,35 @@ main .dropdown_blocks_list .dropdown_block .block_body { position: absolute; right: 0; bottom: 0; - top: 0; - height: 100%; + top: auto; + width: 200px; + height: auto; @media all and (max-width: 1279px) { - height: 65%; - top: auto; - } - } + top: auto; + height: auto; + width: 35%; + } + + @media all and (min-width: 640px) and (max-width: 767px) { + height: auto !important; + max-width: 70% !important; + } + + @media all and (min-width: 480px) and (max-width: 639px) { + height: auto !important; + max-width: 50% !important; + } + + @media all and (max-width: 479px) { + height: 130px !important; + width: auto !important; + } + } + + @media all and (min-width: 480px) and (max-width: 767px) { + min-height: 300px; + } } @media all and (max-width: 767px) { diff --git a/programs/cargo/index.php b/programs/cargo/index.php index 851e647..f12933e 100644 --- a/programs/cargo/index.php +++ b/programs/cargo/index.php @@ -25,6 +25,7 @@ $APPLICATION->AddHeadString(' IBLOCK_ID_PROGRAMS_AGGREGATION_CARGO, "IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS" => IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS_CARGO, "PATH" => "cargo", + "SPECIAL_OFFERS_TITLE" => "Акции и скидки на грузовую технику в лизинг", ] ); ?> diff --git a/programs/special/index.php b/programs/special/index.php index 7f953ea..b8d76b6 100644 --- a/programs/special/index.php +++ b/programs/special/index.php @@ -25,6 +25,7 @@ $APPLICATION->AddHeadString(' IBLOCK_ID_PROGRAMS_AGGREGATION_SPECIAL, "IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS" => IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS_SPECIAL, "PATH" => "special", + "SPECIAL_OFFERS_TITLE" => "Акции и скидки на спецтехнику в лизинг", ] ); ?>