51 lines
1.8 KiB
PHP
51 lines
1.8 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);
|
||
?>
|
||
<section id="news" data-page="news_main">
|
||
<div class="container wide">
|
||
<div class="title_wrapper">
|
||
<div class="left">
|
||
<h2 class="section_title">Новости</h2>
|
||
<a href="/about/news/" class="title_link">Все новости</a>
|
||
</div>
|
||
<div class="right news_arrows">
|
||
<button class="prev">
|
||
<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="https://www.w3.org/2000/svg">
|
||
<path d="M7 11L1 6L6.25 1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
||
</svg>
|
||
</button>
|
||
<button class="next">
|
||
<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="https://www.w3.org/2000/svg">
|
||
<path d="M1 1L7 6L1.75 11" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="news_slider_wrapper">
|
||
<div class="news_list">
|
||
<? foreach($arResult['ITEMS'] AS $entry): ?>
|
||
<div class="news_item">
|
||
<p class="news_date"><?= FormatDate("d F Y", MakeTimeStamp($entry['ACTIVE_FROM'])); ?></p>
|
||
<p class="news_title"><?= $entry['NAME']; ?></p>
|
||
<img src="<?= $entry['PREVIEW_PICTURE']; ?>" width="234px" height="234px" alt="" />
|
||
<p class="news_description"><?= $entry['PREVIEW_TEXT']; ?></p>
|
||
<p class="news_link">Подробнее</p>
|
||
<a href="<?= $entry['DETAIL_PAGE_URL']; ?>"></a>
|
||
</div>
|
||
<? endforeach; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|