Станицы по UDV

parent b92ef61e
<?
$aMenuLinks = Array(
Array(
"О группе компаний UDV",
SITE_DIR."/about/",
Array(),
Array(),
""
),
Array(
"Новости",
SITE_DIR."/about/news/",
Array(),
Array(),
""
),
Array(
"Мероприятия",
SITE_DIR."/about/events/",
Array(),
Array(),
""
),
Array(
"Исследовательский центр",
SITE_DIR."/about/research-center/",
Array(),
Array(),
""
),
Array(
"Контакты",
SITE_DIR."/about/contacts/",
Array(),
Array(),
""
),
Array(
"Карьера в UDV GROUP",
SITE_DIR."#",
Array(),
Array(),
""
)
);
?>
\ No newline at end of file
<?
$sSectionName = "Исследовательский центр";
$arDirProperties = Array(
);
?>
\ No newline at end of file
This diff is collapsed.
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Новый раздел");?>
<?php
$api_key = "6qnzrpqxa93pq5g5h1em51bg16heq1srz39fnuye"; // Ваш ключ с личного кабинета unisender
$list_ids = 82; // ID списка, в который вы хотите добавить, пользователя
$name = 'тест';
$phone = '79222222222';
$double_optin = 3; // аргумент взятый с https://www.unisender.com/ru/support/integration/api/subscribe
$overload = 0; // аргумент взятый с https://www.unisender.com/ru/support/integration/api/subscribe
$email_fo="avs@vt2b.ru";
// Создаём запрос
$subscribe = array ( // Создаём массив с любым именем
'api_key' => $api_key,
'list_ids' => $list_ids,
'double_optin' => $double_optin,
'fields[Name]' => $name,
'fields[phone]' => $phone,
'fields[email]' => $email_fo,
'fields[overload]' => $overload,
);
// Устанавливаем соединение
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $subscribe); // Сюда написать переменную с нашим массивом
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_URL,
'https://api.unisender.com/ru/api/subscribe?format=json'); //Меняем на метод, который выбрали, в моём случае это subscribe
$result = curl_exec($ch);
?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
\ No newline at end of file
<section class="page-section page-section--p-b page-section--bg-white" id="write-to-us-form">
<div class="write-to-us-form">
<div class="container write-to-us-form__container">
<div class="write-to-us-form__inner">
<div class="write-to-us-form__aside">
<div class="write-to-us-form__bg">
<div class="write-to-us-form__bg-gradient">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl
.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl@3x.webp 3x"
type="image/webp">
<source media="(min-width: 768px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d@3x.webp 3x"
type="image/webp">
<source media="(max-width: 767px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@3x.webp 3x"
type="image/webp">
<img src="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form.png"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@2x.png 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@3x.png 3x"
alt="Изображение." width="1100" height="606" loading="lazy">
</picture>
</div>
<div class="write-to-us-form__bg-pixels" data-pixels="write-to-us-form" data-pixels-qty="35">
</div>
</div>
<div class="section-title write-to-us-form__title">
<div class="section-title__wrap">
<p class="section-title__badge">оставьте заявку</p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines splitting"
style="--word-total: 4; --line-total: 2;">записаться на онлайн мероприятие</h2>
</div>
</div>
<p class="write-to-us-form__description">Ответим в&nbsp;рабочие дни с&nbsp;9:00 до&nbsp;18:00 по&nbsp;Москве</p>
</div>
<div class="write-to-us-form__form" data-form-validate="" data-callback="request"
data-button-disabled="">
<form action="#" novalidate="">
<div class="write-to-us-form__fields">
<div class="custom-input write-to-us-form__field write-to-us-form__field--wide"
data-validate-type="text" data-required="" data-message-base="Введите имя"
data-message-extra="Введите корректное имя" data-message-succes="" data-input-focus="">
<label>
<input type="text" name="name" minlength="2" maxlength="20">
<span class="custom-input__label">Ваше имя</span>
</label>
</div>
<div class="custom-input" data-validate-type="email" data-required=""
data-message-base="Введите e-mail" data-message-extra="Не корректный e-mail"
data-message-succes="" data-input-focus="">
<label>
<input type="email" name="email" maxlength="256">
<span class="custom-input__label">Электронная почта</span>
</label>
</div>
<div class="custom-input" data-validate-type="phone" data-required=""
data-message-base="Введите номер телефона" data-message-extra="не корректный номепр"
data-message-succes="" data-input-focus="" data-phone-length="18">
<label>
<input type="tel" name="email" maxlength="256">
<span class="custom-input__label">Номер телефона</span>
</label>
</div>
<div class="custom-input write-to-us-form__field write-to-us-form__field--wide"
data-input-focus="">
<label>
<input type="text" name="comment">
<span class="custom-input__label">Комментарий</span>
</label>
</div>
</div>
<div class="custom-toggle write-to-us-form__toggle"
data-message-base="Согласитесь с политикой конфиденциальности"
data-validate-type="checkbox">
<label>
<input type="checkbox" required="">
<span class="custom-toggle__icon">
<svg width="1em" height="1em" viewBox="0 0 12 12" data-icon="icon-check">
<symbol id="ai:local:icon-check"><path fill="none" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="1.5"
d="M2.5 6 5 8.5l5-5"></path></symbol><use
xlink:href="#ai:local:icon-check"></use>
</svg>
</span>
<span class="custom-toggle__label">
<span class="custom-toggle__label-text">Я согласен с <a href="#">Политикой конфиденциальности</a></span>
<span class="custom-toggle__label-icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span>
</span>
</label>
</div>
<button type="submit"
class="button button--solid-green button--size-m write-to-us-form__send-btn is-disabled">
<span class="button__text">записаться</span><span class="button__icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span></button>
</form>
</div>
</div>
</div>
</div>
</section>
<section class="page-section page-section--p-b" id="demo">
<div class="write-to-us-form">
<div class="container write-to-us-form__container">
<div class="write-to-us-form__inner">
<div class="write-to-us-form__aside">
<div class="write-to-us-form__bg">
<div class="write-to-us-form__bg-gradient">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl
.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl@3x.webp 3x"
type="image/webp">
<source media="(min-width: 768px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d@3x.webp 3x"
type="image/webp">
<source media="(max-width: 767px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@3x.webp 3x"
type="image/webp">
<img src="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form.png"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@2x.png 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@3x.png 3x"
alt="Изображение." width="1100" height="606" loading="lazy">
</picture>
</div>
<div class="write-to-us-form__bg-pixels" data-pixels="write-to-us-form" data-pixels-qty="35">
</div>
</div>
<div class="section-title write-to-us-form__title">
<div class="section-title__wrap">
<p class="section-title__badge">оставьте заявку</p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines splitting"
style="--word-total: 7; --line-total: 2;">закажите персональную демонстрацию продукта</h2>
</div>
</div>
<p class="write-to-us-form__description">Ответим в рабочие дни с 9:00 до 18:00 по Москве</p>
</div>
<div class="write-to-us-form__form" data-form-validate="" data-callback="request"
data-button-disabled="">
<form action="#" id="product-form" novalidate="">
<input type="hidden" name="url" value="<?=$APPLICATION->GetCurDir()?>">
<input type="hidden" name="listid" value="82">
<div class="write-to-us-form__fields">
<div class="custom-input write-to-us-form__field write-to-us-form__field--wide"
data-validate-type="text" data-required="" data-message-base="Введите имя"
data-message-extra="Введите корректное имя" data-message-succes="" data-input-focus="">
<label>
<input type="text" name="name" minlength="2" maxlength="20">
<span class="custom-input__label">Ваше имя</span>
</label>
</div>
<div class="custom-input" data-validate-type="email" data-required=""
data-message-base="Введите e-mail" data-message-extra="Не корректный e-mail"
data-message-succes="" data-input-focus="">
<label>
<input type="email" name="email" maxlength="256">
<span class="custom-input__label">Электронная почта</span>
</label>
</div>
<div class="custom-input" data-validate-type="phone" data-required=""
data-message-base="Введите номер телефона" data-message-extra="Не корректный номер"
data-message-succes="" data-input-focus="" data-phone-length="18">
<label>
<input type="tel" name="phone" maxlength="256">
<span class="custom-input__label">Номер телефона</span>
</label>
</div>
<div class="custom-input write-to-us-form__field write-to-us-form__field--wide"
data-input-focus="">
<label>
<input type="text" name="comment">
<span class="custom-input__label">Комментарий</span>
</label>
</div>
</div>
<div class="custom-toggle write-to-us-form__toggle"
data-message-base="Согласитесь с политикой конфиденциальности"
data-validate-type="checkbox">
<label>
<input type="checkbox" required="">
<span class="custom-toggle__icon">
<svg width="1em" height="1em" viewBox="0 0 12 12" data-icon="icon-check">
<symbol id="ai:local:icon-check"><path fill="none" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="1.5"
d="M2.5 6 5 8.5l5-5"></path></symbol><use
xlink:href="#ai:local:icon-check"></use>
</svg>
</span>
<span class="custom-toggle__label">
<span class="custom-toggle__label-text">Я согласен с <a href="#">Политикой конфиденциальности</a></span>
<span class="custom-toggle__label-icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span>
</span>
</label>
</div>
<button type="submit"
class="button button--solid-green button--size-m write-to-us-form__send-btn is-disabled">
<span class="button__text">отправить запрос</span><span class="button__icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span></button>
</form>
</div>
</div>
</div>
</div>
</section>
<section class="page-section page-section--p-b page-section--pt-170-120-85" id="demo">
<div class="write-to-us-form write-to-us-form--box-shadow-xl-d">
<div class="container write-to-us-form__container">
<div class="write-to-us-form__inner">
<div class="write-to-us-form__aside">
<div class="write-to-us-form__bg">
<div class="write-to-us-form__bg-gradient">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl
.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-xl@3x.webp 3x"
type="image/webp">
<source media="(min-width: 768px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form-d@3x.webp 3x"
type="image/webp">
<source media="(max-width: 767px)"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form.webp, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@2x.webp 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@3x.webp 3x"
type="image/webp">
<img src="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form.png"
srcset="<?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@2x.png 2x, <?= SITE_TEMPLATE_PATH ?>/images/bg/bg-write-to-us-form@3x.png 3x"
alt="Изображение." width="1100" height="606" loading="lazy">
</picture>
</div>
<div class="write-to-us-form__bg-pixels" data-pixels="write-to-us-form" data-pixels-qty="35">
</div>
</div>
<div class="section-title write-to-us-form__title">
<div class="section-title__wrap">
<p class="section-title__badge">оставьте заявку</p>
<h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting is-show"
style="--word-total: 7; --line-total: 2;">напишите нам, если у вас есть вопросы</h2>
</div>
</div>
<p class="write-to-us-form__description">Ответим в&nbsp;рабочие дни с&nbsp;9:00 до&nbsp;18:00 по&nbsp;Москве</p>
</div>
<div class="write-to-us-form__form" data-form-validate="" data-callback="request"
data-button-disabled="">
<form action="#" id="event-form" novalidate="">
<div class="write-to-us-form__fields">
<div class="custom-input write-to-us-form__field write-to-us-form__field--wide"
data-validate-type="text" data-required="" data-message-base="Введите имя"
data-message-extra="Введите корректное имя" data-message-succes="" data-input-focus="">
<label>
<input type="text" name="name" minlength="2" maxlength="20">
<span class="custom-input__label">Ваше имя</span>
</label>
</div>
<div class="custom-input" data-validate-type="email" data-required=""
data-message-base="Введите e-mail" data-message-extra="Не корректный e-mail"
data-message-succes="" data-input-focus="">
<label>
<input type="email" name="email" maxlength="256">
<span class="custom-input__label">Электронная почта</span>
</label>
</div>
<div class="custom-input" data-validate-type="phone" data-required=""
data-message-base="Введите номер телефона" data-message-extra="Не корректный номер"
data-message-succes="" data-input-focus="" data-phone-length="18">
<label>
<input type="tel" name="email" maxlength="256">
<span class="custom-input__label">Номер телефона</span>
</label>
</div>
<div class="custom-input write-to-us-form__field write-to-us-form__field--wide"
data-input-focus="">
<label>
<input type="text" name="comment">
<span class="custom-input__label">Комментарий</span>
</label>
</div>
</div>
<div class="custom-toggle write-to-us-form__toggle"
data-message-base="Согласитесь с политикой конфиденциальности"
data-validate-type="checkbox">
<label>
<input type="checkbox" required="">
<span class="custom-toggle__icon">
<svg width="1em" height="1em" viewBox="0 0 12 12" data-icon="icon-check">
<symbol id="ai:local:icon-check"><path fill="none" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="1.5"
d="M2.5 6 5 8.5l5-5"></path></symbol><use
xlink:href="#ai:local:icon-check"></use>
</svg>
</span>
<span class="custom-toggle__label">
<span class="custom-toggle__label-text">Я согласен с <a href="#">Политикой конфиденциальности</a></span>
<span class="custom-toggle__label-icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span>
</span>
</label>
</div>
<button type="submit"
class="button button--solid-green button--size-m write-to-us-form__send-btn is-disabled">
<span class="button__text">отправить запрос</span><span class="button__icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span></button>
</form>
</div>
</div>
</div>
</div>
</section>
\ No newline at end of file
<?
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
use Bitrix\Main\Mail\Event;
if ($_POST['name']){
if ($_POST['list']){
$listId=(int)$_POST['list'];
} else $listId=82;
echo sendUnicender($_POST['name'],$_POST['phone'],$_POST['email'],$listId);
Event::send(array(
"EVENT_NAME" => "FORM_SEND",
"LID" => "s1",
"C_FIELDS" => array(
"NAME" => $_POST['name'],
"EMAIL" => $_POST['email'],
"PHONE" => $_POST['phone'],
"URL" => $_POST['url'],
"COMMENT" => $_POST['comment'],
),
));
}
?>
<?
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
use Bitrix\Main\Mail\Event;
if ($_POST['email']){
$listId=3;
echo sendUnicender($_POST['name'],$_POST['phone'],$_POST['email'],$listId);
}
?>
<?
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
use Bitrix\Main\Mail\Event;
if ($_POST['name']){
if ($_POST['list']){
$listId=(int)$_POST['list'];
} else $listId=82;
echo sendUnicender($_POST['name'],$_POST['phone'],$_POST['email'],$listId);
Event::send(array(
"EVENT_NAME" => "FORM_SEND",
"LID" => "s1",
"C_FIELDS" => array(
"NAME" => $_POST['name'],
"EMAIL" => $_POST['email'],
"PHONE" => $_POST['phone'],
"URL" => $_POST['url'],
"COMMENT" => $_POST['comment'],
),
));
}
?>
<svg xmlns="http://www.w3.org/2000/svg" width="728" height="676" viewBox="0 0 728 676" fill="none">
<path d="M676 520H728V468H676V520H624L624 468H676V312L728 312V260H676V312H624V260H676V156L728 156V104H676V156L624 156L624 52L572 52L572 0L520 2.27299e-06V52L572 52V104H520V52L364 52L364 9.09197e-06L312 1.1365e-05V52L364 52L364 104H312V52L208 52L208 104H156L156 52L208 52L208 1.59109e-05L156 1.81839e-05V52L52 52L52 260L4.52995e-06 260L0 312H52L52 260L104 260L104 312L52 312L52 416H104V468H52L52 416H1.3638e-05L0 468H52L52 572H104V624H156L156 676H208V624L156 624L156 572H208V624H364L364 676H416V624H364L364 572H416V624H520V676H572V624H520V572H572V624H676V520Z" fill="#00D29D"/>
</svg>
\ No newline at end of file
import{s as e,F as i,i as o,d as l}from"../scripts.js";class h{constructor(t={}){this._scrollLock=e,this._focusLock=new i,this._initLenis=o,this._destroyLenis=l,this._modalOpenElements=document.querySelectorAll("[data-open-modal]"),this._stackModalElements=[],this._openedModalElement=null,this._modalName=null,this._enableScrolling=!0,this._settingKey="default",this._settings=t,this._preventDefault=this._settings[this._settingKey].preventDefault,this._stopPlay=this._settings[this._settingKey].stopPlay,this._lockFocus=this._settings[this._settingKey].lockFocus,this._startFocus=this._settings[this._settingKey].startFocus,this._focusBack=this._settings[this._settingKey].focusBack,this._eventTimeout=this._settings[this._settingKey].eventTimeout,this._resetScrollPos=this._settings[this._settingKey].resetScrollPos,this._openCallback=this._settings[this._settingKey].openCallback,this._closeCallback=this._settings[this._settingKey].closeCallback,this._documentKeydownHandler=this._documentKeydownHandler.bind(this),this._documentClickHandler=this._documentClickHandler.bind(this),this._modalClickHandler=this._modalClickHandler.bind(this),this._init()}_init(){this._modalOpenElements.length&&document.addEventListener("click",this._documentClickHandler)}_setSettings(t=this._settingKey){this._settings[t]&&(this._preventDefault=typeof this._settings[t].preventDefault=="boolean"?this._settings[t].preventDefault:this._settings[this._settingKey].preventDefault,this._stopPlay=typeof this._settings[t].stopPlay=="boolean"?this._settings[t].stopPlay:this._settings[this._settingKey].stopPlay,this._lockFocus=typeof this._settings[t].lockFocus=="boolean"?this._settings[t].lockFocus:this._settings[this._settingKey].lockFocus,this._startFocus=typeof this._settings[t].startFocus=="boolean"?this._settings[t].startFocus:this._settings[this._settingKey].startFocus,this._focusBack=typeof this._settings[t].lockFocus=="boolean"?this._settings[t].focusBack:this._settings[this._settingKey].focusBack,this._resetScrollPos=typeof this._settings[t].resetScrollPos=="boolean"?this._settings[t].resetScrollPos:this._settings[this._settingKey].resetScrollPos,this._eventTimeout=typeof this._settings[t].eventTimeout=="number"?this._settings[t].eventTimeout:this._settings[this._settingKey].eventTimeout,this._openCallback=this._settings[t].openCallback||this._settings[this._settingKey].openCallback,this._closeCallback=this._settings[t].closeCallback||this._settings[this._settingKey].closeCallback)}_documentClickHandler(t){const s=t.target;s.closest("[data-open-modal]")&&(t.preventDefault(),this._modalName=s.closest("[data-open-modal]").dataset.openModal,this._modalName&&this.open())}_documentKeydownHandler(t){(t.key==="Escape"||t.key==="Esc")&&(t.preventDefault(),this.close(document.querySelector(".modal.is-active").dataset.modal))}_modalClickHandler(t){const s=t.target;s.closest("[data-close-modal]")&&(s.closest('[data-close-modal="back"]')?this.back():(this.close(s.closest("[data-modal]").dataset.modal),this._stackModalElements=[]))}_addListeners(t){t.addEventListener("click",this._modalClickHandler),document.addEventListener("keydown",this._documentKeydownHandler)}_removeListeners(t){t.removeEventListener("click",this._modalClickHandler),document.removeEventListener("keydown",this._documentKeydownHandler)}_stopInteractive(t){this._stopPlay&&(t.querySelectorAll("video, audio").forEach(s=>s.pause()),t.querySelectorAll("[data-iframe]").forEach(s=>{s.querySelector("iframe").contentWindow.postMessage('{"event": "command", "func": "pauseVideo", "args": ""}',"*")}))}_autoPlay(t){t.querySelectorAll("[data-iframe]").forEach(s=>{s.closest("[data-auto-play]")&&s.querySelector("iframe").contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")})}open(t=this._modalName){const s=document.querySelector(`[data-modal="${t}"]`);!s||s.classList.contains("is-active")||(document.removeEventListener("click",this._documentClickHandler),this._destroyLenis(),this._openedModalElement=document.querySelector(".modal.is-active"),this._openedModalElement&&(this._scrollLock.enablePageScroll(this._openedModalElement),this._scrollLock.disablePageScroll(s),this._enableScrolling=!1,this.close(this._openedModalElement.dataset.modal)),this._setSettings(t),s.classList.add("is-active"),t!==this._stackModalElements[this._stackModalElements.length-1]&&this._stackModalElements.push(t),this._openedModalElement||this._scrollLock.disablePageScroll(s),this._openCallback&&this._openCallback(),this._lockFocus&&this._focusLock.lock(".modal.is-active",this._startFocus),this._resetScrollPos&&s.scrollTo(0,0),setTimeout(()=>{this._addListeners(s),this._autoPlay(s),document.addEventListener("click",this._documentClickHandler)},this._eventTimeout))}back(){if(!this._stackModalElements.length)return;const t=this._stackModalElements[this._stackModalElements.length-1],s=this._stackModalElements[this._stackModalElements.length-2];this._stackModalElements.length===1&&(this._stackModalElements=[]),s&&(this._stackModalElements.pop(),this.open(s)),this.close(t)}close(t=this._modalName){const s=document.querySelector(`[data-modal="${t}"]`);document.removeEventListener("click",this._documentClickHandler),!(!s||!s.classList.contains("is-active"))&&(this._initLenis(),this._lockFocus&&this._focusLock.unlock(this._focusBack),s.classList.remove("is-active"),this._removeListeners(s),this._stopInteractive(s),this._closeCallback&&this._closeCallback(),this._enableScrolling&&setTimeout(()=>{this._scrollLock.enablePageScroll(s)},this._eventTimeout),setTimeout(()=>{document.addEventListener("click",this._documentClickHandler)},this._eventTimeout),this._setSettings("default"),this._enableScrolling=!0)}}export{h as Modals};
class o{constructor(t){this._scrollDuration=1e3,this._currentIndex=0,this._newCurrentIndex=null,this._blockShift=140,this._linkElements=t,this._isDisabled=!1,this._activeBtn=document.querySelector('[data-product-header="active-btn"]'),this._documentScrollHandler=this._documentScrollHandler.bind(this),this.init()}init(){this._initMoveTo(),this._changeLinksActiveState(),document.addEventListener("scroll",this._documentScrollHandler)}_documentScrollHandler(){this._changeLinksActiveState()}_changeLinksActiveState(){this._isDisabled||this._linkElements.forEach((t,i)=>{const e=document.querySelector(`${t.getAttribute("href")}`);if(!e){console.error("Блока на который ссылается ссылка не существует! Проверьте соответствие href ссылок с id блоков");return}e.getBoundingClientRect().bottom>this._blockShift&&e.getBoundingClientRect().top<=this._blockShift?(t.classList.add("is-active"),this._activeBtn&&(this._activeBtn.textContent=t.textContent)):t.classList.remove("is-active"),document.body.getBoundingClientRect().bottom-window.innerHeight<this._blockShift&&e.getBoundingClientRect().top>this._blockShift})}_removeLinkAnimation(){this._linkElements.forEach((t,i)=>{i!==this._currentIndex&&i!==this._newCurrentIndex&&t.classList.add("is-inactive")})}_addLinkAnimation(){this._linkElements.forEach(t=>t.classList.remove("is-inactive")),this._currentIndex=this._newCurrentIndex}_scrollIntoViewWithOffset(t){const i=document.querySelector(".header"),e=t.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:e-i?.offsetHeight||0,behavior:"smooth"})}_removeActiveClass(){this._linkElements.forEach(t=>t.classList.remove("is-active"))}_initMoveTo(){this._linkElements.forEach((t,i)=>{t.addEventListener("click",e=>{e.preventDefault();const n=document.querySelector(`${t.getAttribute("href")}`);if(!n){console.error("Блока на который ссылается ссылка не существует! Проверьте соответствие href ссылок с id блоков");return}this._isDisabled=!0,this._newCurrentIndex=i,this._scrollIntoViewWithOffset(n),this._removeLinkAnimation(),this._removeActiveClass(),t.classList.add("is-active"),setTimeout(()=>{this._addLinkAnimation(),this._isDisabled=!1},this._scrollDuration)})})}}export{o as NavigationChanger};
class a{constructor(s){this.labelsList=s.querySelector('[data-partner-filter="labels-list"]'),this.labels=s.querySelectorAll("[data-partner-label-id]"),this.cards=s.querySelectorAll("[data-partner-card-id]"),this._showMobileQty=8,this._showMoreBtn=s.querySelector('[data-partners-filter="show-more-btn"]'),this._setActiveLabel=this._setActiveLabel.bind(this),this._listClickHandler=this._listClickHandler.bind(this),this._setActiveCards=this._setActiveCards.bind(this),this._showMoreHandler=this._showMoreHandler.bind(this)}init(){this.labelsList.addEventListener("click",this._listClickHandler),this._setActiveLabel(this.labels[0]),this._showMoreBtn.addEventListener("click",this._showMoreHandler)}_listClickHandler(s){s.target.closest('[data-partner-label = "item"]')&&(this._showMobileQty=8,this._setActiveLabel(s.target.closest("button")))}_setActiveLabel(s){this.labels.forEach(t=>{s===t?t.classList.add("is-active"):t.classList.remove("is-active")}),this._setActiveCards(s.dataset.partnerLabelId)}_setActiveCards(s){if(s==="all"){this.cards.forEach(t=>{t.classList.add("is-show")}),this._setStateMobile();return}this.cards.forEach(t=>{s===t.dataset.partnerCardId?t.classList.add("is-show"):(t.classList.remove("is-show"),t.classList.remove("is-show-mobile"))}),this._setStateMobile()}_showMoreHandler(){this._showMobileQty=this._showMobileQty+8,this._setStateMobile()}_setStateMobile(){const s=document.querySelectorAll("[data-partner-card-id].is-show");s.forEach((t,e)=>{e+1<=this._showMobileQty?t.classList.add("is-show-mobile"):t.classList.remove("is-show-mobile")}),document.querySelectorAll("[data-partner-card-id].is-show-mobile"),s.length<=this._showMobileQty?this._showMoreBtn.classList.add("is-hidden"):this._showMoreBtn.classList.remove("is-hidden")}}export{a as PartnersFilter};
This diff is collapsed.
......@@ -14,7 +14,7 @@ if(empty($arResult))
$strReturn = '';
//we can't use $APPLICATION->SetAdditionalCSS() here because we are inside the buffered function GetNavChain()
if (strpos($APPLICATION->GetCurDir(),"products")){
if (strpos($APPLICATION->GetCurDir(),"products") || strpos($APPLICATION->GetCurDir(),"solutions")){
$strReturn .= '<div class="breadcrumbs hero__breadcrumbs"><ol class="breadcrumbs__list">';
} else $strReturn .= '<div class="container container--pt-header container--mb"><div class="breadcrumbs breadcrumbs--pl"> <ol class="breadcrumbs__list">';
......@@ -47,7 +47,7 @@ for($index = 0; $index < $itemSize; $index++)
';
}
}
if (strpos($APPLICATION->GetCurDir(),"products")){
if (strpos($APPLICATION->GetCurDir(),"products") || strpos($APPLICATION->GetCurDir(),"solutions")){
$strReturn .= '</ol></div>';
} else $strReturn .= '</ol></div></div>';
......
......@@ -4,9 +4,11 @@
$texts=[];
$texts[]="Ключевая информация о компании";
$texts[]="Все события и анонсы мероприятий";
$texts[]="Будущие и прошедшие мероприятия";
$texts[]="Основные направления нашей работы";
$texts[]="Адреса и телефоны для связи";
$texts[]="Присоединяйтесь к нашей команде";
$texts[]="Адреса и телефоны для связи";
?>
......@@ -15,7 +17,7 @@
<li class="main-nav__submenu-item">
<a class="main-nav__submenu-link" href="<?= $arItem["LINK"] ?>" data-close-menu>
<span class="main-nav__submenu-link-text">
<?= $arItem["TEXT"] ?>
<?= mb_lcfirst($arItem["TEXT"]) ?>
<span class="main-nav__submenu-link-icon">
<svg width="1em" height="1em" viewBox="0 0 20 20"
data-icon="icon-arrow-up-right">
......
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
// получение тегов
$iblockId = 20 ;
$arResult['SPECIALS'] = [];
$arSelect = array("ID", "IBLOCK_ID", "NAME", "PROPERTY_LINK");//IBLOCK_ID и ID обязательно должны быть
$arFilter = array("IBLOCK_ID" => $iblockId, "ACTIVE" => "Y");
$res = CIBlockElement::GetList(array("SORT"=>"ASC"), $arFilter, false, false, $arSelect);
while ($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
$arResult['SPECIALS'][] = $arFields;
}
<? 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 page-section--p-t-header page-section--dark">
<div class="hero hero--career">
<div class="container container--no-p">
<?php foreach ($arResult["ITEMS"] as $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"]['BG_1921']["VALUE"]);
$img768 = CFile::GetPath($arItem["PROPERTIES"]['BG_768']["VALUE"]);
$img767 = CFile::GetPath($arItem["PROPERTIES"]['BG_767']["VALUE"]);
$imgHero1921 = CFile::GetPath($arItem["PROPERTIES"]['IMG_1921']["VALUE"]);
$imgHero768 = CFile::GetPath($arItem["PROPERTIES"]['IMG_768']["VALUE"]);
$imgHero767 = CFile::GetPath($arItem["PROPERTIES"]['IMG_767']["VALUE"]);
?>
<div class="hero__inner">
<div class="hero__bg">
<div class="hero__bg-gradient">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= $img1921 ?>"
type="image/webp">
<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="1512" height="744" loading="lazy">
</picture>
</div>
</div>
<div class="hero__container">
<div class="hero__img is-masked" data-mask-career="image">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= $imgHero1921 ?>"
type="image/webp">
<source media="(min-width: 768px)"
srcset="<?= $imgHero768 ?>"
type="image/webp">
<source media="(max-width: 767px)"
srcset="<?= $imgHero767 ?>"
type="image/webp">
<img src="<?= $arItem["DETAIL_PICTURE"]["SRC"] ?>"
srcset="<?= $arItem["DETAIL_PICTURE"]["SRC"] ?>"
alt="Изображение" width="1376" height="1376" loading="lazy">
</picture>
</div>
<div class="hero__text-wrap">
<div class="hero__title-description-wrap">
<? if (is_array($arItem["PROPERTIES"]["TITLE"]['~VALUE'])){?>
<h1 class="title title--h1 hero__title"><?= $arItem["PROPERTIES"]["TITLE"]['~VALUE']['TEXT']?></h1>
<?}?>
<p class="hero__text">><?= $arItem["PREVIEW_TEXT"] ?></p>
<button data-open-modal="modal-tell" class="button button--size-xl-m button--size-m hero__btn-cta js-trigger">
<span class="button__text">хочу к вам</span>
<span class="button__icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span>
</button>
</div>
</div>
</div>
</div>
<? endforeach; ?>
</div>
</div>
</section>
\ No newline at end of file
......@@ -12,7 +12,7 @@
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div class="page-section page-section--p-t-header">
<section class="page-section page-section--p-t-header">
<div class="hero" data-animate="hero-block">
<div class="container container--no-p">
<?php foreach ($arResult["ITEMS"] as $arItem) : ?>
......@@ -100,4 +100,4 @@ $this->setFrameMode(true);
<? endforeach; ?>
</div>
</div>
</div>
\ No newline at end of file
</section>
\ No newline at end of file
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
// заголовки
$IblockId=67;// инфоблок баннера
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>384
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть
// указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
}
?>
<? 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 page-section--dark page-section--overflow-hidden" data-animate="unity-development">
<div class="unity-development" data-animate="unity-development">
<div class="container">
<div class="unity-development__inner">
<div class="unity-development__left">
<div class="section-title unity-development__title section-title--dark">
<div class="section-title__wrap">
<p class="section-title__badge">unity in development</p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show" style="--word-total: 5; --line-total: 2;"><?=$arResult['TITLE']?></h2>
</div>
</div>
<div class="unity-development__left-list-content" data-da-max=".unity-development__right, 767, last">
<?=$arResult['TEXT']?>
</div>
</div>
<div class="unity-development__right">
<div class="unity-development__slider">
<ul class="unity-development__list">
<?php foreach ($arResult["ITEMS"] as $k=>$arItem) :
$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="unity-development__item <?=($k==1)?'unity-development__item--next':'unity-development__item--active'?>">
<div class="solutions-career-item unity-development__card">
<div class="solutions-career-item__bg">
<div class="solutions-career-item__bg-image">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= $img1921 ?>"
type="image/webp">
<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="870" height="250" loading="lazy">
</picture>
</div>
</div>
<h3><?=$arItem['NAME']?></h3>
<p><?=$arItem['PREVIEW_TEXT']?></p>
</div>
</li>
<? endforeach; ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
\ No newline at end of file
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
......@@ -23,10 +23,16 @@ $this->setFrameMode(true);
$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
?>
<div class="article-card events__top-events-card article-card--top-events">
<a class="article-card__inner" href="#">
<a class="article-card__inner" href="<?=$arItem['DETAIL_PAGE_URL']?>">
<div class="article-card__status">
<div class="tag-text tag-text--green tag-text--top-events">
<p class="tag-text__text"><?=soon($arItem['PROPERTIES']["DATE"]["VALUE"])?></p>
<?
$soontop=soon($arItem['PROPERTIES']["DATE"]["VALUE"]);
if ($soontop=="прошло"){
$classtop="tag-text--red-dot";
} else $classtop="tag-text--green";
?>
<div class="tag-text <?=$classtop?> tag-text--top-events">
<p class="tag-text__text"><?=$soontop?></p>
</div>
</div>
<? if ($arItem['PREVIEW_PICTURE']['SRC']) {
......@@ -35,10 +41,10 @@ $this->setFrameMode(true);
<div class="article-card__image">
<picture>
<source media="(min-width: 768px)"
srcset="<?= $arItem['PREVIEW_PICTURE']['SRC'] ?>, <?= $arItem['PREVIEW_PICTURE']['SRC'] ?>, <?= $arItem['PREVIEW_PICTURE']['SRC'] ?>"
srcset="<?= $arItem['PREVIEW_PICTURE']['SRC'] ?>"
type="image/webp">
<source media="(max-width: 767px)"
srcset="<?= $imgSrcMob ?>, <?= $imgSrcMob ?>, <?= $imgSrcMob ?>"
srcset="<?= $imgSrcMob ?>"
type="image/webp">
<img src="<?= $arItem['PREVIEW_PICTURE']["SRC"] ?>"
srcset="<?= $arItem['PREVIEW_PICTURE']['SRC'] ?>, <?= $arItem['PREVIEW_PICTURE']['SRC'] ?>"
......@@ -78,7 +84,8 @@ $this->setFrameMode(true);
</div>
<? } ?>
</div>
<ul class="events__list is-show-half">
<div id="page-events">
<ul class="events__list is-show-half">
<?php foreach ($arResult["ITEMS"] as $k=>$arItem) :
if ($k<2) continue;
$imgSrcMob=CFile::GetPath($arItem["PROPERTIES"]['PREVIEW_PICTURE_MOB']['VALUE']);
......@@ -89,8 +96,14 @@ $this->setFrameMode(true);
<div class="article-card article-card--events-list">
<a class="article-card__inner" href="<?= $arItem['DETAIL_PAGE_URL'] ?>">
<div class="article-card__status">
<div class="tag-text tag-text--green tag-text--events-list">
<p class="tag-text__text"><?=soon($arItem['PROPERTIES']["DATE"]["VALUE"])?></p>
<?
$soon=soon($arItem['PROPERTIES']["DATE"]["VALUE"]);
if ($soon=="прошло"){
$class="tag-text--red-dot";
} else $class="tag-text--green";
?>
<div class="tag-text <?=$class?> tag-text--events-list">
<p class="tag-text__text"><?=$soon?></p>
</div>
</div>
<?if ($arItem['PREVIEW_PICTURE']['SRC']){
......@@ -132,6 +145,7 @@ $this->setFrameMode(true);
</ul>
</div>
</div>
</div>
<?php if ($arParams["DISPLAY_BOTTOM_PAGER"]) { ?>
......
......@@ -50,8 +50,8 @@ $this->setFrameMode(true);
<div class="item-info item-info--news-list">
<div class="item-info__wrap">
<?if($arItem['PROPERTIES']["HASHTAG"]["VALUE"]):?>
<a href="/about/news/?hash=<?=$arItem['PROPERTIES']["HASHTAG"]["VALUE"]?>"
class="item-info__category"><?= $arItem['PROPERTIES']["HASHTAG"]["VALUE"] ?></a>
<p class="item-info__category"><?= $arItem['PROPERTIES']["HASHTAG"]["VALUE"]
?></p>
<?endif;?>
<time class="item-info__date"
datetime="<?= $arItem['PROPERTIES']["DATE"]["VALUE"] ?>">
......@@ -77,6 +77,9 @@ $this->setFrameMode(true);
</ul>
</div>
<?if ($_GET['hash']){?>
<div class="news__bottom"></div>
<?}?>
<?php if ($arParams["DISPLAY_BOTTOM_PAGER"]) { ?>
<?= $arResult["NAV_STRING"] ?>
<?php } ?>
\ No newline at end of file
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();$arFilter = array('IBLOCK_ID' => $arParams['IBLOCK_ID'], "ACTIVE" => "Y");
$db_list = CIBlockSection::GetList(array('SORT' => 'ASC'), $arFilter, true, $arSelect);
$arResult['SECTIONS'] = array();
while ($ar_result = $db_list->GetNext()) {
$arResult['SECTIONS'][] = $ar_result;
}
if (!empty($arResult["SECTIONS"])) {
foreach ($arResult["SECTIONS"] as $k => $section) {
$arResult["SECTIONS"][$k]['ITEMS'] = array();
$arFilter = array("IBLOCK_ID" => $iblockId, "ACTIVE" => "Y", "SECTION_ID" => $section['ID']);
$res = CIBlockElement::GetList(array("SORT" => 'ASC'), $arFilter, false, false,
$arSelect);
while ($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arItem['PROPERTIES'] = $ob->GetProperties();
$arResult["SECTIONS"][$k]['ITEMS'][] = $arItem;
}
}
}
// заголовки
$IblockId=67;// инфоблок баннера
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>386
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть
// указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
}
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
// получение банера
$IblockId=55;// инфоблок баннера
$arResult['BANNER']=[];
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
);
$res = CIBlockElement::GetList(Array(), $arFilter, false, array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arItem['PREVIEW_PICTURE']= CFile::GetFileArray($arItem['PREVIEW_PICTURE']);
$arItem['DETAIL_PICTURE']= CFile::GetFileArray($arItem['DETAIL_PICTURE']);
$arItem['PROPERTIES'] = $ob->GetProperties();
$arResult['BANNER']=$arItem;
}
// получение банера
$IblockId=56;// инфоблок баннера
$arResult['DIRECTIONS']=[];
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PROPERTY_COLOR");//IBLOCK_ID и ID обязательно должны быть указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,false, $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arResult['DIRECTIONS'][] = $arItem;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
// заголовки
$IblockId=59;
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>355
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть
// указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
}
// получение тегов
$iblockId = 62 ;
$arResult['SPECIALS'] = [];
$arSelect = array("ID", "IBLOCK_ID", "NAME", );//IBLOCK_ID и ID обязательно должны быть
$arFilter = array("IBLOCK_ID" => $iblockId, "ACTIVE" => "Y");
$res = CIBlockElement::GetList(array("SORT"=>"ASC"), $arFilter, false, false, $arSelect);
while ($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
$arResult['SPECIALS'][] = $arFields;
}
?>
<? 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="team">
<div class="team-research">
<div class="container">
<div class="team-research__inner">
<div class="team-research__top">
<div class="section-title team-research__title">
<div class="section-title__wrap">
<p class="section-title__badge">команда</p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?=$arResult['NAME']?></h2>
</div>
</div>
<ul class="team-research__tags-list">
<?foreach ($arResult['SPECIALS'] as $k=>$item){ ?>
<li class="team-research__item">
<div class="tag-text tag-text--team-research tag-text--bordered tag-text--card">
<p class="tag-text__text"><?=$item['NAME']?></p>
</div>
</li>
<?}?>
</ul>
</div>
<div class="team-research__main">
<div class="team-research__image-list-wrap swiper swiper-initialized swiper-horizontal swiper-backface-hidden" data-team-research-slider="container">
<ul class="team-research__image-list swiper-wrapper" data-team-research-slider="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="team-research__image-item swiper-slide <?=($k==1)?'team-research__image-item--wide':''?>"
data-team-research-slider="slide">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= $img1921?>"
type="image/webp">
<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="<?=($k==1)?'1146':'554'?>" height="626"
loading="lazy">
</picture>
</li>
<?}?>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
\ No newline at end of file
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
<? 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 page-section--no-pt page-section--pt-mob" id="research">
<div class="advantages-solutions advantages-solutions--wide-title">
<div class="advantages-solutions__wrap" style="">
<div class="container advantages-solutions__container">
<div class="advantages-solutions__inner">
<div class="advantages-solutions__header">
<div class="section-title">
<div class="section-title__wrap">
<p class="section-title__badge">исследования</p>
<h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting
is-show">направления исследований</h2>
</div>
</div>
</div>
<div class="advantages-solutions__content">
<ul class="advantages-solutions__list">
<?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="advantages-solutions__item" id="<?= $this->GetEditAreaId($arItem['ID']); ?>">
<div class="benefit-plate">
<div class="benefit-plate__image-wrap">
<div class="benefit-plate__bg-decor-wrap">
<div class="benefit-plate__bg-decor benefit-plate__bg-decor--top">
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<symbol id="ai:local:icon-plus">
<path fill="none" stroke="currentColor"
d="M7.5 0v15M0 7.5h15"></path>
</symbol>
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
</div>
<div class="benefit-plate__bg-decor benefit-plate__bg-decor--bottom">
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
<svg width="1em" height="1em" viewBox="0 0 15 15"
data-icon="icon-plus">
<use xlink:href="#ai:local:icon-plus"></use>
</svg>
</div>
</div>
<div class="benefit-plate__image">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= $img1921?>"
type="image/webp">
<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="473" height="473" loading="lazy">
</picture>
</div>
</div>
<div class="benefit-plate__content-wrap">
<div class="benefit-plate__counter-wrap">
<span class="benefit-plate__counter">0<?=($k+1)?></span>
</div>
<h3 class="title benefit-plate__title"><?=$arItem['NAME']?></h3>
<div class="benefit-plate__text">
<p><?=$arItem['PREVIEW_TEXT']?></p>
</div>
</div>
</div>
</li>
<?}?>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
$IblockId=59;// инфоблок баннера
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>365
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_IMG");//IBLOCK_ID и ID
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
$arResult['IMG'] = CFile::GetPath($arItem['PROPERTY_IMG_VALUE']);
}
<? 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="links">
<div class="links">
<div class="container">
<div class="links__inner">
<div class="links__aside">
<div class="section-title links__title">
<div class="section-title__wrap">
<p class="section-title__badge">ссылки</p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?=$arResult['NAME']?></h2>
</div>
</div>
<p class="links__title-description">
<?=$arResult['TEXT']?>
</p>
<div class="links__logo">
<img src="<?=$arResult['IMG']?>" alt="Картинка" width="262" height="52" loading="lazy">
</div>
</div>
<ul class="links__list">
<?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"]);
$logo = CFile::GetPath($arItem["PROPERTIES"]['LOGO']["VALUE"]);
?>
<li class="links__item">
<div class="link-card">
<div class="link-card__bg">
<div class="link-card__bg-image">
<picture>
<source media="(min-width: 1921px)"
srcset="<?= $img1921?>"
type="image/webp">
<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="577" height="553" loading="lazy">
</picture>
</div>
<div class="link-card__bg-pixels" data-pixels="link-card" data-pixels-qty="45"><div class="pixel" style="opacity: 0; --delay: 0.7305174807457835;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.05411110740021252;"></div><div class="pixel" style="opacity: 0; --delay: 0.9589369612035039;"></div><div class="pixel" style="opacity: 0; --delay: 0.9226369953672806;"></div><div class="pixel" style="opacity: 0; --delay: 0.13522031708422055;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.645215894942397;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.9587063579304413;"></div><div class="pixel" style="opacity: 0; --delay: 0.07654681981082456;"></div><div class="pixel" style="opacity: 0; --delay: 0.9874481084921201;"></div><div class="pixel" style="opacity: 0.75; --delay: 0.020462383713542476;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.09835051039659137;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.6076161300821856;"></div><div class="pixel" style="opacity: 0.75; --delay: 0.11100120786266032;"></div><div class="pixel" style="opacity: 0; --delay: 0.31222638861886987;"></div><div class="pixel" style="opacity: 0; --delay: 0.09515157894828907;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.14442294244695275;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.6106760059308372;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.12025089859749438;"></div><div class="pixel" style="opacity: 0; --delay: 0.3904850340533308;"></div><div class="pixel" style="opacity: 0; --delay: 0.45824611580189933;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.5359375027664275;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.9643170883094792;"></div><div class="pixel" style="opacity: 0; --delay: 0.5659979502876042;"></div><div class="pixel" style="opacity: 0; --delay: 0.6440779878070759;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.7083366519416461;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.8106267294842111;"></div><div class="pixel" style="opacity: 0; --delay: 0.7502709304704536;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.35987798297000184;"></div><div class="pixel" style="opacity: 0.75; --delay: 0.19206341221144285;"></div><div class="pixel" style="opacity: 0; --delay: 0.831288185793909;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.8387303591355713;"></div><div class="pixel" style="opacity: 0; --delay: 0.35133509130057416;"></div><div class="pixel" style="opacity: 0.35; --delay: 0.23389192887043486;"></div><div class="pixel" style="opacity: 0; --delay: 0.15917769571865592;"></div><div class="pixel" style="opacity: 0; --delay: 0.7864311756785434;"></div><div class="pixel" style="opacity: 0; --delay: 0.7205471217637673;"></div><div class="pixel" style="opacity: 0; --delay: 0.8558319407488775;"></div><div class="pixel" style="opacity: 0; --delay: 0.29396440467731244;"></div><div class="pixel" style="opacity: 0; --delay: 0.8364357084326719;"></div><div class="pixel" style="opacity: 0; --delay: 0.15344544973341923;"></div><div class="pixel" style="opacity: 0; --delay: 0.5376703109581036;"></div><div class="pixel" style="opacity: 0; --delay: 0.6082877169030263;"></div><div class="pixel" style="opacity: 0.75; --delay: 0.8368335683604486;"></div><div class="pixel" style="opacity: 0; --delay: 0.8171791567884139;"></div><div class="pixel" style="opacity: 0.75; --delay: 0.8267671860214609;"></div></div>
</div>
<div class="link-card__inner">
<div class="link-card__image">
<img src="<?=$logo?>" alt="Логотип" width="48" height="48" loading="lazy">
</div>
<h3 class="link-card__title"><?=$arItem['NAME']?></h3>
<p class="link-card__text"><?=$arItem['PREVIEW_TEXT']?></p>
<a href="<?=$arItem['PROPERTIES']['LINK']['VALUE']?>" class="button button--size-xl-m
button--transparent
link-card__btn"><span class="button__text">перейти на сайт</span><span class="button__icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
<use xlink:href="#ai:local:icon-arrow-up-right"></use>
</svg>
</span></a>
</div>
</div>
</li>
<?}?>
</ul>
</div>
</div>
</div>
</section>
\ No newline at end of file
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
$IblockId=59;// инфоблок баннера
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>371
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_IMG");//IBLOCK_ID и ID
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
}
<? 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">события</p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?=$arResult['NAME']?></h2>
</div>
</div>
<a href="#" 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="#">
<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>
\ No newline at end of file
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateParameters = array(
"DISPLAY_DATE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_DATE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_NAME" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_NAME"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PICTURE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PICTURE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
"DISPLAY_PREVIEW_TEXT" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_TEXT"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "Y",
),
);
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Display element date";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Display element title";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Display element preview picture";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Display element preview text";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "All the information linked to this record will be deleted. Continue anyway?";
?>
\ No newline at end of file
<?
$MESS ['T_IBLOCK_DESC_NEWS_DATE'] = "Выводить дату элемента";
$MESS ['T_IBLOCK_DESC_NEWS_NAME'] = "Выводить название элемента";
$MESS ['T_IBLOCK_DESC_NEWS_PICTURE'] = "Выводить изображение для анонса";
$MESS ['T_IBLOCK_DESC_NEWS_TEXT'] = "Выводить текст анонса";
?>
\ No newline at end of file
<?
$MESS["CT_BNL_ELEMENT_DELETE_CONFIRM"] = "Будет удалена вся информация, связанная с этой записью. Продолжить?";
?>
\ No newline at end of file
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
/**
* @var CBitrixComponentTemplate $this
* @var CatalogElementComponent $component
*/
$IblockId=59;// инфоблок баннера
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>349
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть
// указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
}
<? 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="cooperations">
<div class="cooperation">
<div class="container">
<div class="cooperation__inner">
<div class="cooperation__top">
<div class="section-title cooperation__title">
<div class="section-title__wrap">
<p class="section-title__badge">сотрудничество</p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?=$arResult['NAME']?></h2>
</div>
</div>
<p class="cooperation__top-description">
<?=$arResult['TEXT']?>
</p>
</div>
<div class="cooperation__list-container">
<div class="cooperation__list-wrap swiper swiper-backface-hidden" data-cooperations-slider="container">
<ul class="cooperation__list swiper-wrapper" data-cooperations-slider="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')));
$iconSrc = CFile::GetPath($arItem["PROPERTIES"]['LOGO']["VALUE"]);
?>
<li class="cooperation__item swiper-slide" data-cooperations-slider="slide" id="<?= $this->GetEditAreaId($arItem['ID']); ?>">
<img src="<?=$iconSrc?>" alt="Логотип партнера" width="253" height="168" loading="lazy">
</li>
<?}?>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
\ No newline at end of file
......@@ -9,22 +9,74 @@ if (!empty($arResult["DISPLAY_PROPERTIES"]["DATE"]["VALUE"])) {
}
//другие новости
$arResult['OTHERS']=[];
$arFilter = Array(
"IBLOCK_ID"=>$arParams['IBLOCK_ID'],
"ACTIVE"=>"Y",
"!ID"=>$arResult['ID']
//для кого предназначено
$iblockId=46;
);
$res = CIBlockElement::GetList(Array(), $arFilter, false, array('nTopCount'=>3), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arItem['PREVIEW_PICTURE']= CFile::GetFileArray($arItem['PREVIEW_PICTURE']);
$arItem['PROPERTIES'] = $ob->GetProperties();
$arResult['OTHERS'][]=$arItem;
if (!empty($arResult['PROPERTIES']['FOR_EVENTS']['VALUE'])) {
$arResult['FOR_EVENTS'] = [];
foreach ($arResult['PROPERTIES']['FOR_EVENTS']['VALUE'] as $item) {
$arSelect = array("ID", "IBLOCK_ID", "NAME", "PREVIEW_TEXT");//IBLOCK_ID и ID обязательно должны быть
$arFilter = array("IBLOCK_ID" => $iblockId, "ID" => $item);
$res = CIBlockElement::GetList(array("SORT"=>"ASC"), $arFilter, false, false, $arSelect);
while ($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
$arFields['PROPERTIES'] = $ob->GetProperties();
$arResult['FOR_EVENTS'][] = $arFields;
}
}
}
//программы
$iblockId=47;
if (!empty($arResult['PROPERTIES']['PROGRAMM']['VALUE'])) {
// получение дней
$arResult['DAYS']=[];
$property_enums = CIBlockPropertyEnum::GetList(Array("ID"=>"ASC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>$iblockId, "CODE"=>"DAYS"));
while ($enum_fields = $property_enums->GetNext()) {
$arResult['DAYS'][$enum_fields["ID"]]['NAME']=$enum_fields["VALUE"];
}
foreach ($arResult['DAYS'] as $k=>$item) {
$arSelect = array("ID", "IBLOCK_ID", "NAME", "PREVIEW_TEXT","PREVIEW_PICTURE");
$arResult['DAYS'][$k]['ITEMS']=[];
$arFilter = array("IBLOCK_ID" => $iblockId, "PROPERTY_DAYS" => $k);
$res = CIBlockElement::GetList(array("SORT" => "ASC"), $arFilter, false, false, $arSelect);
if ($res->SelectedRowsCount()>0) {
while ($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
if (in_array($arFields['ID'],$arResult['PROPERTIES']['PROGRAMM']['VALUE'])) {
$arFields['PREVIEW_PICTURE'] = CFile::GetPath($arFields['PREVIEW_PICTURE']);
$arFields['PROPERTIES'] = $ob->GetProperties();
$arResult['DAYS'][$k]['ITEMS'][] = $arFields;
} else unset($arResult['DAYS'][$k]);
}
} else unset($arResult['DAYS'][$k]);
}
}
//спикеры и учатстнки
$iblockId=50;
if (!empty($arResult['PROPERTIES']['SPIKERS']['VALUE'])) {
$arResult['SPIKERS'] = [];
foreach ($arResult['PROPERTIES']['SPIKERS']['VALUE'] as $item) {
$arSelect = array("ID", "IBLOCK_ID", "NAME","PREVIEW_PICTURE","PROPERTY_JOB","PROPERTY_PHOTO1921","PROPERTY_PHOTO768",
"PROPERTY_PHOTO767");
$arFilter = array("IBLOCK_ID" => $iblockId, "ID" => $item);
$res = CIBlockElement::GetList(array("SORT"=>"ASC"), $arFilter, false, false, $arSelect);
while ($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
$arFields['PHOTO1921']=CFile::GetPath($arFields['PROPERTY_PHOTO1921_VALUE']);
$arFields['PHOTO768']=CFile::GetPath($arFields['PROPERTY_PHOTO768_VALUE']);
$arFields['PHOTO767']=CFile::GetPath($arFields['PROPERTY_PHOTO767_VALUE']);
$arResult['SPIKERS'][] = $arFields;
}
}
}
......@@ -23,5 +23,22 @@ if (!empty($arResult["ITEMS"])) {
//название, title, текст под h1
$arFilter = Array(
"IBLOCK_ID"=>43,
"ACTIVE"=>"Y",
"ID"=>315
);
$arResult['TITLE']=[];
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arItem['PROPERTIES'] = $ob->GetProperties();
$arResult['TITLE'] = $arItem;
$arResult['BREAD_NAME'] = $arItem['PROPERTIES']['BREAD_NAME']['VALUE'];
}
......@@ -13,16 +13,49 @@
$this->setFrameMode(true);
?>
<div class="container container--pt-header container--mb">
<div class="page-section page-section--no-pt">
<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">мероприятия UDV&nbsp;Group</h1>
<p>UDV Group предлагает множество мероприятий в&nbsp;онлайн и&nbsp;оффлайн форматах. Посетить мероприятия может любой желающий</p>
<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">
......@@ -125,10 +158,10 @@ $this->setFrameMode(true);
"FILE_404" => $arParams["FILE_404"],
"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
"ADD_SECTIONS_CHAIN" => $arParams["ADD_SECTIONS_CHAIN"],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TYPE" => "N",
"CACHE_TIME" => $arParams["CACHE_TIME"],
"CACHE_FILTER" => 0,
"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
"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"],
......@@ -166,7 +199,7 @@ $this->setFrameMode(true);
</div>
</div>
</div>
</section>
<? $APPLICATION->IncludeComponent("bitrix:main.include", "", array(
"AREA_FILE_SHOW" => "file", // Показывать включаемую область
......
......@@ -16,7 +16,9 @@ if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) {
$this->setFrameMode(true);
?>
<? $APPLICATION->IncludeComponent(
<?
$APPLICATION->IncludeComponent(
"bitrix:news.list",
"",
array(
......@@ -38,7 +40,7 @@ $this->setFrameMode(true);
"INCLUDE_IBLOCK_INTO_CHAIN" => $arParams["INCLUDE_IBLOCK_INTO_CHAIN"],
"ADD_SECTIONS_CHAIN" => $arParams["ADD_SECTIONS_CHAIN"],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
"CACHE_TIME" => "N",
"CACHE_FILTER" => $arParams["CACHE_FILTER"],
"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
"DISPLAY_TOP_PAGER" => $arParams["DISPLAY_TOP_PAGER"],
......@@ -72,4 +74,13 @@ $this->setFrameMode(true);
"IBLOCK_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["news"],
),
$component
); ?>
\ No newline at end of file
);
?>
<?
// title
$ipropElementValues = new \Bitrix\Iblock\InheritedProperty\ElementValues(43,315);
$pageProperties = $ipropElementValues->getValues();
$APPLICATION->SetTitle($pageProperties['ELEMENT_PAGE_TITLE']);
$APPLICATION->SetPageProperty('title',$pageProperties['ELEMENT_META_TITLE']);
?>
......@@ -17,7 +17,7 @@ $arFilter = Array(
"!ID"=>$arResult['ID']
);
$res = CIBlockElement::GetList(Array(), $arFilter, false, array('nTopCount'=>3), $arSelect);
$res = CIBlockElement::GetList(Array("ID"=>"DESC"), $arFilter, false, array('nTopCount'=>3), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$arItem['PREVIEW_PICTURE']= CFile::GetFileArray($arItem['PREVIEW_PICTURE']);
......@@ -28,3 +28,4 @@ while($ob = $res->GetNextElement()) {
}
......@@ -72,4 +72,12 @@ $this->setFrameMode(true);
"IBLOCK_URL" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["news"],
),
$component
); ?>
\ No newline at end of file
); ?>
<?
// title
$ipropElementValues = new \Bitrix\Iblock\InheritedProperty\ElementValues(43,258);
$pageProperties = $ipropElementValues->getValues();
$APPLICATION->SetTitle($pageProperties['ELEMENT_PAGE_TITLE']);
$APPLICATION->SetPageProperty('title',$pageProperties['ELEMENT_META_TITLE']);
?>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment