46 lines
1.6 KiB
PHP
46 lines
1.6 KiB
PHP
<?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"><?= $arResult['SLIDES'][0]['NAME']; ?></p>
|
|
</div>
|
|
<div class="slider_list">
|
|
<div class="scrolled">
|
|
<? $c = 0; ?>
|
|
<? foreach($arResult['SLIDES'] AS $SLIDE): ?>
|
|
<div
|
|
class="slider_item"
|
|
data-title="<?= $SLIDE['NAME']; ?>"
|
|
style="color: <?= $colors[$c]; ?>;"
|
|
data-image="<?= $SLIDE['DETAIL_PICTURE']; ?>"
|
|
data-tb-image="<?= $SLIDE['DETAIL_PICTURE']; ?>"
|
|
data-sm-image="<?= $SLIDE['PREVIEW_PICTURE']; ?>"
|
|
>
|
|
<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="Специальное предложение" />
|
|
</section>
|