<? 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 class="page-section" id="events">

    <div class="other-news other-news--press-release">
        <div class="container">

            <div class="other-news__inner">

                <div class="other-news__top">
                    <div class="section-title other-news__section-title">
                        <div class="section-title__wrap">
                            <p class="section-title__badge"><?= $arResult['TAG'] ?></p>
                            <h2 data-animate="title" class="title title--h2 section-title__title words lines
                            splitting"><?= $arResult['NAME'] ?></h2>
                        </div>

                    </div>

                    <a target="_blank" href="/about/news/?hash=пресс-релизы#page"
                       data-da-max=".other-news__list-wrap, 767, last"
                       class="button button--size-xl-m button--solid-white other-news__button"><span
                                class="button__text">все пресс-релизы</span></a></div>
                <div class="other-news__list-wrap swiper swiper-backface-hidden" data-other-news-slider="container">
                    <ul class="other-news__list swiper-wrapper">
                        <? foreach ($arResult['ITEMS'] as $k => $arItem) { ?>
                            <?
                            $this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
                            $this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
                            $img1921 = CFile::GetPath($arItem["PROPERTIES"]['IMG_1921']["VALUE"]);
                            $img768 = CFile::GetPath($arItem["PROPERTIES"]['IMG_768']["VALUE"]);
                            $img767 = CFile::GetPath($arItem["PROPERTIES"]['IMG_767']["VALUE"]);

                            ?>
                            <li class="other-news__item swiper-slide" style="">
                                <div class="article-card article-card--other-news">
                                    <a class="article-card__inner" href="<?= $arItem['DETAIL_PAGE_URL'] ?>">
                                        <div class="article-card__image">
                                            <picture>
                                                <source media="(min-width: 768px)"
                                                        srcset="<?= $img768 ?>"
                                                        type="image/webp">
                                                <source media="(max-width: 767px)"
                                                        srcset="<?= $img767 ?>"
                                                        type="image/webp">
                                                <img src="<?= $arItem['PREVIEW_PICTURE']['SRC'] ?>"
                                                     srcset="<?= $arItem['PREVIEW_PICTURE']['SRC'] ?>"
                                                     alt="Картинка" width="1573" height="836" loading="lazy">
                                            </picture>
                                        </div>
                                        <h2 class="title article-card__title"><?= $arItem['NAME'] ?></h2>
                                        <div class="article-card__text">
                                            <p><?= $arItem['PREVIEW_TEXT'] ?></p>
                                        </div>
                                        <div class="item-info item-info--small">
                                            <div class="item-info__wrap">
                                                <p class="item-info__category"><?= $arItem['PROPERTIES']["HASHTAG"]["VALUE"] ?></p>
                                                <div class="item-info__date-wrap">
                                                    <? if ($arItem['PROPERTIES']["DATE"]["VALUE"]): ?>
                                                        <time class="item-info__date"
                                                              datetime="<?= $arItem['PROPERTIES']["DATE"]["VALUE"] ?>">
                                                            <?= explode(' ', $arItem['PROPERTIES']["DATE"]["VALUE"])[0] ?>
                                                        </time>
                                                    <? endif; ?>


                                                    <span class="item-info__readtime">
            <svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-clock">

  <symbol id="ai:local:icon-clock"><path fill="none" stroke="currentColor" stroke-linecap="round"
                                         stroke-linejoin="round" stroke-width="1.2"
                                         d="M10 5.833V10l2.5 2.5M2.5 10a7.5 7.5 0 1 0 15 0 7.5 7.5 0 0 0-15 0Z"></path></symbol><use
                        xlink:href="#ai:local:icon-clock"></use>

</svg>
            <?= $arItem['PROPERTIES']["TIME"]["VALUE"] ?> минут
          </span>
                                                </div>
                                            </div>

                                        </div>
                                    </a>
                                </div>
                            </li>
                        <? } ?>

                    </ul>
                </div>
            </div>

        </div>
    </div>

</section>