<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<section data-page="special">
	<div class="container">
		<div class="title_wrapper">
			<div class="left">
				<h1 class="section_title">Спецпредложения</h1>
			</div>
			<div class="right">
				<a href="/catalog/" class="title_link">Полный каталог автомобилей</a>
			</div>
		</div>
		<div class="special">
			<?
				$APPLICATION->IncludeComponent(
					"evolution:special.offers.brand.filter",
					"",
					Array("BANNERS" => $arResult['PROPERTIES']['SPECIAL_OFFERS_BANNERS']['VALUE'])
				);
			?>
			<div class="special_list">
				<? foreach($arResult['ITEMS'] AS $offer): ?>
				<div class="special_item">
					<a href="<?= $offer['DETAIL_PAGE_URL']; ?>">
						<span class="special_name"><?= $offer['NAME']; ?></span>
						<img src="<?= $offer['PREVIEW_PICTURE']; ?>" alt="<?= $offer['NAME']; ?>"/>
						<? if(!isset($_GET['advertise']) && $offer['PROPERTIES']['ADVERTISING_ERIR']['VALUE']): ?>
							<div class="advblock adv_button_news">Реклама
								<div class="adv_content">ООО "ЛК Эволюция"</div>
								<div class="adv_content">ИНН 9724016636</div>
								<div class="adv_content">erid: <?= $offer['PROPERTIES']['ADVERTISING_ERIR']['VALUE']; ?></div>
							</div>
						<? endif; ?>
						<span class="speacial_text"><?= $offer['PREVIEW_TEXT']; ?></span>
						<span class="special_link">Подробнее</span>
					</a>
				</div>
				<? endforeach; ?>
			</div>
			<?= $arResult['NAV_STRING']; ?>
			<?/*
			<div class="pagination">
				<ul>
					<li>
					<a href="#">1</a>
					</li>
					<li>
					<a href="#">2</a>
					</li>
					<li>
					<a href="#">3</a>
					</li>
					<li>
					<a href="#">4</a>
					</li>
					<li>
					<a href="#">5</a>
					</li>
					<li>
					<a href="#">6</a>
					</li>
					<li>........</li>
					<li>
					<a href="#">123</a>
					</li>
					<li>
					<a href="#">></a>
					</li>
				</ul>
			</div>
			*/?>
		</div>
	</div>
</section>