<?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);
?>
<? $colors = ["#1C01A9", "#A8026B", "#04A8A4", ]; ?>
<section id="main_slider">
	<div class="container">
		<div class="main_slider_swiper">
			<p class="slider_active_title"><?= str_replace("₽", "<span style='font-family: montserrat; font-weight: 200;'>₽</span>", $arResult['SLIDES'][0]['NAME']); ?></p>	
		</div>
		<div class="slider_list">
			<div class="scrolled">
				<? $c = 0; ?>
				<? foreach($arResult['SLIDES'] AS $SLIDE): ?>
				<div 
					id="slider_button_<?= $SLIDE['ID']; ?>" 
					class="slider_item" 
					data-title="<?= str_replace("₽", "<span style='font-family: montserrat; font-weight: 200;'>₽</span>", $SLIDE['NAME']); ?>" 
					style="color: <?= $colors[$c]; ?>;" 
					data-image="<?= $SLIDE['DETAIL_PICTURE']; ?>"
					data-tb-image="<?= $SLIDE['DETAIL_PICTURE']; ?>"
					data-sm-image="<?= $SLIDE['PREVIEW_PICTURE']; ?>"
					data-erir="<?= !isset($_GET['advertise']) ? $SLIDE['PROPERTIES']['ADVERTISING_ERIR']['VALUE'] : ""; ?>"
				>
					<p class="item_name"><?= $SLIDE['PROPERTIES']['TAGLINE']['VALUE']; ?></p>
					<span href="<?= $SLIDE['PROPERTIES']['URL']['VALUE']; ?>" class="item_link">Подробнее</span>
					<a href="<?= $SLIDE['PROPERTIES']['URL']['VALUE']; ?>" class="item_link"></a>
				</div>
				<? if($c === 2) { $c = 0; } else { $c++; } ?>
				<? endforeach; ?>
			</div>
			<div class="slider_navto">
				<a href="#"></a>
			</div>
		</div>
	</div>
	<img src="" class="main_slider-image" alt="Специальное предложение" />
	<div class="advblock adv_button_slider">Реклама
		<div class="adv_content">ООО "ЛК Эволюция"</div>
		<div class="adv_content">ИНН 9724016636</div>
		<div id="main_slider_erir" class="adv_content"></div>
	</div>
</section>