Послдение правки страниц

parent 976861da
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Новый раздел");?> $APPLICATION->SetTitle("Новый раздел");
<?php
$start="30.10.2024 11:40:00";
echo date('YmdТHis',strtotime($start));
$name = 'Название события';
$description = 'Описание события';
$location = 'Место события';
$url = 'URL-cсылка на что угодно';
$end=$start;
$file = new ICS($start, $end, $name, $description, $location, $url);
$file->show();
$fields = fields(504);
echo "<pre>";
print_r($fields);
echo "</pre>";
?> ?>
......
<?// заголовки
\CModule::IncludeModule("iblock");
$IblockId=71;// инфоблок
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>480
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID
// обязательно должны быть
// указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$title = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$text = $arItem['PREVIEW_TEXT'];
$tag = $arItem['PROPERTY_TAG_VALUE'];
}
?>
<section class="page-section page-section--p-b <?=($APPLICATION->GetCurDir()=="/about/news/")
?'page-section--hide-mobile':'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="./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"><?=$tag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title"><?=$title?></h2>
</div>
</div>
<p class="write-to-us-form__description"><?=$text?></p>
</div>
<div class="write-to-us-form__form" data-form-validate data-callback="request" data-button-disabled>
<form action="#" id="event-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="/privacy/">Политикой конфиденциальности</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
...@@ -103,7 +103,8 @@ ...@@ -103,7 +103,8 @@
<span class="custom-toggle__label"> <span class="custom-toggle__label">
<span class="custom-toggle__label-text">Я согласен с <a href="#">Политикой конфиденциальности</a></span> <span class="custom-toggle__label-text">Я согласен с <a href="/privacy/">Политикой
конфиденциальности</a></span>
<span class="custom-toggle__label-icon"> <span class="custom-toggle__label-icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right"> <svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
......
...@@ -5,7 +5,7 @@ $IblockId=71;// инфоблок ...@@ -5,7 +5,7 @@ $IblockId=71;// инфоблок
$arFilter = Array( $arFilter = Array(
"IBLOCK_ID"=>$IblockId, "IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y", "ACTIVE"=>"Y",
"ID"=>409 "ID"=>457
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть
...@@ -127,7 +127,7 @@ $arItem = $ob->GetFields(); ...@@ -127,7 +127,7 @@ $arItem = $ob->GetFields();
<span class="custom-toggle__label"> <span class="custom-toggle__label">
<span class="custom-toggle__label-text">Я согласен с <a href="#">Политикой конфиденциальности</a></span> <span class="custom-toggle__label-text">Я согласен с <a href="/privacy/">Политикой конфиденциальности</a></span>
<span class="custom-toggle__label-icon"> <span class="custom-toggle__label-icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right"> <svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
......
<?// заголовки
\CModule::IncludeModule("iblock");
$IblockId=71;// инфоблок
$arFilter = Array(
"IBLOCK_ID"=>$IblockId,
"ACTIVE"=>"Y",
"ID"=>479
);
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID
// обязательно должны быть
// указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields();
$title = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$text = $arItem['PREVIEW_TEXT'];
$tag = $arItem['PROPERTY_TAG_VALUE'];
}
?>
<section class="page-section page-section--p-b <?=($APPLICATION->GetCurDir()=="/about/news/")
?'page-section--hide-mobile':'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="./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"><?=$tag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title"><?=$title?></h2>
</div>
</div>
<p class="write-to-us-form__description"><?=$text?></p>
</div>
<div class="write-to-us-form__form" data-form-validate data-callback="request" data-button-disabled>
<form action="#" id="event-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="/privacy/">Политикой конфиденциальности</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
<?
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",
),
"USE_SHARE" => Array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_USE_SHARE"),
"TYPE" => "CHECKBOX",
"DEFAULT" =>"N",
"REFRESH"=> "Y",
),
);
if (($arCurrentValues['USE_SHARE'] ?? 'N') === 'Y')
{
$arTemplateParameters["SHARE_HIDE"] = array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_SHARE_HIDE"),
"TYPE" => "CHECKBOX",
"VALUE" => "Y",
"DEFAULT" => "N",
);
$arTemplateParameters["SHARE_TEMPLATE"] = array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_SHARE_TEMPLATE"),
"DEFAULT" => "",
"TYPE" => "STRING",
"MULTIPLE" => "N",
"COLS" => 25,
"REFRESH"=> "Y",
);
$shareComponentTemplate = (trim((string)($arCurrentValues["SHARE_TEMPLATE"] ?? '')));
if ($shareComponentTemplate === '')
{
$shareComponentTemplate = false;
}
include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/components/bitrix/main.share/util.php");
$arHandlers = __bx_share_get_handlers($shareComponentTemplate);
$arTemplateParameters["SHARE_HANDLERS"] = array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_SHARE_SYSTEM"),
"TYPE" => "LIST",
"MULTIPLE" => "Y",
"VALUES" => $arHandlers["HANDLERS"],
"DEFAULT" => $arHandlers["HANDLERS_DEFAULT"],
);
$arTemplateParameters["SHARE_SHORTEN_URL_LOGIN"] = array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_SHARE_SHORTEN_URL_LOGIN"),
"TYPE" => "STRING",
"DEFAULT" => "",
);
$arTemplateParameters["SHARE_SHORTEN_URL_KEY"] = array(
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_SHARE_SHORTEN_URL_KEY"),
"TYPE" => "STRING",
"DEFAULT" => "",
);
}
<?
$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 detail image";
$MESS["T_IBLOCK_DESC_NEWS_TEXT"] = "Display element preview text";
$MESS["T_IBLOCK_DESC_NEWS_USE_SHARE"] = "Show Social Network Bookmarks Bar";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_HIDE"] = "Hide Social Network Bookmarks Bar By Default";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_TEMPLATE"] = "Social Network Bookmarks Template";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_SYSTEM"] = "Use Social Networks And Bookmarks";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_SHORTEN_URL_LOGIN"] = "bit.ly Login";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_SHORTEN_URL_KEY"] = "bit.ly Key";
?>
\ 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"] = "Выводить текст анонса";
$MESS["T_IBLOCK_DESC_NEWS_USE_SHARE"] = "Отображать панель соц. закладок";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_HIDE"] = "Не раскрывать панель соц. закладок по умолчанию";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_TEMPLATE"] = "Шаблон компонента панели соц. закладок";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_SYSTEM"] = "Используемые соц. закладки и сети";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_SHORTEN_URL_LOGIN"] = "Логин для bit.ly";
$MESS["T_IBLOCK_DESC_NEWS_SHARE_SHORTEN_URL_KEY"] = "Ключ для для bit.ly";
?>
\ No newline at end of file
div.news-detail
{
word-wrap: break-word;
}
div.news-detail img.detail_picture
{
float:left;
margin:0 8px 6px 1px;
}
.news-date-time
{
color:#486DAA;
}
<?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['PROPERTIES']['NAME']['VALUE']?></span>
</span>
</li>
</ol>
</div>
</div>
<section class="page-section page-section--no-pt page-section--p-b">
<div class="privacy">
<div class="container">
<? if (is_array($arResult["PROPERTIES"]["TITLE"]['~VALUE'])){?>
<h1 class="title title--h1 privacy__title"><?= $arResult["PROPERTIES"]["TITLE"]['~VALUE']['TEXT']?></h1>
<?}?>
<div class="privacy__inner">
<div class="privacy__main">
<div class="privacy__content">
<?=$arResult['DETAIL_TEXT']?>
</div>
</div>
<div class="privacy__aside">
<div class="privacy__aside-nav-wrap" data-da-max=".privacy__inner, 767, 0">
<div class="aside-nav">
<p class="aside-nav__title">Содержание</p>
<div class="aside-nav__list-wrap">
<?if (!empty($arResult['PROPERTIES']['SODER']['VALUE'])){?>
<ul class="aside-nav__list">
<?php foreach ($arResult['PROPERTIES']['SODER']['VALUE'] as $item) {?>
<li class="aside-nav__item">
<a class="aside-nav__link" href="#<?=$item[2]?>"
data-navigation-link="">
<?=$item[1]?>
</a>
</li>
<?}?>
</ul>
<?}?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
$db_props = CIBlockElement::GetProperty(76, 485, array("sort" => "asc"), Array("CODE"=>"TAG"));
if($ar_props = $db_props->Fetch())
$arResult['TAG'] =$ar_props["VALUE"];
if (!$arResult['TAG']){
$arResult['TAG']="о нас";
}
...@@ -50,8 +50,24 @@ $this->setFrameMode(true); ...@@ -50,8 +50,24 @@ $this->setFrameMode(true);
</div> </div>
</div> </div>
<div class="hero__container"> <div class="hero__container">
<div class="breadcrumbs hero__breadcrumbs">
<ol class="breadcrumbs__list">
<li class="breadcrumbs__item">
<a href="/" class="breadcrumbs__link">
<div class="hero__img is-masked" data-mask-career="image"> <span class="breadcrumbs__link-text">Главная</span>
</a>
</li><li class="breadcrumbs__item">
<span class="breadcrumbs__link breadcrumbs__link--current">
<span class="breadcrumbs__link-text"><?=$arItem['PROPERTIES']['NAME']['VALUE']?></span>
</span>
</li>
</ol>
</div>
<div class="hero__img " data-mask-career="image">
<picture> <picture>
<source media="(min-width: 1921px)" <source media="(min-width: 1921px)"
......
...@@ -12,7 +12,7 @@ $arFilter = Array( ...@@ -12,7 +12,7 @@ $arFilter = Array(
"ID"=>384 "ID"=>384
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID обязательно должны быть
// указаны, // указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
...@@ -20,6 +20,7 @@ while($ob = $res->GetNextElement()) { ...@@ -20,6 +20,7 @@ while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT']; $arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
?> ?>
...@@ -23,7 +23,7 @@ $this->setFrameMode(true); ...@@ -23,7 +23,7 @@ $this->setFrameMode(true);
<div class="unity-development__left"> <div class="unity-development__left">
<div class="section-title unity-development__title section-title--dark"> <div class="section-title unity-development__title section-title--dark">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">unity in development</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines <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> splitting is-show" style="--word-total: 5; --line-total: 2;"><?=$arResult['TITLE']?></h2>
</div> </div>
......
...@@ -12,7 +12,7 @@ $arFilter = Array( ...@@ -12,7 +12,7 @@ $arFilter = Array(
"ID"=>389 "ID"=>389
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID обязательно должны быть
// указаны, // указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
...@@ -20,6 +20,7 @@ while($ob = $res->GetNextElement()) { ...@@ -20,6 +20,7 @@ while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT']; $arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
?> ?>
...@@ -19,7 +19,7 @@ $this->setFrameMode(true); ...@@ -19,7 +19,7 @@ $this->setFrameMode(true);
<div class="team__top"> <div class="team__top">
<div class="section-title team__title section-title--dark"> <div class="section-title team__title section-title--dark">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">о нас</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" class="title title--h2 section-title__title"><?=mb_strtolower($arResult['TITLE'])?></h2> <h2 data-animate="title" class="title title--h2 section-title__title"><?=mb_strtolower($arResult['TITLE'])?></h2>
</div> </div>
</div> </div>
......
...@@ -47,7 +47,7 @@ $this->setFrameMode(true); ...@@ -47,7 +47,7 @@ $this->setFrameMode(true);
<div class="horizontal__inner"> <div class="horizontal__inner">
<div class="section-title horizontal__section-title section-title--dark"> <div class="section-title horizontal__section-title section-title--dark">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">о компании</p> <p class="section-title__badge"><?=tags(76, 493,"о компании");?></p>
<h2 data-animate="title" class="title title--h2 section-title__title">UDV Group<br class="show-on-xl show-on-desktop"> в цифрах</h2> <h2 data-animate="title" class="title title--h2 section-title__title">UDV Group<br class="show-on-xl show-on-desktop"> в цифрах</h2>
</div> </div>
......
...@@ -12,7 +12,7 @@ $arFilter = Array( ...@@ -12,7 +12,7 @@ $arFilter = Array(
"ID"=>406 "ID"=>406
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_BTN_TEXT","PROPERTY_BTN_EMAIL"); $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_BTN_TEXT","PROPERTY_BTN_EMAIL","PROPERTY_TAG");
// указаны, // указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
...@@ -24,6 +24,7 @@ while($ob = $res->GetNextElement()) { ...@@ -24,6 +24,7 @@ while($ob = $res->GetNextElement()) {
$arResult['TEXT'] = $arItem['PREVIEW_TEXT']; $arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
$arResult['BTN_TEXT'] = $arItem['PROPERTY_BTN_TEXT_VALUE']; $arResult['BTN_TEXT'] = $arItem['PROPERTY_BTN_TEXT_VALUE'];
$arResult['BTN_EMAIL'] = $arItem['PROPERTY_BTN_EMAIL_VALUE']; $arResult['BTN_EMAIL'] = $arItem['PROPERTY_BTN_EMAIL_VALUE'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
......
...@@ -22,7 +22,7 @@ $this->setFrameMode(true); ...@@ -22,7 +22,7 @@ $this->setFrameMode(true);
<div class="vacancies__top"> <div class="vacancies__top">
<div class="section-title section-title--dark"> <div class="section-title section-title--dark">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">работа</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" class="title title--h2 <h2 data-animate="title" class="title title--h2
section-title__title"><?=$arResult['NAME']?></h2> section-title__title"><?=$arResult['NAME']?></h2>
</div> </div>
......
...@@ -12,13 +12,14 @@ $arFilter = Array( ...@@ -12,13 +12,14 @@ $arFilter = Array(
"ID"=>394 "ID"=>394
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID обязательно должны быть
// указаны, // указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) { while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
......
...@@ -20,7 +20,7 @@ $this->setFrameMode(true); ...@@ -20,7 +20,7 @@ $this->setFrameMode(true);
<div class="variability__top"> <div class="variability__top">
<div class="section-title section-title--dark"> <div class="section-title section-title--dark">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">условия</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" class="title title--h2 section-title__title"><?=$arResult['TITLE']?></h2> <h2 data-animate="title" class="title title--h2 section-title__title"><?=$arResult['TITLE']?></h2>
</div> </div>
......
...@@ -11,6 +11,21 @@ ...@@ -11,6 +11,21 @@
/** @var string $componentPath */ /** @var string $componentPath */
/** @var CBitrixComponent $component */ /** @var CBitrixComponent $component */
$this->setFrameMode(true); $this->setFrameMode(true);
if ($_GET['hash']){
$hash=\Cutil::translit((string)$_GET['hash'],"ru",["replace_space"=>"-",
"replace_other"=>"-"]);
?>
<style>
.news__list li {
display: none;
}
.news__list li[data-hash="<?=$hash?>"] {
display: block;
}
</style>
<?php
}
?> ?>
...@@ -21,8 +36,12 @@ $this->setFrameMode(true); ...@@ -21,8 +36,12 @@ $this->setFrameMode(true);
$imgSrcMob=CFile::GetPath($arItem["PROPERTIES"]['PREVIEW_PICTURE_MOB']['VALUE']); $imgSrcMob=CFile::GetPath($arItem["PROPERTIES"]['PREVIEW_PICTURE_MOB']['VALUE']);
$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT")); $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'))); $this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
if($arItem['PROPERTIES']["HASHTAG"]["VALUE"]){
$hash=\Cutil::translit((string)$arItem['PROPERTIES']["HASHTAG"]["VALUE"],"ru",["replace_space"=>"-","replace_other"=>"-"]);
} else $hash="";
?> ?>
<li class="news__item" id="<?= $this->GetEditAreaId($arItem['ID']); ?>"> <li class="news__item" data-hash="<?=$hash?>" id="<?= $this->GetEditAreaId($arItem['ID']); ?>">
<div class="article-card"> <div class="article-card">
<a class="article-card__inner" href="<?= $arItem['DETAIL_PAGE_URL'] ?>"> <a class="article-card__inner" href="<?= $arItem['DETAIL_PAGE_URL'] ?>">
<?if ($arItem['PREVIEW_PICTURE']['SRC']){ <?if ($arItem['PREVIEW_PICTURE']['SRC']){
......
...@@ -31,7 +31,7 @@ $arFilter = Array( ...@@ -31,7 +31,7 @@ $arFilter = Array(
"ID"=>386 "ID"=>386
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID обязательно должны быть
// указаны, // указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
...@@ -39,5 +39,7 @@ while($ob = $res->GetNextElement()) { ...@@ -39,5 +39,7 @@ while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['TITLE'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT']; $arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
...@@ -19,7 +19,7 @@ $this->setFrameMode(true); ...@@ -19,7 +19,7 @@ $this->setFrameMode(true);
<div class="products-solutions__aside"> <div class="products-solutions__aside">
<div class="section-title products-solutions__header section-title--dark"> <div class="section-title products-solutions__header section-title--dark">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">экосистема</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting is-show"><?=$arResult['TITLE']?></h2> class="title title--h2 section-title__title words lines splitting is-show"><?=$arResult['TITLE']?></h2>
</div> </div>
......
...@@ -12,13 +12,14 @@ $arFilter = Array( ...@@ -12,13 +12,14 @@ $arFilter = Array(
"ID"=>355 "ID"=>355
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID обязательно должны быть
// указаны, // указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) { while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
......
...@@ -26,9 +26,9 @@ $this->setFrameMode(true); ...@@ -26,9 +26,9 @@ $this->setFrameMode(true);
<div class="team-research__top"> <div class="team-research__top">
<div class="section-title team-research__title"> <div class="section-title team-research__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">команда</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines <h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?=$arResult['NAME']?></h2> splitting"><?=$arResult['NAME']?></h2>
</div> </div>
</div> </div>
......
...@@ -12,12 +12,13 @@ $arFilter = Array( ...@@ -12,12 +12,13 @@ $arFilter = Array(
"ID"=>440 "ID"=>440
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) { while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
...@@ -26,10 +26,9 @@ $this->setFrameMode(true); ...@@ -26,10 +26,9 @@ $this->setFrameMode(true);
<div class="advantages-solutions__header"> <div class="advantages-solutions__header">
<div class="section-title"> <div class="section-title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">исследования</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting class="title title--h2 section-title__title words lines splitting"><?=$arResult['NAME']?></h2>
is-show"><?=$arResult['NAME']?></h2>
</div> </div>
</div> </div>
......
...@@ -11,7 +11,7 @@ $arFilter = Array( ...@@ -11,7 +11,7 @@ $arFilter = Array(
"ID"=>365 "ID"=>365
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_IMG");//IBLOCK_ID и ID $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_IMG","PROPERTY_TAG");//IBLOCK_ID и ID
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) { while($ob = $res->GetNextElement()) {
...@@ -19,4 +19,5 @@ while($ob = $res->GetNextElement()) { ...@@ -19,4 +19,5 @@ while($ob = $res->GetNextElement()) {
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT']; $arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
$arResult['IMG'] = CFile::GetPath($arItem['PROPERTY_IMG_VALUE']); $arResult['IMG'] = CFile::GetPath($arItem['PROPERTY_IMG_VALUE']);
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
...@@ -24,9 +24,9 @@ $this->setFrameMode(true); ...@@ -24,9 +24,9 @@ $this->setFrameMode(true);
<div class="links__aside"> <div class="links__aside">
<div class="section-title links__title"> <div class="section-title links__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">ссылки</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines <h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?=$arResult['NAME']?></h2> splitting"><?=$arResult['NAME']?></h2>
</div> </div>
</div> </div>
......
...@@ -11,11 +11,12 @@ $arFilter = Array( ...@@ -11,11 +11,12 @@ $arFilter = Array(
"ID"=>371 "ID"=>371
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_IMG");//IBLOCK_ID и ID $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_IMG","PROPERTY_TAG");//IBLOCK_ID и ID
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
while($ob = $res->GetNextElement()) { while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
...@@ -25,9 +25,9 @@ $this->setFrameMode(true); ...@@ -25,9 +25,9 @@ $this->setFrameMode(true);
<div class="other-news__top"> <div class="other-news__top">
<div class="section-title other-news__section-title"> <div class="section-title other-news__section-title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">события</p> <p class="section-title__badge"><?= $arResult['TAG'] ?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines <h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?= $arResult['NAME'] ?></h2> splitting"><?= $arResult['NAME'] ?></h2>
</div> </div>
</div> </div>
......
...@@ -11,7 +11,7 @@ $arFilter = Array( ...@@ -11,7 +11,7 @@ $arFilter = Array(
"ID"=>349 "ID"=>349
); );
$arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE");//IBLOCK_ID и ID обязательно должны быть $arSelect = Array("ID", "IBLOCK_ID", "NAME","PREVIEW_TEXT","PROPERTY_TITLE","PROPERTY_TAG");//IBLOCK_ID и ID обязательно должны быть
// указаны, // указаны,
$res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect); $res = CIBlockElement::GetList(Array(), $arFilter, false,array('nTopCount'=>1), $arSelect);
...@@ -19,4 +19,5 @@ while($ob = $res->GetNextElement()) { ...@@ -19,4 +19,5 @@ while($ob = $res->GetNextElement()) {
$arItem = $ob->GetFields(); $arItem = $ob->GetFields();
$arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT']; $arResult['NAME'] = $arItem['~PROPERTY_TITLE_VALUE']['TEXT'];
$arResult['TEXT'] = $arItem['PREVIEW_TEXT']; $arResult['TEXT'] = $arItem['PREVIEW_TEXT'];
$arResult['TAG'] = $arItem['PROPERTY_TAG_VALUE'];
} }
...@@ -24,7 +24,7 @@ $this->setFrameMode(true); ...@@ -24,7 +24,7 @@ $this->setFrameMode(true);
<div class="cooperation__top"> <div class="cooperation__top">
<div class="section-title cooperation__title"> <div class="section-title cooperation__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">сотрудничество</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines <h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show"><?=$arResult['NAME']?></h2> splitting is-show"><?=$arResult['NAME']?></h2>
</div> </div>
......
...@@ -70,6 +70,32 @@ $file = new ICS($start, $end, $name, $description, $link, $link); ...@@ -70,6 +70,32 @@ $file = new ICS($start, $end, $name, $description, $link, $link);
$fileID = $file->save(); //ID сохранённого файла в БД Битрикса $fileID = $file->save(); //ID сохранённого файла в БД Битрикса
$fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый файл $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый файл
//теги
if ($arResult["PROPERTIES"]['FOR_TAG']["VALUE"]){
$forTag=$arResult["PROPERTIES"]['FOR_TAG']["VALUE"];
} else $forTag="для кого";
if ($arResult["PROPERTIES"]['PROGRAM_TAG']["VALUE"]){
$programTag=$arResult["PROPERTIES"]['PROGRAM_TAG']["VALUE"];
} else $programTag="программа";
if ($arResult["PROPERTIES"]['SPIKERS_TAG']["VALUE"]){
$spikersTag=$arResult["PROPERTIES"]['SPIKERS_TAG']["VALUE"];
} else $spikersTag="участники";
if ($arResult["PROPERTIES"]['MATERIALS_TAG']["VALUE"]){
$materialsTag=$arResult["PROPERTIES"]['MATERIALS_TAG']["VALUE"];
} else $materialsTag="материалы";
if ($arResult["PROPERTIES"]['PLACE_TAG']["VALUE"]){
$placeTag=$arResult["PROPERTIES"]['PLACE_TAG']["VALUE"];
} else $placeTag="место";
if ($arResult["PROPERTIES"]['FORM_TAG']["VALUE"]){
$formTag=$arResult["PROPERTIES"]['FORM_TAG']["VALUE"];
} else $formTag="оставьте заявку";
...@@ -364,7 +390,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый ...@@ -364,7 +390,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый
<div class="audience__inner"> <div class="audience__inner">
<div class="section-title audience__title"> <div class="section-title audience__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">для кого</p> <p class="section-title__badge"><?=$forTag?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting" class="title title--h2 section-title__title words lines splitting"
style="--word-total: 4; --line-total: 2;">для кого предназначено мероприятие</h2> style="--word-total: 4; --line-total: 2;">для кого предназначено мероприятие</h2>
...@@ -413,7 +439,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый ...@@ -413,7 +439,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый
<div class="event-program__top"> <div class="event-program__top">
<div class="section-title event-program__title"> <div class="section-title event-program__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">программа</p> <p class="section-title__badge"><?=$programTag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines splitting" <h2 data-animate="title" class="title title--h2 section-title__title words lines splitting"
style="--word-total: 2; --line-total: 1;">программа мероприятия</h2> style="--word-total: 2; --line-total: 1;">программа мероприятия</h2>
</div> </div>
...@@ -540,7 +566,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый ...@@ -540,7 +566,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый
<div class="speakers-slider__top"> <div class="speakers-slider__top">
<div class="section-title speakers-slider__title"> <div class="section-title speakers-slider__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">участники</p> <p class="section-title__badge"><?=$spikersTag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines splitting" <h2 data-animate="title" class="title title--h2 section-title__title words lines splitting"
style="--word-total: 4; --line-total: 2;">спикеры и участники мероприятия</h2> style="--word-total: 4; --line-total: 2;">спикеры и участники мероприятия</h2>
</div> </div>
...@@ -618,7 +644,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый ...@@ -618,7 +644,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый
<div class="materials__inner"> <div class="materials__inner">
<div class="section-title materials__title"> <div class="section-title materials__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">материалы</p> <p class="section-title__badge"><?=$materialsTag?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting" class="title title--h2 section-title__title words lines splitting"
style="--word-total: 3; --line-total: 1;">видео о мероприятии style="--word-total: 3; --line-total: 1;">видео о мероприятии
...@@ -737,7 +763,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый ...@@ -737,7 +763,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый
<div class="event-place__info-column"> <div class="event-place__info-column">
<div class="section-title event-place__title"> <div class="section-title event-place__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">место</p> <p class="section-title__badge"><?=$placeTag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines <h2 data-animate="title" class="title title--h2 section-title__title words lines
splitting is-show" style="--word-total: 3; --line-total: 2;">где пройдёт splitting is-show" style="--word-total: 3; --line-total: 2;">где пройдёт
мероприятие</h2> мероприятие</h2>
...@@ -817,7 +843,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый ...@@ -817,7 +843,7 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый
</div> </div>
<div class="section-title write-to-us-form__title"> <div class="section-title write-to-us-form__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">оставьте заявку</p> <p class="section-title__badge"><?=$formTag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words lines splitting" <h2 data-animate="title" class="title title--h2 section-title__title words lines splitting"
style="--word-total: 4; --line-total: 2;"> style="--word-total: 4; --line-total: 2;">
<?=($arResult['PROPERTIES']['FORM_H3']['VALUE'])?$arResult['PROPERTIES']['FORM_H3']['VALUE']:'записаться на онлайн мероприятие'?> <?=($arResult['PROPERTIES']['FORM_H3']['VALUE'])?$arResult['PROPERTIES']['FORM_H3']['VALUE']:'записаться на онлайн мероприятие'?>
...@@ -897,7 +923,8 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый ...@@ -897,7 +923,8 @@ $fileLink = CFile::GetPath($fileID); //Ссылка на сохранённый
<span class="custom-toggle__label"> <span class="custom-toggle__label">
<span class="custom-toggle__label-text">Я согласен с <a href="#">Политикой конфиденциальности</a></span> <span class="custom-toggle__label-text">Я согласен с <a href="/privacy/">Политикой
конфиденциальности</a></span>
<span class="custom-toggle__label-icon"> <span class="custom-toggle__label-icon">
<svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right"> <svg width="1em" height="1em" viewBox="0 0 20 20" data-icon="icon-arrow-up-right">
......
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
/** @var CBitrixComponent $component */ /** @var CBitrixComponent $component */
$this->setFrameMode(true); $this->setFrameMode(true);
if ($arResult['PROPERTIES']['NAME']['VALUE']){
$name=$arResult['PROPERTIES']['NAME']['VALUE'];
} else $name=$arResult['NAME'];
?> ?>
<div class="container container--pt-header container--mb"> <div class="container container--pt-header container--mb">
...@@ -33,7 +35,7 @@ $this->setFrameMode(true); ...@@ -33,7 +35,7 @@ $this->setFrameMode(true);
</li><li class="breadcrumbs__item"> </li><li class="breadcrumbs__item">
<span class="breadcrumbs__link breadcrumbs__link--current"> <span class="breadcrumbs__link breadcrumbs__link--current">
<span class="breadcrumbs__link-text"><?=$arResult['NAME']?></span> <span class="breadcrumbs__link-text"><?=$name?></span>
</span> </span>
</li> </li>
...@@ -485,7 +487,7 @@ $this->setFrameMode(true); ...@@ -485,7 +487,7 @@ $this->setFrameMode(true);
<?php foreach ($arResult["OTHERS"] as $arItem) : ?> <?php foreach ($arResult["OTHERS"] as $arItem) : ?>
<li class="other-news__item swiper-slide"> <li class="other-news__item swiper-slide">
<div class="article-card article-card--other-news"> <div class="article-card article-card--other-news">
<p class="article-card__inner" href="<?= $arItem['DETAIL_PAGE_URL'] ?>"> <a class="article-card__inner" href="<?= $arItem['DETAIL_PAGE_URL'] ?>">
<div class="article-card__image"> <div class="article-card__image">
<picture> <picture>
......
...@@ -233,9 +233,15 @@ if (empty($arResult["ITEMS"])) { ...@@ -233,9 +233,15 @@ if (empty($arResult["ITEMS"])) {
</button> </button>
</a> </a>
</li> </li>
<? foreach ($arResult['HASHTAGS'] as $item) { ?> <? foreach ($arResult['HASHTAGS'] as $item) {
$hash=\Cutil::translit((string)$item,"ru",["replace_space"=>"-",
"replace_other"=>"-"]);
?>
<li class="article-controls__item swiper-slide " data-tabs-controls-slider="slide"> <li class="article-controls__item swiper-slide " data-tabs-controls-slider="slide">
<a class="hash-link" href="?hash=<?= trim($item) ?>#page"> <a class="hash-link" data-name="<?=$hash?>" href="?hash=<?= trim($item)
?>#page">
<button class="article-controls__btn <?= ($_GET['hash'] == trim($item)) ? 'is-active' : '' ?>" <button class="article-controls__btn <?= ($_GET['hash'] == trim($item)) ? 'is-active' : '' ?>"
data-articles="eco"> data-articles="eco">
<span class="article-controls__icon"> <span class="article-controls__icon">
...@@ -255,10 +261,7 @@ if (empty($arResult["ITEMS"])) { ...@@ -255,10 +261,7 @@ if (empty($arResult["ITEMS"])) {
</div> </div>
</div> </div>
<? if ($_GET['hash']) { <?
$GLOBALS['arrFilter'] = array('PROPERTY_HASHTAG' => $_GET['hash']);
}
$APPLICATION->IncludeComponent( $APPLICATION->IncludeComponent(
"bitrix:news.list", "bitrix:news.list",
"news_tags", "news_tags",
......
...@@ -47,6 +47,8 @@ if (!empty($arResult['PROPERTIES']['FAQ']['VALUE'])) { ...@@ -47,6 +47,8 @@ if (!empty($arResult['PROPERTIES']['FAQ']['VALUE'])) {
} }
$vk=str_replace("https://vk.com/video-", "",$arResult['PROPERTIES']['VIDEO_LINK']['VALUE']); $vk=str_replace("https://vk.com/video-", "",$arResult['PROPERTIES']['VIDEO_LINK']['VALUE']);
$arResult['VK_LINK']=explode("_",$vk); $arResult['VK_LINK']=explode("_",$vk);
$arResult["PREZENT_DATE"] = CIBlockFormatProperties::DateFormat('d.m.Y H:s', MakeTimeStamp($arResult["PROPERTIES"]["PREZENT_DATE"]["VALUE"], CSite::GetDateFormat())); $arResult["PREZENT_DATE"] = CIBlockFormatProperties::DateFormat('d.m.Y H:s', MakeTimeStamp($arResult["PROPERTIES"]["PREZENT_DATE"]["VALUE"], CSite::GetDateFormat()));
...@@ -68,7 +70,7 @@ if (!empty($arResult['PROPERTIES']['TASKS']['VALUE'])) { ...@@ -68,7 +70,7 @@ if (!empty($arResult['PROPERTIES']['TASKS']['VALUE'])) {
} }
} }
//решаемые задачи //преимущества
$iblockId=73; $iblockId=73;
if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) { if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) {
...@@ -85,7 +87,7 @@ if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) { ...@@ -85,7 +87,7 @@ if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) {
} }
} }
//решаемые задачи //документы
$iblockId=74; $iblockId=74;
if (!empty($arResult['PROPERTIES']['DOCUMENTS']['VALUE'])) { if (!empty($arResult['PROPERTIES']['DOCUMENTS']['VALUE'])) {
......
...@@ -45,6 +45,12 @@ while ($ob = $res->GetNextElement()) { ...@@ -45,6 +45,12 @@ while ($ob = $res->GetNextElement()) {
unset($arResult['ITEMS']); unset($arResult['ITEMS']);
$arResult['SECTIONS']=ProductMenu(11,"PROPERTY_SORT_PRODUCT"); $arResult['SECTIONS']=ProductMenu(11,"PROPERTY_SORT_PRODUCT");
$arResult['TAG']=tags(76, 486,"экосистема");
......
...@@ -119,7 +119,7 @@ $this->setFrameMode(true); ...@@ -119,7 +119,7 @@ $this->setFrameMode(true);
<div class="container"> <div class="container">
<div class="section-title ecosystem__header"> <div class="section-title ecosystem__header">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">экосистема</p> <p class="section-title__badge"><?=$arResult['TAG']?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting is-show">используем class="title title--h2 section-title__title words lines splitting is-show">используем
комплексный подход<br> к защите от киберугроз</h2> комплексный подход<br> к защите от киберугроз</h2>
......
...@@ -64,6 +64,8 @@ $arSelect = array( ...@@ -64,6 +64,8 @@ $arSelect = array(
"PREVIEW_PICTURE", "PREVIEW_PICTURE",
"PROPERTY_IMG_768", "PROPERTY_IMG_768",
"PROPERTY_IMG_767", "PROPERTY_IMG_767",
"PROPERTY_IMG_1921",
); );
if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) { if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) {
...@@ -76,6 +78,7 @@ if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) { ...@@ -76,6 +78,7 @@ if (!empty($arResult['PROPERTIES']['ADVANTAGES']['VALUE'])) {
$arFields['PREVIEW_PICTURE'] = CFile::GetPath($arFields['PREVIEW_PICTURE']); $arFields['PREVIEW_PICTURE'] = CFile::GetPath($arFields['PREVIEW_PICTURE']);
$arFields['IMG_767'] = CFile::GetPath($arFields['PROPERTY_IMG_767_VALUE']); $arFields['IMG_767'] = CFile::GetPath($arFields['PROPERTY_IMG_767_VALUE']);
$arFields['IMG_768'] = CFile::GetPath($arFields['PROPERTY_IMG_768_VALUE']); $arFields['IMG_768'] = CFile::GetPath($arFields['PROPERTY_IMG_768_VALUE']);
$arFields['IMG_1921'] = CFile::GetPath($arFields['PROPERTY_IMG_1921_VALUE']);
$arResult['ADVANTAGES'][] = $arFields; $arResult['ADVANTAGES'][] = $arFields;
} }
......
...@@ -84,14 +84,35 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -84,14 +84,35 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
$otherTitle=$arResult['PROPERTIES']['OTHER_TITLE']['~VALUE']['TEXT']; $otherTitle=$arResult['PROPERTIES']['OTHER_TITLE']['~VALUE']['TEXT'];
} else $otherTitle="другие решения для защиты вашего бизнеса"; } else $otherTitle="другие решения для защиты вашего бизнеса";
if ($arResult['PROPERTIES']['TASK_TAG']['VALUE']){
$taskTag=$arResult['PROPERTIES']['TASK_TAG']['VALUE'];
} else $taskTag="возможности";
if ($arResult['PROPERTIES']['ARCH_TAG']['VALUE']){
$archTag=$arResult['PROPERTIES']['ARCH_TAG']['VALUE'];
} else $archTag="архитектура";
if ($arResult['PROPERTIES']['PRODUCT_TAG']['VALUE']){
$productTag=$arResult['PROPERTIES']['PRODUCT_TAG']['VALUE'];
} else $productTag="состав решения";
if ($arResult['PROPERTIES']['ADVANTAGES_TAG']['VALUE']){
$advantagesTag=$arResult['PROPERTIES']['ADVANTAGES_TAG']['VALUE'];
} else $advantagesTag="преимущества";
if ($arResult['PROPERTIES']['OTHERS_TAG']['VALUE']){
$othersTag=$arResult['PROPERTIES']['OTHERS_TAG']['VALUE'];
} else $othersTag="решения UDV Group";
if ($arResult['PROPERTIES']['NAME']['VALUE']){
$name=$arResult['PROPERTIES']['NAME']['VALUE'];
} else $name=mb_ucfirst($arResult['NAME']);
?> ?>
<section class="page-section page-section--p-t-header"> <section class="page-section page-section--p-t-header">
<div class="hero hero--technological" data-animate="hero-block"> <div class="hero hero--corporate-network" data-animate="hero-block">
<div class="container container--no-p"> <div class="container container--no-p">
<div class="hero__inner"> <div class="hero__inner">
<div class="hero__bg"> <div class="hero__bg">
...@@ -137,7 +158,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -137,7 +158,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
</li><li class="breadcrumbs__item"> </li><li class="breadcrumbs__item">
<span class="breadcrumbs__link breadcrumbs__link--current"> <span class="breadcrumbs__link breadcrumbs__link--current">
<span class="breadcrumbs__link-text"><?=mb_ucfirst($arResult['NAME'])?></span> <span class="breadcrumbs__link-text"><?=$name?></span>
</span> </span>
</li> </li>
...@@ -208,7 +229,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -208,7 +229,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
<div class="capability__aside"> <div class="capability__aside">
<div class="section-title capability__title"> <div class="section-title capability__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">возможности</p> <p class="section-title__badge"><?=$taskTag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words <h2 data-animate="title" class="title title--h2 section-title__title words
lines splitting"><?=$taskTitle?></h2> lines splitting"><?=$taskTitle?></h2>
</div> </div>
...@@ -290,7 +311,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -290,7 +311,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
<div class="architecture__aside"> <div class="architecture__aside">
<div class="section-title architecture__title"> <div class="section-title architecture__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">архитектура</p> <p class="section-title__badge"><?=$archTag?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines splitting"><?=$solutionTitle?></h2> class="title title--h2 section-title__title words lines splitting"><?=$solutionTitle?></h2>
</div> </div>
...@@ -382,7 +403,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -382,7 +403,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
<div class="composition-solution__aside"> <div class="composition-solution__aside">
<div class="section-title composition-solution__title"> <div class="section-title composition-solution__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">состав решения</p> <p class="section-title__badge"><?=$productTag?></p>
<h2 data-animate="title" class="title title--h2 section-title__title words <h2 data-animate="title" class="title title--h2 section-title__title words
lines splitting"><?=$productTitle?></h2> lines splitting"><?=$productTitle?></h2>
</div> </div>
...@@ -455,7 +476,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -455,7 +476,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
<div class="advantages-solutions__header"> <div class="advantages-solutions__header">
<div class="section-title section-title--horizontal"> <div class="section-title section-title--horizontal">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">преимущества</p> <p class="section-title__badge"><?=$advantagesTag?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines class="title title--h2 section-title__title words lines
splitting"><?=$advantagesTitle?></h2> splitting"><?=$advantagesTitle?></h2>
...@@ -531,6 +552,9 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -531,6 +552,9 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
<picture> <picture>
<source media="(min-width: 1921px)"
srcset="<?=$item['IMG_1921']?>"
type="image/webp">
<source media="(min-width: 768px)" <source media="(min-width: 768px)"
srcset="<?=$item['IMG_768']?>" srcset="<?=$item['IMG_768']?>"
type="image/webp"> type="image/webp">
...@@ -578,7 +602,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){ ...@@ -578,7 +602,7 @@ if (is_array($arResult['PROPERTIES']['OTHER_TITLE']['~VALUE'])){
<div class="other-solutions__aside"> <div class="other-solutions__aside">
<div class="section-title other-solutions__title"> <div class="section-title other-solutions__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">решения UDV Group</p> <p class="section-title__badge"><?=$othersTag?></p>
<h2 data-animate="title" <h2 data-animate="title"
class="title title--h2 section-title__title words lines class="title title--h2 section-title__title words lines
splitting"><?=$otherTitle?></h2> splitting"><?=$otherTitle?></h2>
......
...@@ -175,16 +175,21 @@ if (!$img768){ ...@@ -175,16 +175,21 @@ if (!$img768){
<div class="solution-hub-content__main"> <div class="solution-hub-content__main">
<div class="section-title solution-hub-content__title"> <div class="section-title solution-hub-content__title">
<div class="section-title__wrap"> <div class="section-title__wrap">
<p class="section-title__badge">решения</p> <p class="section-title__badge">
<?if ($item['PROPERTIES']['SOLUTION_TAG']['VALUE']){
echo $item['PROPERTIES']['SOLUTION_TAG']['VALUE'];
} else echo "решения";
?>
</p>
<h2 data-animate="title" class="title title--h2 section-title__title <h2 data-animate="title" class="title title--h2 section-title__title
words lines splitting is-show" style="--word-total: 3; --line-total: 3;"><?=$item['NAME']?></h2> words lines splitting"><?=$item['NAME']?></h2>
</div> </div>
</div> </div>
<div class="solution-hub-content__content"> <div class="solution-hub-content__content">
<p> <p>
<?if ($item['PROPERTIES']['DESCRIPTION']['~VALUE']){ <?if ($item['PROPERTIES']['LIST_TEXT']['~VALUE']){
echo $item['PROPERTIES']['DESCRIPTION']['~VALUE']['TEXT']; echo $item['PROPERTIES']['LIST_TEXT']['~VALUE']['TEXT'];
}?> }?>
</p> </p>
</div> </div>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
...@@ -55,7 +55,7 @@ $assets = Asset::getInstance(); ...@@ -55,7 +55,7 @@ $assets = Asset::getInstance();
<div class="header__inner"> <div class="header__inner">
<div class="header__top"> <div class="header__top">
<div class="header__logo-wrap"> <div class="header__logo-wrap">
<?if ($APPLICATION->GetCurDir()!="/"){?> <?if ($APPLICATION->GetCurDir()!="/" || (defined('ERROR_404') && ERROR_404 == 'Y')){?>
<a aria-label="Логотип UDV" class="logo header__logo <?=($APPLICATION->GetCurDir()=="/about/career/")?'logo--dark':''?>" href="/"> <a aria-label="Логотип UDV" class="logo header__logo <?=($APPLICATION->GetCurDir()=="/about/career/")?'logo--dark':''?>" href="/">
<?}?> <?}?>
<span class="logo header__logo"> <span class="logo header__logo">
...@@ -74,7 +74,7 @@ $assets = Asset::getInstance(); ...@@ -74,7 +74,7 @@ $assets = Asset::getInstance();
</svg> </svg>
</span> </span>
</span> </span>
<?if ($APPLICATION->GetCurDir()!="/"){?> <?if ($APPLICATION->GetCurDir()!="/" || (defined('ERROR_404') && ERROR_404 == 'Y')){?>
</a> </a>
<?}?> <?}?>
......
...@@ -67,23 +67,18 @@ $(document).ready(function(){ ...@@ -67,23 +67,18 @@ $(document).ready(function(){
var targetContainer = $('#page'), var targetContainer = $('#page'),
url = "/about/news/" + $(this).attr('href'); url = "/about/news/" + $(this).attr('href');
window.history.replaceState(null, null, url); window.history.replaceState(null, null, url);
if (url !== undefined) {
$('#pag').fadeOut(300); $('#pag').fadeOut(300);
$('.news-pag').fadeOut(300); $('.news-pag').fadeOut(300);
$('.news__pagination').fadeOut(300, function() { $('.news__pagination').fadeOut(300);
targetContainer.find('.news__list').detach(); let name=$(this).data("name");
$.ajax({ $.each($('ul.news__list > li'), function(index, category) {
type: 'GET', if ($(this).data("hash")!=name){
url: url, $(this).hide(300);
dataType: 'html', } else $(this).show(300);
success: function(data) {
var elements = $(data).find('.news__list');
targetContainer.append(elements);
targetContainer.find('.news__list').hide().fadeIn(300);
}
});
}); });
}
}); });
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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