function onInitSlider(){$(".documents__main-slide .table__item img").attr("src",$(".documents__nav .table__item:first img").attr("src")),$(".documents__main-slide .info__title").html($(".documents__nav .table__item:first .info__title").html()),$(".documents__main-slide .info__number").html($(".documents__nav .table__item:first .info__number").html()),$(".documents__main-slide .table__item a").attr("href",$(".documents__nav .table__item:first img").attr("src"))}function hideModal(e){e.animate({opacity:"0"},200,function(){e.removeClass("active"),$(".overlay").hide()})}function showModal(e){$(".overlay").show(),e.addClass("active"),e.animate({opacity:"1"},200)}function scrollTo(e){$padding=$(".header").css("padding-top"),$offset=$(e).offset().top-parseInt($padding)-15,$("body, html").animate({scrollTop:$offset},1e3),$(".mobile-header__burger").hasClass("active")&&($(".mobile-header__burger").removeClass("active"),$(".mobile-menu").removeClass("active"))}$(function(){$(".mobile-header__burger").on("click",function(){$(this).toggleClass("active"),$(".mobile-menu").toggleClass("active")}),$("#files").on("change",function(){switch(this.files.length.toString().slice(-1)){case"1":$(".files-counter").html("Выбран "+this.files.length+" файл");break;case"2":case"3":case"4":$(".files-counter").html("Выбрано "+this.files.length+" файла");break;default:$(".files-counter").html("Выбрано "+this.files.length+" файлов")}}),$(window).on("scroll",function(){$(".header__mobile-header").offset().top>0?$(".header__mobile-header").addClass("header__mobile-header_blue-bg"):$(".header__mobile-header").removeClass("header__mobile-header_blue-bg"),$(".header__top-menu").offset().top>0?$(".header__top-menu").addClass("header__top-menu_blue-bg"):$(".header__top-menu").removeClass("header__top-menu_blue-bg")}),$(".header__calculate-btn, .works__calculate-btn").on("click",function(e){scrollTo(".calculating"),e.preventDefault()}),$(".header .more-btn").on("click",function(e){scrollTo(".works"),e.preventDefault()}),$(".services-item").on("click",function(e){scrollTo(".services"),e.preventDefault()}),$(".advantages-item").on("click",function(e){scrollTo(".advantages"),e.preventDefault()}),$(".deadlines-item").on("click",function(e){scrollTo(".deadlines"),e.preventDefault()}),$(".contacts-item").on("click",function(e){scrollTo(".contacts"),e.preventDefault()}),$(".works .table__item").on("mouseenter",function(){$(window).width()>996&&($(this).addClass("hover"),$(this).find(".item__info").fadeIn(300))}),$(".works .table__item").on("mouseleave",function(){$(window).width()>996&&($(this).find(".item__info").fadeOut(300),$(this).removeClass("hover"))}),$(".documents__nav .table__item img").on("click",function(){$(window).width()<680?($(".modal__document img").attr("src",$(this).attr("src")),showModal($(".modal__document"))):($img=$(this).attr("src"),$(".documents__main-slide .table__item img").fadeOut(200,function(){$(this).attr("src",$img)}),$(".documents__main-slide .table__item img").fadeIn(),$(".documents__main-slide .table__item a").attr("href",$img),$(".documents__main-slide .table__item .info__title").html($(this).parent().find(".info__title").html()),$(".documents__main-slide .table__item .info__number").html($(this).parent().find(".info__number").html()))}),$(".objects__slider").owlCarousel({navText:[$(".objects__slider-nav .slider-nav__prev"),$(".objects__slider-nav .slider-nav__next")],items:3,margin:30,nav:!0,dots:!1,loop:!1,lazyLoad:!0,responsive:{0:{items:1.3,margin:30},834:{items:2,margin:30},1240:{items:3,margin:30}}}),$(window).width()<=768&&$(".documents__slider").owlCarousel({navText:[$(".documents__slider-nav .slider-nav__prev"),$(".documents__slider-nav .slider-nav__next")],margin:30,dots:!1,nav:!0,lazyLoad:!0,onInitialized:onInitSlider,responsive:{0:{items:1,margin:20},480:{items:2,margin:30}}}),$(".slider__item a").length>0&&$(".slider__item a").simpleLightbox(),$(".overlay").on("click",function(){hideModal($(".modal"))}),$(".modal__close").on("click",function(){hideModal($(this).closest(".modal"))}),$(".footer__item .policy, .modal__policy-link, .questions-form__policy").on("click",function(e){showModal($(".modal__policy")),e.preventDefault()}),$(".write-btn").on("click",function(e){showModal($(".modal__mail")),e.preventDefault()}),$(".call-btn").on("click",function(e){showModal($(".modal__callback")),e.preventDefault()}),$(".works .item__info ul").each(function(){1===$(this).children().length&&$(this).parent().addClass("disable-marker")}),$(".works .item__head").on("click",function(){$(window).width()<996&&($(this).parent().toggleClass("hover"),$(this).parent().hasClass("hover")?$(this).parent().find(".item__info").fadeIn(300):$(this).parent().find(".item__info").fadeOut(300))}),$(".item__info .info__close").on("click",function(){$(this).closest(".table__item").removeClass("hover"),$(this).closest(".item__info").fadeOut(300)}),$(".location__close").on("click",function(){$(".contacts").removeClass("tablet-active"),$(".contacts").removeClass("mobile-active"),$(this).parent().removeClass("active")}),$(window).width()>996&&$(window).width()<1355?($(".contacts").addClass("tablet-active"),$(".contacts__location").removeClass("active")):$(window).width()<996?($(".contacts").addClass("mobile-active"),$(".contacts__location").removeClass("active")):($(".contacts").removeClass("tablet-active"),$(".contacts").removeClass("mobile-active")),ymaps.ready(function(){var e=new ymaps.Map("map",{center:[55.643419,37.674517],zoom:16,controls:[]},{searchControlProvider:"yandex#search"}),t=ymaps.templateLayoutFactory.createClass('<div class="placemark_layout_container"><div class="circle_layout"></div></div>'),i=new ymaps.Placemark([55.643419,37.674517],{iconContent:"12"},{iconLayout:t,iconShape:{type:"Circle",coordinates:[0,0],radius:25},iconImageSize:[68,68],iconImageOffset:[-12,0]});e.geoObjects.add(i),e.behaviors.disable("scrollZoom"),e.container.fitToViewport(),$(window).width()<1280&&e.setCenter([55.643419,37.674517]),i.events.add("click",function(){$(window).width()>996&&$(window).width()<1355?$(".contacts").toggleClass("tablet-active"):$(window).width()<996?$(".contacts").toggleClass("mobile-active"):$(".contacts__location").toggleClass("active")})}),function(){window.yandexChatWidgetCallback=function(){try{window.yandexChatWidget=new Ya.ChatWidget({guid:"25164c8a-a9e6-4095-83ec-04bb9a0ad9b3",buttonText:"Не любите звонить? Напишите в чат!",title:"Чат с консультантом компании",theme:"dark",collapsedDesktop:"never",collapsedTouch:"always"})}catch(e){}};var e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.async=!0,t.charset="UTF-8",t.src="../chat.s3.yandex.net/widget.js",e.parentNode.insertBefore(t,e)}(),$(function(){$(".ajax_form").append('<input type="text" name="org" value="" class="_org" style="visibility:hidden; height: 0; width: 0; padding: 0; border:none;"/>')})});
$arSeoItem = $arTmpRegionsLanding = array();
if($arSeoItems)
{
$iLandingItemID = 0;
$current_url = $APPLICATION->GetCurDir();
$url = urldecode(str_replace(' ', '+', $current_url));
foreach($arSeoItems as $arItem)
{
if(!is_array($arItem['PROPERTY_LINK_REGION_VALUE']))
$arItem['PROPERTY_LINK_REGION_VALUE'] = (array)$arItem['PROPERTY_LINK_REGION_VALUE'];
if(!$arSeoItem)
{
$urldecoded = urldecode($arItem["PROPERTY_FILTER_URL_VALUE"]);
if($urldecoded == $url || $urldecoded == $current_url)
{
if($arItem['PROPERTY_LINK_REGION_VALUE'])
{
if($arRegion && in_array($arRegion['ID'], $arItem['PROPERTY_LINK_REGION_VALUE']))
$arSeoItem = $arItem;
}
else
{
$arSeoItem = $arItem;
}
if($arSeoItem)
{
$iLandingItemID = $arSeoItem['ID'];
$arSeoItem = CNextCache::CIBLockElement_GetList(array('SORT' => 'ASC', 'CACHE' => array("MULTI" => "N", "TAG" => CNextCache::GetIBlockCacheTag($catalogInfoIblockId))), array("IBLOCK_ID" => $catalogInfoIblockId, "ID" => $iLandingItemID), false, false, array("ID", "IBLOCK_ID", "NAME", "PREVIEW_TEXT", "DETAIL_PICTURE", "PROPERTY_FILTER_URL", "PROPERTY_LINK_REGION", "PROPERTY_FORM_QUESTION", "PROPERTY_SECTION_SERVICES", "PROPERTY_TIZERS", "PROPERTY_SECTION", "DETAIL_TEXT", "PROPERTY_I_ELEMENT_PAGE_TITLE", "PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_ALT", "PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_TITLE", "PROPERTY_I_SKU_PAGE_TITLE", "PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_ALT", "PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_TITLE", "ElementValues"));
$arIBInheritTemplates = array(
"ELEMENT_PAGE_TITLE" => $arSeoItem["PROPERTY_I_ELEMENT_PAGE_TITLE_VALUE"],
"ELEMENT_PREVIEW_PICTURE_FILE_ALT" => $arSeoItem["PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_ALT_VALUE"],
"ELEMENT_PREVIEW_PICTURE_FILE_TITLE" => $arSeoItem["PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_TITLE_VALUE"],
"SKU_PAGE_TITLE" => $arSeoItem["PROPERTY_I_SKU_PAGE_TITLE_VALUE"],
"SKU_PREVIEW_PICTURE_FILE_ALT" => $arSeoItem["PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_ALT_VALUE"],
"SKU_PREVIEW_PICTURE_FILE_TITLE" => $arSeoItem["PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_TITLE_VALUE"],
);
}
}
}
if($arItem['PROPERTY_LINK_REGION_VALUE'])
{
if(!$arRegion || !in_array($arRegion['ID'], $arItem['PROPERTY_LINK_REGION_VALUE']))
$arTmpRegionsLanding[] = $arItem['ID'];
}
}
}
}
if($arRegion)
{
if($arRegion["LIST_STORES"] && $arParams["HIDE_NOT_AVAILABLE"] == "Y")
{
if($arParams['STORES']){
if(count($arParams['STORES']) > 1){
$arStoresFilter = array('LOGIC' => 'OR');
foreach($arParams['STORES'] as $storeID)
{
$arStoresFilter[] = array(">CATALOG_STORE_AMOUNT_".$storeID => 0);
}
}
else{
foreach($arParams['STORES'] as $storeID)
{
$arStoresFilter = array(">CATALOG_STORE_AMOUNT_".$storeID => 0);
}
}
$arTmpFilter = array('!TYPE' => '2');
if($arStoresFilter){
if(count($arStoresFilter) > 1){
$arTmpFilter[] = $arStoresFilter;
}
else{
$arTmpFilter = array_merge($arTmpFilter, $arStoresFilter);
}
$GLOBALS[$arParams["FILTER_NAME"]][] = array(
'LOGIC' => 'OR',
array('TYPE' => '2'),
$arTmpFilter,
);
}
}
}
$arParams["USE_REGION"] = "Y";
$GLOBALS[$arParams['FILTER_NAME']]['IBLOCK_ID'] = $arParams['IBLOCK_ID'];
CNext::makeElementFilterInRegion($GLOBALS[$arParams['FILTER_NAME']]);
}
/* hide compare link from module options */
if(CNext::GetFrontParametrValue('CATALOG_COMPARE') == 'N')
$arParams["USE_COMPARE"] = 'N';
/**/
?>
<?if(!in_array("DETAIL_PAGE_URL", (array)$arParams["LIST_OFFERS_FIELD_CODE"]))
$arParams["LIST_OFFERS_FIELD_CODE"][] = "DETAIL_PAGE_URL";?>
<?$arTransferParams = array(
"SHOW_ABSENT" => $arParams["SHOW_ABSENT"],
"HIDE_NOT_AVAILABLE_OFFERS" => $arParams["HIDE_NOT_AVAILABLE_OFFERS"],
"PRICE_CODE" => $arParams["PRICE_CODE"],
"OFFER_TREE_PROPS" => $arParams["OFFER_TREE_PROPS"],
"OFFER_SHOW_PREVIEW_PICTURE_PROPS" => $arParams["OFFER_SHOW_PREVIEW_PICTURE_PROPS"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
"CONVERT_CURRENCY" => $arParams["CONVERT_CURRENCY"],
"CURRENCY_ID" => $arParams["CURRENCY_ID"],
"OFFERS_SORT_FIELD" => $arParams["OFFERS_SORT_FIELD"],
"OFFERS_SORT_ORDER" => $arParams["OFFERS_SORT_ORDER"],
"OFFERS_SORT_FIELD2" => $arParams["OFFERS_SORT_FIELD2"],
"OFFERS_SORT_ORDER2" => $arParams["OFFERS_SORT_ORDER2"],
"LIST_OFFERS_LIMIT" => $arParams["LIST_OFFERS_LIMIT"],
"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
"LIST_OFFERS_PROPERTY_CODE" => $arParams["LIST_OFFERS_PROPERTY_CODE"],
"SHOW_DISCOUNT_TIME" => $arParams["SHOW_DISCOUNT_TIME"],
"SHOW_COUNTER_LIST" => $arParams["SHOW_COUNTER_LIST"],
"PRICE_VAT_INCLUDE" => $arParams["PRICE_VAT_INCLUDE"],
"USE_PRICE_COUNT" => $arParams["USE_PRICE_COUNT"],
"SHOW_MEASURE" => $arParams["SHOW_MEASURE"],
"SHOW_OLD_PRICE" => $arParams["SHOW_OLD_PRICE"],
"SHOW_DISCOUNT_PERCENT" => $arParams["SHOW_DISCOUNT_PERCENT"],
"SHOW_DISCOUNT_PERCENT_NUMBER" => $arParams["SHOW_DISCOUNT_PERCENT_NUMBER"],
"USE_REGION" => $arParams["USE_REGION"],
"STORES" => $arParams["STORES"],
"DEFAULT_COUNT" => $arParams["DEFAULT_COUNT"],
"BASKET_URL" => $arParams["BASKET_URL"],
"OFFERS_CART_PROPERTIES" => $arParams["OFFERS_CART_PROPERTIES"],
"PRODUCT_PROPERTIES" => $arParams["PRODUCT_PROPERTIES"],
"PARTIAL_PRODUCT_PROPERTIES" => $arParams["PARTIAL_PRODUCT_PROPERTIES"],
"ADD_PROPERTIES_TO_BASKET" => $arParams["ADD_PROPERTIES_TO_BASKET"],
"SHOW_DISCOUNT_TIME_EACH_SKU" => $arParams["SHOW_DISCOUNT_TIME_EACH_SKU"],
"SHOW_ARTICLE_SKU" => $arParams["SHOW_ARTICLE_SKU"],
"OFFER_ADD_PICT_PROP" => $arParams["OFFER_ADD_PICT_PROP"],
"PRODUCT_QUANTITY_VARIABLE" => $arParams["PRODUCT_QUANTITY_VARIABLE"],
"MAIN_IBLOCK_ID" => $arParams["IBLOCK_ID"],
"IBINHERIT_TEMPLATES" => $arSeoItem ? $arIBInheritTemplates : array(),
);?>
<?// section elements?>
<div class="js_wrapper_items" data-params='<?=str_replace('\'', '"', CUtil::PhpToJSObject($arTransferParams, false))?>'>
<?@include_once('page_blocks/'.$arParams["SECTION_ELEMENTS_TYPE_VIEW"].'.php');?>
</div>
<?CNext::checkBreadcrumbsChain($arParams, $arSection);?>
<?$APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/js/jquery.history.js');?>
<?if(\Bitrix\Main\Loader::includeModule("sotbit.seometa")):?>
<?
// unset, because the sotbit:seo.meta component may have already been included
unset($APPLICATION->__view['sotbit_seometa_h1']);
unset($APPLICATION->__view['sotbit_seometa_top_desc']);
unset($APPLICATION->__view['sotbit_seometa_bottom_desc']);
unset($APPLICATION->__view['sotbit_seometa_add_desc']);
unset($APPLICATION->__view['sotbit_seometa_file']);
?>
<?$APPLICATION->IncludeComponent(
"sotbit:seo.meta",
".default",
array(
"FILTER_NAME" => $arParams["FILTER_NAME"],
"SECTION_ID" => $arSection['ID'],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
)
);?>
<?
if($arTheme['PRIORITY_SECTION_DESCRIPTION_SOURCE']['VALUE'] !== 'NOT'){
$top_desc = trim($APPLICATION->GetViewContent('top_desc'));
$bottom_desc = trim($APPLICATION->GetViewContent('bottom_desc'));
$sotbit_top_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_top_desc'));
$sotbit_bottom_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_bottom_desc'));
$sotbit_add_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_add_desc'));
if($arTheme['PRIORITY_SECTION_DESCRIPTION_SOURCE']['VALUE'] !== 'IBLOCK'){
if(strlen($top_desc) && strlen($sotbit_top_desc)){
unset($APPLICATION->__view['top_desc']);
}
if(strlen($bottom_desc) && strlen($sotbit_bottom_desc.$sotbit_add_desc)){
unset($APPLICATION->__view['bottom_desc']);
}
}
else{
if(strlen($top_desc) && strlen($sotbit_top_desc)){
unset($APPLICATION->__view['sotbit_seometa_top_desc']);
}
if(strlen($bottom_desc) && strlen($sotbit_bottom_desc.$sotbit_add_desc)){
unset($APPLICATION->__view['sotbit_seometa_bottom_desc'], $APPLICATION->__view['sotbit_seometa_add_desc']);
}
}
}
?>
<?endif;?>
$arSeoItem = $arTmpRegionsLanding = array();
if($arSeoItems)
{
$iLandingItemID = 0;
$current_url = $APPLICATION->GetCurDir();
$url = urldecode(str_replace(' ', '+', $current_url));
foreach($arSeoItems as $arItem)
{
if(!is_array($arItem['PROPERTY_LINK_REGION_VALUE']))
$arItem['PROPERTY_LINK_REGION_VALUE'] = (array)$arItem['PROPERTY_LINK_REGION_VALUE'];
if(!$arSeoItem)
{
$urldecoded = urldecode($arItem["PROPERTY_FILTER_URL_VALUE"]);
if($urldecoded == $url || $urldecoded == $current_url)
{
if($arItem['PROPERTY_LINK_REGION_VALUE'])
{
if($arRegion && in_array($arRegion['ID'], $arItem['PROPERTY_LINK_REGION_VALUE']))
$arSeoItem = $arItem;
}
else
{
$arSeoItem = $arItem;
}
if($arSeoItem)
{
$iLandingItemID = $arSeoItem['ID'];
$arSeoItem = CNextCache::CIBLockElement_GetList(array('SORT' => 'ASC', 'CACHE' => array("MULTI" => "N", "TAG" => CNextCache::GetIBlockCacheTag($catalogInfoIblockId))), array("IBLOCK_ID" => $catalogInfoIblockId, "ID" => $iLandingItemID), false, false, array("ID", "IBLOCK_ID", "NAME", "PREVIEW_TEXT", "DETAIL_PICTURE", "PROPERTY_FILTER_URL", "PROPERTY_LINK_REGION", "PROPERTY_FORM_QUESTION", "PROPERTY_SECTION_SERVICES", "PROPERTY_TIZERS", "PROPERTY_SECTION", "DETAIL_TEXT", "PROPERTY_I_ELEMENT_PAGE_TITLE", "PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_ALT", "PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_TITLE", "PROPERTY_I_SKU_PAGE_TITLE", "PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_ALT", "PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_TITLE", "ElementValues"));
$arIBInheritTemplates = array(
"ELEMENT_PAGE_TITLE" => $arSeoItem["PROPERTY_I_ELEMENT_PAGE_TITLE_VALUE"],
"ELEMENT_PREVIEW_PICTURE_FILE_ALT" => $arSeoItem["PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_ALT_VALUE"],
"ELEMENT_PREVIEW_PICTURE_FILE_TITLE" => $arSeoItem["PROPERTY_I_ELEMENT_PREVIEW_PICTURE_FILE_TITLE_VALUE"],
"SKU_PAGE_TITLE" => $arSeoItem["PROPERTY_I_SKU_PAGE_TITLE_VALUE"],
"SKU_PREVIEW_PICTURE_FILE_ALT" => $arSeoItem["PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_ALT_VALUE"],
"SKU_PREVIEW_PICTURE_FILE_TITLE" => $arSeoItem["PROPERTY_I_SKU_PREVIEW_PICTURE_FILE_TITLE_VALUE"],
);
}
}
}
if($arItem['PROPERTY_LINK_REGION_VALUE'])
{
if(!$arRegion || !in_array($arRegion['ID'], $arItem['PROPERTY_LINK_REGION_VALUE']))
$arTmpRegionsLanding[] = $arItem['ID'];
}
}
}
}
if($arRegion)
{
if($arRegion["LIST_STORES"] && $arParams["HIDE_NOT_AVAILABLE"] == "Y")
{
if($arParams['STORES']){
if(count($arParams['STORES']) > 1){
$arStoresFilter = array('LOGIC' => 'OR');
foreach($arParams['STORES'] as $storeID)
{
$arStoresFilter[] = array(">CATALOG_STORE_AMOUNT_".$storeID => 0);
}
}
else{
foreach($arParams['STORES'] as $storeID)
{
$arStoresFilter = array(">CATALOG_STORE_AMOUNT_".$storeID => 0);
}
}
$arTmpFilter = array('!TYPE' => '2');
if($arStoresFilter){
if(count($arStoresFilter) > 1){
$arTmpFilter[] = $arStoresFilter;
}
else{
$arTmpFilter = array_merge($arTmpFilter, $arStoresFilter);
}
$GLOBALS[$arParams["FILTER_NAME"]][] = array(
'LOGIC' => 'OR',
array('TYPE' => '2'),
$arTmpFilter,
);
}
}
}
$arParams["USE_REGION"] = "Y";
$GLOBALS[$arParams['FILTER_NAME']]['IBLOCK_ID'] = $arParams['IBLOCK_ID'];
CNext::makeElementFilterInRegion($GLOBALS[$arParams['FILTER_NAME']]);
}
/* hide compare link from module options */
if(CNext::GetFrontParametrValue('CATALOG_COMPARE') == 'N')
$arParams["USE_COMPARE"] = 'N';
/**/
?>
<?if(!in_array("DETAIL_PAGE_URL", (array)$arParams["LIST_OFFERS_FIELD_CODE"]))
$arParams["LIST_OFFERS_FIELD_CODE"][] = "DETAIL_PAGE_URL";?>
<?$arTransferParams = array(
"SHOW_ABSENT" => $arParams["SHOW_ABSENT"],
"HIDE_NOT_AVAILABLE_OFFERS" => $arParams["HIDE_NOT_AVAILABLE_OFFERS"],
"PRICE_CODE" => $arParams["PRICE_CODE"],
"OFFER_TREE_PROPS" => $arParams["OFFER_TREE_PROPS"],
"OFFER_SHOW_PREVIEW_PICTURE_PROPS" => $arParams["OFFER_SHOW_PREVIEW_PICTURE_PROPS"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
"CONVERT_CURRENCY" => $arParams["CONVERT_CURRENCY"],
"CURRENCY_ID" => $arParams["CURRENCY_ID"],
"OFFERS_SORT_FIELD" => $arParams["OFFERS_SORT_FIELD"],
"OFFERS_SORT_ORDER" => $arParams["OFFERS_SORT_ORDER"],
"OFFERS_SORT_FIELD2" => $arParams["OFFERS_SORT_FIELD2"],
"OFFERS_SORT_ORDER2" => $arParams["OFFERS_SORT_ORDER2"],
"LIST_OFFERS_LIMIT" => $arParams["LIST_OFFERS_LIMIT"],
"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
"LIST_OFFERS_PROPERTY_CODE" => $arParams["LIST_OFFERS_PROPERTY_CODE"],
"SHOW_DISCOUNT_TIME" => $arParams["SHOW_DISCOUNT_TIME"],
"SHOW_COUNTER_LIST" => $arParams["SHOW_COUNTER_LIST"],
"PRICE_VAT_INCLUDE" => $arParams["PRICE_VAT_INCLUDE"],
"USE_PRICE_COUNT" => $arParams["USE_PRICE_COUNT"],
"SHOW_MEASURE" => $arParams["SHOW_MEASURE"],
"SHOW_OLD_PRICE" => $arParams["SHOW_OLD_PRICE"],
"SHOW_DISCOUNT_PERCENT" => $arParams["SHOW_DISCOUNT_PERCENT"],
"SHOW_DISCOUNT_PERCENT_NUMBER" => $arParams["SHOW_DISCOUNT_PERCENT_NUMBER"],
"USE_REGION" => $arParams["USE_REGION"],
"STORES" => $arParams["STORES"],
"DEFAULT_COUNT" => $arParams["DEFAULT_COUNT"],
"BASKET_URL" => $arParams["BASKET_URL"],
"OFFERS_CART_PROPERTIES" => $arParams["OFFERS_CART_PROPERTIES"],
"PRODUCT_PROPERTIES" => $arParams["PRODUCT_PROPERTIES"],
"PARTIAL_PRODUCT_PROPERTIES" => $arParams["PARTIAL_PRODUCT_PROPERTIES"],
"ADD_PROPERTIES_TO_BASKET" => $arParams["ADD_PROPERTIES_TO_BASKET"],
"SHOW_DISCOUNT_TIME_EACH_SKU" => $arParams["SHOW_DISCOUNT_TIME_EACH_SKU"],
"SHOW_ARTICLE_SKU" => $arParams["SHOW_ARTICLE_SKU"],
"OFFER_ADD_PICT_PROP" => $arParams["OFFER_ADD_PICT_PROP"],
"PRODUCT_QUANTITY_VARIABLE" => $arParams["PRODUCT_QUANTITY_VARIABLE"],
"MAIN_IBLOCK_ID" => $arParams["IBLOCK_ID"],
"IBINHERIT_TEMPLATES" => $arSeoItem ? $arIBInheritTemplates : array(),
);?>
<?// section elements?>
<div class="js_wrapper_items" data-params='<?=str_replace('\'', '"', CUtil::PhpToJSObject($arTransferParams, false))?>'>
<?@include_once('page_blocks/'.$arParams["SECTION_ELEMENTS_TYPE_VIEW"].'.php');?>
</div>
<?CNext::checkBreadcrumbsChain($arParams, $arSection);?>
<?$APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/js/jquery.history.js');?>
<?if(\Bitrix\Main\Loader::includeModule("sotbit.seometa")):?>
<?
// unset, because the sotbit:seo.meta component may have already been included
unset($APPLICATION->__view['sotbit_seometa_h1']);
unset($APPLICATION->__view['sotbit_seometa_top_desc']);
unset($APPLICATION->__view['sotbit_seometa_bottom_desc']);
unset($APPLICATION->__view['sotbit_seometa_add_desc']);
unset($APPLICATION->__view['sotbit_seometa_file']);
?>
<?$APPLICATION->IncludeComponent(
"sotbit:seo.meta",
".default",
array(
"FILTER_NAME" => $arParams["FILTER_NAME"],
"SECTION_ID" => $arSection['ID'],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
)
);?>
<?
if($arTheme['PRIORITY_SECTION_DESCRIPTION_SOURCE']['VALUE'] !== 'NOT'){
$top_desc = trim($APPLICATION->GetViewContent('top_desc'));
$bottom_desc = trim($APPLICATION->GetViewContent('bottom_desc'));
$sotbit_top_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_top_desc'));
$sotbit_bottom_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_bottom_desc'));
$sotbit_add_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_add_desc'));
if($arTheme['PRIORITY_SECTION_DESCRIPTION_SOURCE']['VALUE'] !== 'IBLOCK'){
if(strlen($top_desc) && strlen($sotbit_top_desc)){
unset($APPLICATION->__view['top_desc']);
}
if(strlen($bottom_desc) && strlen($sotbit_bottom_desc.$sotbit_add_desc)){
unset($APPLICATION->__view['bottom_desc']);
}
}
else{
if(strlen($top_desc) && strlen($sotbit_top_desc)){
unset($APPLICATION->__view['sotbit_seometa_top_desc']);
}
if(strlen($bottom_desc) && strlen($sotbit_bottom_desc.$sotbit_add_desc)){
unset($APPLICATION->__view['sotbit_seometa_bottom_desc'], $APPLICATION->__view['sotbit_seometa_add_desc']);
}
}
}
?>
<?endif;?>
<div class="item-title" style="height: 40px;">
<a href="/catalog/tv/televizor/televizor-349/?oid=12893" class="dark_link"><span>Телевизор-349"</span></a>
</div>
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
$this->setFrameMode(true);
use Bitrix\Main\Loader,
Bitrix\Main\ModuleManager;
Loader::includeModule("iblock");
global $arTheme, $NextSectionID, $arRegion;
$arPageParams = $arSectionFilter = $arSection = $section = array();
// get current section ID
if($arResult["VARIABLES"]["SECTION_ID"] > 0){
$arSectionFilter = array('GLOBAL_ACTIVE' => 'Y', "ID" => $arResult["VARIABLES"]["SECTION_ID"], "IBLOCK_ID" => $arParams["IBLOCK_ID"]);
}
elseif(strlen(trim($arResult["VARIABLES"]["SECTION_CODE"])) > 0){
$arSectionFilter = array('GLOBAL_ACTIVE' => 'Y', "=CODE" => $arResult["VARIABLES"]["SECTION_CODE"], "IBLOCK_ID" => $arParams["IBLOCK_ID"]);
}
if($arSectionFilter){
$section = CNextCache::CIBlockSection_GetList(array('CACHE' => array("MULTI" =>"N", "TAG" => CNextCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]))), CNext::makeSectionFilterInRegion($arSectionFilter), false, array("ID", "IBLOCK_ID", "NAME", "DESCRIPTION", "UF_SECTION_DESCR", "UF_OFFERS_TYPE", 'UF_FILTER_VIEW', $arParams["SECTION_DISPLAY_PROPERTY"], "IBLOCK_SECTION_ID", "DEPTH_LEVEL", "LEFT_MARGIN", "RIGHT_MARGIN"));
}
$typeSKU = '';
if($section){
$arSection["ID"] = $section["ID"];
$arSection["NAME"] = $section["NAME"];
$arSection["IBLOCK_SECTION_ID"] = $section["IBLOCK_SECTION_ID"];
if($section[$arParams["SECTION_DISPLAY_PROPERTY"]]){
$arDisplayRes = CUserFieldEnum::GetList(array(), array("ID" => $section[$arParams["SECTION_DISPLAY_PROPERTY"]]));
if($arDisplay = $arDisplayRes->GetNext()){
$arSection["DISPLAY"] = $arDisplay["XML_ID"];
}
}
if(strlen($section["DESCRIPTION"]))
$arSection["DESCRIPTION"] = $section["DESCRIPTION"];
if(strlen($section["UF_SECTION_DESCR"]))
$arSection["UF_SECTION_DESCR"] = $section["UF_SECTION_DESCR"];
$posSectionDescr = COption::GetOptionString("aspro.next", "SHOW_SECTION_DESCRIPTION", "BOTTOM", SITE_ID);
global $arSubSectionFilter;
$arSubSectionFilter = array(
"SECTION_ID" => $arSection["ID"],
"IBLOCK_ID" => $arParams['IBLOCK_ID'],
"ACTIVE" => "Y",
"GLOBAL_ACTIVE" => "Y",
);
$iSectionsCount = CNextCache::CIBlockSection_GetCount(array('CACHE' => array("TAG" => CNextCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]))), CNext::makeSectionFilterInRegion($arSubSectionFilter));
$catalog_available = $arParams['HIDE_NOT_AVAILABLE'];
if (!isset($arParams['HIDE_NOT_AVAILABLE']))
$catalog_available = 'N';
if ($arParams['HIDE_NOT_AVAILABLE'] != 'Y' && $arParams['HIDE_NOT_AVAILABLE'] != 'L')
$catalog_available = 'N';
if($arParams['HIDE_NOT_AVAILABLE'] == 'Y')
$catalog_available = 'Y';
$arElementFilter = array("SECTION_ID" => $arSection["ID"], "ACTIVE" => "Y", "INCLUDE_SUBSECTIONS" => $arParams["INCLUDE_SUBSECTIONS"], "IBLOCK_ID" => $arParams["IBLOCK_ID"]);
if($arParams["INCLUDE_SUBSECTIONS"] == "A")
{
$arElementFilter["INCLUDE_SUBSECTIONS"] = "Y";
$arElementFilter["SECTION_GLOBAL_ACTIVE"] = "Y";
$arElementFilter["SECTION_ACTIVE "] = "Y";
}
if($arParams['HIDE_NOT_AVAILABLE'] == 'Y')
$arElementFilter["CATALOG_AVAILABLE"] = $catalog_available;
$itemsCnt = CNextCache::CIBlockElement_GetList(array("CACHE" => array("TAG" => CNextCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]))), CNext::makeElementFilterInRegion($arElementFilter), array());
// set offer type & smartfilter view
$typeTmpSKU = $viewTmpFilter = 0;
if($section['UF_OFFERS_TYPE']){
$typeTmpSKU = $section['UF_OFFERS_TYPE'];
}
if($section['UF_FILTER_VIEW']){
$viewTmpFilter = $section['UF_FILTER_VIEW'];
}
if(!$typeTmpSKU || !$viewTmpFilter){
if($section['DEPTH_LEVEL'] > 1){
$sectionParent = CNextCache::CIBlockSection_GetList(array('CACHE' => array("MULTI" =>"N", "TAG" => CNextCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]))), array('GLOBAL_ACTIVE' => 'Y', "ID" => $section["IBLOCK_SECTION_ID"], "IBLOCK_ID" => $arParams["IBLOCK_ID"]), false, array("ID", "IBLOCK_ID", "NAME", "UF_OFFERS_TYPE", 'UF_FILTER_VIEW'));
if($sectionParent['UF_OFFERS_TYPE'] && !$typeTmpSKU){
$typeTmpSKU = $sectionParent['UF_OFFERS_TYPE'];
}
if($sectionParent['UF_FILTER_VIEW'] && !$viewTmpFilter){
$viewTmpFilter = $sectionParent['UF_FILTER_VIEW'];
}
if($section['DEPTH_LEVEL'] > 2){
if(!$typeTmpSKU || !$viewTmpFilter){
$sectionRoot = CNextCache::CIBlockSection_GetList(array('CACHE' => array("MULTI" =>"N", "TAG" => CNextCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]))), array('GLOBAL_ACTIVE' => 'Y', "<=LEFT_BORDER" => $section["LEFT_MARGIN"], ">=RIGHT_BORDER" => $section["RIGHT_MARGIN"], "DEPTH_LEVEL" => 1, "IBLOCK_ID" => $arParams["IBLOCK_ID"]), false, array("ID", "IBLOCK_ID", "NAME", "UF_OFFERS_TYPE", 'UF_FILTER_VIEW'));
if($sectionRoot['UF_OFFERS_TYPE'] && !$typeTmpSKU){
$typeTmpSKU = $sectionRoot['UF_OFFERS_TYPE'];
}
if($sectionRoot['UF_FILTER_VIEW'] && !$viewTmpFilter){
$viewTmpFilter = $sectionRoot['UF_FILTER_VIEW'];
}
}
}
}
}
if($typeTmpSKU){
$rsTypes = CUserFieldEnum::GetList(array(), array("ID" => $typeTmpSKU));
if($arType = $rsTypes->Fetch()){
$typeSKU = $arType['XML_ID'];
$arTheme['TYPE_SKU']['VALUE'] = $typeSKU;
}
}
if($viewTmpFilter){
$rsViews = CUserFieldEnum::GetList(array(), array('ID' => $viewTmpFilter));
if($arView = $rsViews->Fetch()){
$viewFilter = $arView['XML_ID'];
$arTheme['FILTER_VIEW']['VALUE'] = strtoupper($viewFilter);
}
}
}
else{
\Bitrix\Iblock\Component\Tools::process404(
""
,($arParams["SET_STATUS_404"] === "Y")
,($arParams["SET_STATUS_404"] === "Y")
,($arParams["SHOW_404"] === "Y")
,$arParams["FILE_404"]
);
}
if($arRegion)
{
if($arRegion['LIST_PRICES'])
{
if(reset($arRegion['LIST_PRICES']) != 'component')
$arParams['PRICE_CODE'] = array_keys($arRegion['LIST_PRICES']);
}
if($arRegion['LIST_STORES'])
{
if(reset($arRegion['LIST_STORES']) != 'component')
$arParams['STORES'] = $arRegion['LIST_STORES'];
}
}
if($arParams['LIST_PRICES'])
{
foreach($arParams['LIST_PRICES'] as $key => $price)
{
if(!$price)
unset($arParams['LIST_PRICES'][$key]);
}
}
if($arParams['STORES'])
{
foreach($arParams['STORES'] as $key => $store)
{
if(!$store)
unset($arParams['STORES'][$key]);
}
}
$NextSectionID = $arSection["ID"];?>
<?
//seo
$catalogInfoIblockId = CNextCache::$arIBlocks[SITE_ID]["aspro_next_catalog"]["aspro_next_catalog_info"][0];
if($catalogInfoIblockId){
$arSeoItems = CNextCache::CIBLockElement_GetList(array('SORT' => 'ASC', 'CACHE' => array("MULTI" => "Y", "TAG" => CNextCache::GetIBlockCacheTag($catalogInfoIblockId))), array("IBLOCK_ID" => $catalogInfoIblockId, "ACTIVE" => "Y"), false, false, array("ID", "IBLOCK_ID", "PROPERTY_FILTER_URL", "PROPERTY_LINK_REGION"));