diff --git a/local/components/evolution/programs.aggregations/templates/.default/template.php b/local/components/evolution/programs.aggregations/templates/.default/template.php
index 3066244..2200f45 100644
--- a/local/components/evolution/programs.aggregations/templates/.default/template.php
+++ b/local/components/evolution/programs.aggregations/templates/.default/template.php
@@ -87,6 +87,50 @@ $this->setFrameMode(true);
+
+ $special_offers_title = "Акции и скидки на ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." в лизинг";
+
+ if(isset($arResult['BRAND']))
+ {
+ if(isset($arResult['TYPE']))
+ {
+ $special_offers_title = "Акции и скидки на ".mb_strtolower($arResult['TYPE_PLURAL'])." ".$arResult['BRAND_NAME']." в лизинг";
+ }
+ else
+ {
+ $special_offers_title = "Акции и скидки на ".mb_strtolower($arParams['SHORT_TITLE_ACCUSATIVE'])." ".$arResult['BRAND_NAME']." в лизинг";
+ }
+ }
+ elseif(isset($arResult['TYPE']))
+ {
+ $special_offers_title = "Акции и скидки на ".mb_strtolower($arResult['TYPE_PLURAL'])." в лизинг";
+ }
+ elseif(isset($arResult['GROUP']))
+ {
+ $special_offers_title = "Акции и скидки на ".mb_strtolower($arResult['GROUP_ACCUSATIVE'])." в лизинг";
+ }
+?>
+
+ if(is_array($arResult['PROPERTIES']['OFFERS']['VALUE']) && count($arResult['PROPERTIES']['OFFERS']['VALUE']) > 0): ?>
+
+
+
= $special_offers_title; ?>
+
+ $APPLICATION->IncludeComponent(
+ "evolution:special.offers.banners",
+ "",
+ Array(
+ "BANNERS" => $arResult['PROPERTIES']['OFFERS']['VALUE'],
+ "PAGINATION" => "N",
+ )
+ );
+ ?>
+
+
+ endif; ?>
+
+
+/*
@@ -114,6 +158,9 @@ $this->setFrameMode(true);
]
);
?>
+
+*/
+?>
if(!empty($arResult['DETAIL_TEXT'])): ?>
if(isset($arResult['TYPE']) && isset(($arResult['BRAND']))): ?>
diff --git a/local/components/evolution/special.offers.banners/.description.php b/local/components/evolution/special.offers.banners/.description.php
new file mode 100644
index 0000000..a20bdf3
--- /dev/null
+++ b/local/components/evolution/special.offers.banners/.description.php
@@ -0,0 +1,8 @@
+
+if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
+
+$arTemplateDescription = array(
+ "NAME" => GetMessage("DEFAULT_NAME"),
+ "DESCRIPTION" => GetMessage("DEFAULT_DESC"),
+);
+?>
\ No newline at end of file
diff --git a/local/components/evolution/special.offers.banners/component.php b/local/components/evolution/special.offers.banners/component.php
new file mode 100644
index 0000000..14234c2
--- /dev/null
+++ b/local/components/evolution/special.offers.banners/component.php
@@ -0,0 +1,62 @@
+
+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 */
+
+use Bitrix\Main\Context,
+ Bitrix\Main\Type\DateTime,
+ Bitrix\Main\Loader,
+ Bitrix\Iblock;
+
+if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
+{
+ if(CModule::IncludeModule('iblock'))
+ {
+ $arResult = array();
+ $sort = Array("ID" => $arParams['BANNERS']);
+ $filter = Array("IBLOCK_ID" => IBLOCK_ID_SPECIALS, "ID" => $arParams['BANNERS']);
+ if(!isset($_GET['advertise'])) { $filter["ACTIVE"] = "Y"; }
+ $options = Array("nPageSize" => 1000);
+
+ if(isset($arParams["sort"]))
+ {
+ $sort = $arParams["sort"];
+ }
+
+ if(isset($arParams["options"]))
+ {
+ $options = $arParams["options"];
+ }
+
+ if(isset($arParams["filter"]))
+ {
+ $filter = array_merge($filter, $arParams["filter"]);
+ }
+
+ $res = CIBlockElement::GetList($sort, $filter, false, $options);
+ $arResult = Array();
+ $arResult['BANNERS'] = Array();
+
+ while ($obElement = $res->GetNextElement())
+ {
+ $ar_res = $obElement->GetFields();
+ $ar_res['PROPERTIES'] = $obElement->GetProperties();
+
+ if(isset($ar_res['PREVIEW_PICTURE']))
+ {
+ $ar_res['PREVIEW_PICTURE'] = CFile::GetPath($ar_res['PREVIEW_PICTURE']);
+ }
+
+ $arResult['BANNERS'][] = $ar_res;
+ }
+
+ $this->IncludeComponentTemplate();
+ }
+}
\ No newline at end of file
diff --git a/local/components/evolution/special.offers.banners/lang/ru/.description.php b/local/components/evolution/special.offers.banners/lang/ru/.description.php
new file mode 100644
index 0000000..1f56ae4
--- /dev/null
+++ b/local/components/evolution/special.offers.banners/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/special.offers.banners/templates/.default/style.css b/local/components/evolution/special.offers.banners/templates/.default/style.css
new file mode 100644
index 0000000..e69de29
diff --git a/local/components/evolution/special.offers.banners/templates/.default/template.php b/local/components/evolution/special.offers.banners/templates/.default/template.php
new file mode 100644
index 0000000..e4ed044
--- /dev/null
+++ b/local/components/evolution/special.offers.banners/templates/.default/template.php
@@ -0,0 +1,59 @@
+setFrameMode(true);
+?>
+>
+
">
+ foreach($arResult['BANNERS'] AS $banner): ?>
+
+ endforeach; ?>
+
+
+ if(is_array($arResult['BANNERS']) && count($arResult['BANNERS']) > 2): ?>
+
+ endif; ?>
+
+ if(is_array($arResult['BANNERS']) && count($arResult['BANNERS']) == 0): ?>
+
+ endif; ?>
+
\ No newline at end of file