Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/include/blocks/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/include/blocks/detail_linked_goods.php |
<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true ) die();?> <? $arParams = $arConfig['PARAMS']; $bSlider = CAllcorp3::GetFrontParametrValue('VIEW_LINKED_GOODS') === 'catalog_slider'; $arAdditionalParams = []; if (!$bSlider) { $arAdditionalParams = [ "TYPE_SKU" => "TYPE_1", "DISPLAY_BOTTOM_PAGER" => "Y", "ITEM_HOVER_SHADOW" => true, "SKU_IBLOCK_ID" => $arParams["SKU_IBLOCK_ID"], "SKU_TREE_PROPS" => $arParams["SKU_TREE_PROPS"], "SKU_PROPERTY_CODE" => $arParams["SKU_PROPERTY_CODE"], "SKU_SORT_FIELD" => $arParams["SKU_SORT_FIELD"], "SKU_SORT_ORDER" => $arParams["SKU_SORT_ORDER"], "SKU_SORT_FIELD2" => $arParams["SKU_SORT_FIELD2"], "SKU_SORT_ORDER2" =>$arParams["SKU_SORT_ORDER2"], ]; } //set params for props from module TSolution\Functions::replacePropsParams($arAdditionalParams, ['PROPERTY_CODE' => 'PROPERTY_CODE']); ?> <?$APPLICATION->IncludeComponent( "bitrix:catalog.section", "catalog_block", array_merge( Array( "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "N", "DETAIL_URL" => "", //"FILTER_NAME" => "arrGoodsFilter", "HIT_PROP" => "HIT", "IBLOCK_TYPE" => "monolith_real_catalog", //"IBLOCK_ID" => \Bitrix\Main\Config\Option::get('aspro.allcorp3', 'CATALOG_IBLOCK_ID', '42'), "PAGE_ELEMENT_COUNT" => CAllcorp3::GetFrontParametrValue('COUNT_LINKED_GOODS') ?? "20", "PROPERTY_CODE" => $arParams['LINKED_PROPERTY_CODE'] ?? $arParams['LIST_PROPERTY_CODE'] ?? $arParams['PROPERTY_CODE'], "ELEMENT_SORT_FIELD" => "SORT", "ELEMENT_SORT_ORDER" => "ASC", "ELEMENT_SORT_FIELD2" => "ID", "ELEMENT_SORT_ORDER2" => "DESC", //"SECTION_ID" => "", //"SECTION_CODE" => "", "FIELD_CODE" => $arParams['LINKED_FIELD_CODE'] ?? $arParams['LIST_FIELD_CODE'] ?? $arParams['FIELD_CODE'], "ELEMENTS_TABLE_TYPE_VIEW" => "FROM_MODULE", "SHOW_SECTION" => "Y", "COUNT_IN_LINE" => "", "LINE_ELEMENT_COUNT" => "", "SHOW_DISCOUNT_TIME" => $arParams["SHOW_DISCOUNT_TIME"], "SHOW_OLD_PRICE" => "Y", "SHOW_PREVIEW_TEXT" => "N", "SHOW_DISCOUNT_PRICE" => "Y", "SHOW_GALLERY" => CAllcorp3::GetFrontParametrValue('SHOW_CATALOG_GALLERY_IN_LIST'), "MAX_GALLERY_ITEMS" => CAllcorp3::GetFrontParametrValue('MAX_GALLERY_ITEMS'), "ADD_PICT_PROP" => \Bitrix\Main\Config\Option::get('aspro.allcorp3', 'GALLERY_PROPERTY_CODE', 'PHOTOS'), "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "N", "PAGER_TITLE" => "", "PAGER_TEMPLATE" => "ajax", "PAGER_SHOW_ALWAYS" => "N", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "INCLUDE_SUBSECTIONS" => "Y", "SHOW_ALL_WO_SECTION" => "Y", "SECTION_COUNT_ELEMENTS" => $arParams["SECTION_COUNT_ELEMENTS"], "IS_CATALOG_PAGE" => 'Y', "META_KEYWORDS" => "", "META_DESCRIPTION" => "", "BROWSER_TITLE" => "", "ADD_SECTIONS_CHAIN" => "N", "DISPLAY_COMPARE" => CAllcorp3::GetFrontParametrValue('CATALOG_COMPARE'), "SHOW_ONE_CLICK_BUY" => CAllcorp3::GetFrontParametrValue('SHOW_ONE_CLICK_BUY'), "USE_FAST_VIEW_PAGE_DETAIL" => CAllcorp3::GetFrontParametrValue('USE_FAST_VIEW_PAGE_DETAIL'), "EXPRESSION_FOR_FAST_VIEW" => CAllcorp3::GetFrontParametrValue('EXPRESSION_FOR_FAST_VIEW'), "ORDER_VIEW" => CAllcorp3::GetFrontParametrValue('ORDER_VIEW'), "PICTURE_RATIO" => strtolower(CAllcorp3::GetFrontParametrValue('ELEMENTS_IMG_TYPE')), "DOTS_0" => "Y", "DOTS_380" => "Y", "DOTS_768" => "Y", "DOTS_1200" => "Y", "ELEMENT_IN_ROW" => $arParams['ELEMENT_IN_ROW'] ?? 4, "ITEM_768" => "3", "ITEM_1200" => $arParams['ITEM_1200'] ?? 3, "POSITION_BTNS" => "4", "AJAX_REQUEST" => $arParams['IS_AJAX'], "TEXT_CENTER" => false, "IMG_CORNER" => false, "GRID_GAP" => "0", "ROW_VIEW" => true, "SLIDER" => $bSlider, "SLIDER_BUTTONS_BORDERED" => false, "IS_COMPACT_SLIDER" => false, "BORDER" => true, "ITEM_HOVER_SHADOW" => false, "DARK_HOVER" => false, "ROUNDED" => true, "ROUNDED_IMAGE" => true, "ITEM_PADDING" => true, "ELEMENTS_ROW" => 1, "MAXWIDTH_WRAP" => false, "MOBILE_SCROLLED" => false, "ITEM_0" => "2", "ITEM_380" => "2", "NARROW" => "Y", "IS_CATALOG_PAGE" => "N", "ITEMS_OFFSET" => false, "IMAGES" => "PICTURE", "IMAGE_POSITION" => "LEFT", "SHOW_PREVIEW" => true, "SHOW_TITLE" => false, "TITLE_POSITION" => "", "TITLE" => "", "RIGHT_TITLE" => "", "RIGHT_LINK" => "", "CHECK_REQUEST_BLOCK" => $arParams['CHECK_REQUEST_BLOCK'], "SHOW_PROPS" => CAllcorp3::GetFrontParametrValue('SHOW_PROPS_BLOCK'), "TYPE_SKU" => "TYPE_2", "NAME_SIZE" => "18", "SUBTITLE" => "", "SHOW_PREVIEW_TEXT" => "N", ), $arAdditionalParams ), $component, array('HIDE_ICONS' => 'Y') );?>