<? 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);

?>
    <div class="container container--pt-header container--mb">

        <div class="breadcrumbs breadcrumbs--pl">
            <ol class="breadcrumbs__list">
                <li class="breadcrumbs__item">
                    <a href="/" class="breadcrumbs__link">

                        <span class="breadcrumbs__link-text">Главная</span>

                    </a>
                </li><li class="breadcrumbs__item">
          <span class="breadcrumbs__link breadcrumbs__link--current">

            <span class="breadcrumbs__link-text"><?=$arResult['BREAD_NAME']?></span>

</span>
                </li>
            </ol>
        </div>

    </div>

    <section class="page-section page-section--no-pt">

        <div class="events">
            <div class="container">

                <div class="events__inner">
                    <div class="events__header">
                        <h1 class="title events__title">
                            <?if ($arResult['TITLE']['NAME']){
                                echo  $arResult['TITLE']['NAME'];
                            } else {?>
                            мероприятия UDV&nbsp;Group
                            <?}?>
                        </h1>
                        <p>
                            <?if ($arResult['TITLE']['PREVIEW_TEXT']){
                                echo  $arResult['TITLE']['PREVIEW_TEXT'];
                            } else {?>
                                UDV Group предлагает множество мероприятий в&nbsp;онлайн и&nbsp;оффлайн форматах. Посетить мероприятия может любой желающий
                            <?}?>
                        </p>
                    </div>
                    <div class="events__article-controls-wrap">
                        <div class="article-controls swiper events__article-controls article-controls--horizontal" data-tabs-controls-slider="container">
                            <ul class="article-controls__list swiper-wrapper" data-tabs-controls-slider="wrapper">
                                <li class="article-controls__item swiper-slide" data-tabs-controls-slider="slide">
                                    <a href="/about/events/">
                                        <button class="article-controls__btn is-active" data-articles="all">
                <span class="article-controls__icon">
                  <svg width="0.93em" height="1em" viewBox="0 0 12 13" data-icon="icon-right">

      <symbol id="ai:local:icon-right"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M7.215 3.465 10.25 6.5 7.215 9.535M1.75 6.5h8.415"></path></symbol><use xlink:href="#ai:local:icon-right"></use>

    </svg>
                </span>
                                            <span class="article-controls__text">все мероприятия</span>
                                        </button>
                                    </a>
                                </li>

                                <li class="article-controls__item swiper-slide" data-tabs-controls-slider="slide">
                                    <a class="line-link" href="?line=7#page">
                                        <button class="article-controls__btn" data-articles="eco">
                                                <span class="article-controls__icon">
                                                  <svg width="0.93em" height="1em" viewBox="0 0 12 13" data-icon="icon-right">

                                      <use xlink:href="#ai:local:icon-right"></use>

                                    </svg>
                                                </span>
                                            <span class="article-controls__text">онлайн</span>
                                        </button>
                                    </a>
                                </li>
                                <li class="article-controls__item swiper-slide" data-tabs-controls-slider="slide">
                                    <a class="line-link" href="?line=8#page">
                                    <button class="article-controls__btn" data-articles="eco">
            <span class="article-controls__icon">
              <svg width="0.93em" height="1em" viewBox="0 0 12 13" data-icon="icon-right">

  <use xlink:href="#ai:local:icon-right"></use>

</svg>
            </span>
                                        <span class="article-controls__text">оффлайн</span>
                                    </button>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class="events__search-form">
                            <form action="">
                                <div class="custom-input" data-input-focus="">
                                    <label>
                                        <input type="search" class="search" name="search" value="<?=$_GET['search']?>">
                                        <span class="custom-input__label">Поиск по названию мероприятия</span>
                                    </label>
                                    <span class="custom-input__icon">
        <svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-search">

  <symbol id="ai:local:icon-search"><path fill="none" stroke="#0B2027" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m17.5 17.5-5-5m-10-4.167a5.834 5.834 0 1 0 11.667 0 5.834 5.834 0 0 0-11.667 0Z"></path></symbol><use xlink:href="#ai:local:icon-search"></use>

</svg>
      </span>

                                </div>
                                <button type="submit" class="visually-hidden">поиск</button>
                            </form>
                        </div>
                    </div>
                    <?if ($_GET['line']){
                        $GLOBALS['arrFilter']= array('PROPERTY_LINE' => $_GET['line']);
                    }
                    if ($_GET['search']){
                        $GLOBALS['arrFilter']= array('?NAME' => $_GET['search']);
                    }


                    $APPLICATION->IncludeComponent(
                        "bitrix:news.list",
                        "events_tags",
                        array(
                            "USE_FILTER" => "Y",
                            "IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
                            "IBLOCK_ID" => $arParams["IBLOCK_ID"],
                            "NEWS_COUNT" => $arParams["NEWS_COUNT"],
                            "SORT_BY1" => $arParams["SORT_BY1"],
                            "SORT_ORDER1" => $arParams["SORT_ORDER1"],
                            "SORT_BY2" => $arParams["SORT_BY2"],
                            "SORT_ORDER2" => $arParams["SORT_ORDER2"],
                            "FIELD_CODE" => $arParams["LIST_FIELD_CODE"],
                            "PROPERTY_CODE" => array(
                                0 => "DATE",
                                1 => "HASHTAG",
                            ),
                            "SET_TITLE" => $arParams["SET_TITLE"],
                            "SET_LAST_MODIFIED" => $arParams["SET_LAST_MODIFIED"],
                            "MESSAGE_404" => $arParams["MESSAGE_404"],
                            "SET_STATUS_404" => $arParams["SET_STATUS_404"],
                            "SHOW_404" => $arParams["SHOW_404"],
                            "FILE_404" => $arParams["FILE_404"],
                            "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
                            "ADD_SECTIONS_CHAIN" => $arParams["ADD_SECTIONS_CHAIN"],
                            "CACHE_TYPE" => "N",
                            "CACHE_TIME" => $arParams["CACHE_TIME"],
                            "CACHE_FILTER" => "N",
                            "CACHE_GROUPS" => "N",
                            "DISPLAY_TOP_PAGER" => $arParams["DISPLAY_TOP_PAGER"],
                            "DISPLAY_BOTTOM_PAGER" => $arParams["DISPLAY_BOTTOM_PAGER"],
                            "PAGER_TITLE" => $arParams["PAGER_TITLE"],
                            "PAGER_TEMPLATE" => $arParams["PAGER_TEMPLATE"],
                            "PAGER_SHOW_ALWAYS" => $arParams["PAGER_SHOW_ALWAYS"],
                            "PAGER_DESC_NUMBERING" => $arParams["PAGER_DESC_NUMBERING"],
                            "PAGER_DESC_NUMBERING_CACHE_TIME" => $arParams["PAGER_DESC_NUMBERING_CACHE_TIME"],
                            "PAGER_SHOW_ALL" => $arParams["PAGER_SHOW_ALL"],
                            "PAGER_BASE_LINK_ENABLE" => $arParams["PAGER_BASE_LINK_ENABLE"],
                            "PAGER_BASE_LINK" => $arParams["PAGER_BASE_LINK"],
                            "PAGER_PARAMS_NAME" => $arParams["PAGER_PARAMS_NAME"],
                            "DISPLAY_DATE" => $arParams["DISPLAY_DATE"],
                            "DISPLAY_NAME" => "Y",
                            "DISPLAY_PICTURE" => $arParams["DISPLAY_PICTURE"],
                            "DISPLAY_PREVIEW_TEXT" => $arParams["DISPLAY_PREVIEW_TEXT"],
                            "PREVIEW_TRUNCATE_LEN" => $arParams["PREVIEW_TRUNCATE_LEN"],
                            "ACTIVE_DATE_FORMAT" => $arParams["LIST_ACTIVE_DATE_FORMAT"],
                            "USE_PERMISSIONS" => $arParams["USE_PERMISSIONS"],
                            "GROUP_PERMISSIONS" => $arParams["GROUP_PERMISSIONS"],
                            "FILTER_NAME" => "arrFilter",
                            "HIDE_LINK_WHEN_NO_DETAIL" => $arParams["HIDE_LINK_WHEN_NO_DETAIL"],
                            "CHECK_DATES" => $arParams["CHECK_DATES"],
                            "STRICT_SECTION_CHECK" => $arParams["STRICT_SECTION_CHECK"],

                            "PARENT_SECTION" => $arResult["VARIABLES"]["SECTION_ID"],
                            "PARENT_SECTION_CODE" => $arResult["VARIABLES"]["SECTION_CODE"],
                            "DETAIL_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["detail"],
                            "SECTION_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["section"],
                            "IBLOCK_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["news"],
                        ),
                        $component
                    ); ?>
                </div>

            </div>
        </div>

    </section>

<? $APPLICATION->IncludeComponent("bitrix:main.include", "", array(
    "AREA_FILE_SHOW" => "file",    // Показывать включаемую область
    "PATH" => SITE_DIR . "include/form/main_form.php",    // Путь к файлу области
),
    false
); ?>