$propName = 'UF_NAME_' . strtoupper(LANGUAGE_ID); if (isset($arSection[$propName])) { $arSection['NAME'] = $arSection[$propName]; } $arResult['CITY'][$arSection['CODE']] = $arSection; } /** @noinspection PhpDynamicAsStaticMethodCallInspection */ $dbResult = CIBlockElement::GetList( array( 'SORT' => 'ASC', ), array( 'IBLOCK_ID' => \RBCC\Helpers\Common\IBlock::getIdByCode('IB_MEMBERS_CATEGORY') ), false, false, array( '*' ) ); while ($obItem = $dbResult->GetNextElement()) { $arItem = $obItem->GetFields(); $arItem['PROPERTIES'] = $obItem->GetProperties(); $propName = 'NAME_' . strtoupper(LANGUAGE_ID); if (isset($arItem['PROPERTIES'][$propName])) { $arItem['NAME'] = $arItem['PROPERTIES'][$propName]['VALUE'];
/** @global CMain $APPLICATION */ if(!isset($arParams['CACHE_TIME'])) { $arParams['CACHE_TIME'] = 36000000; } if(!isset($arParams['SITE_ID'])) { $arParams['SITE_ID'] = SITE_ID; } if ($this->StartResultCache(false)) { CModule::IncludeModule('iblock'); $arResult = array(); $IBLOCK_ID = \RBCC\Helpers\Common\IBlock::getIdByCode('IB_BANNERS'); /** @noinspection PhpDynamicAsStaticMethodCallInspection */ $arPanel = @CIBlockSection::GetList( array(), array( 'IBLOCK_ID' => $IBLOCK_ID, 'CODE' => $arParams['PANEL'], ), false, array( 'ID', 'IBLOCK_ID', 'NAME', 'CODE' ) )->Fetch(); if ($arPanel) {
"DISPLAY_BOTTOM_PAGER" => "Y", // Display at the bottom of the list "DISPLAY_DATE" => "Y", // Display element date "DISPLAY_NAME" => "Y", // Display element title "DISPLAY_PICTURE" => "Y", // Display element preview picture "DISPLAY_PREVIEW_TEXT" => "Y", // Display element preview text "DISPLAY_TOP_PAGER" => "N", // Display at the top of the list "FIELD_CODE" => array("PROPERTY_CATEGORY.PROPERTY_NAME_RU"), // Fields "FILTER_NAME" => \RBCC\Helpers\Common\IBlock::makeComponentFilter( 'arrFilterMembersSlider', array( 'PROPERTY_CATEGORY.CODE' => 'silver-members', '!PROPERTY_SHOW_IN_MAIN' => false ) ), // Filter "HIDE_LINK_WHEN_NO_DETAIL" => "N", // Hide link to the details page if no detailed description provided "IBLOCK_ID" => \RBCC\Helpers\Common\IBlock::getIdByCode('IB_MEMBERS'), // Information block code "IBLOCK_TYPE" => "members", // Type of information block (used for verification only) "INCLUDE_IBLOCK_INTO_CHAIN" => "N", // Include information block into navigation chain "INCLUDE_SUBSECTIONS" => "Y", // Show elements from subsections "MESSAGE_404" => "", // Show this message (a component provided message is used by default) "NEWS_COUNT" => "12", // News per page "PAGER_BASE_LINK_ENABLE" => "N", // Enable link processing "PAGER_DESC_NUMBERING" => "N", // Use reverse page navigation "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", // Cache time for pages with reverse page navigation "PAGER_SHOW_ALL" => "N", // Show the ALL link "PAGER_SHOW_ALWAYS" => "N", // Always show the pager "PAGER_TEMPLATE" => ".default", // Breadcrumb navigation template "PAGER_TITLE" => "Новости", // Category name "PARENT_SECTION" => "", // Section ID "PARENT_SECTION_CODE" => "", // Section code "PREVIEW_TRUNCATE_LEN" => "", // Maximum preview text length (for Text type only)
"DETAIL_DISPLAY_BOTTOM_PAGER" => "N", // Display at the bottom of the list "DETAIL_DISPLAY_TOP_PAGER" => "N", // Display at the top of the list "DETAIL_FIELD_CODE" => array('PREVIEW_PICTURE'), // Fields "DETAIL_PAGER_SHOW_ALL" => "N", // Show the ALL link "DETAIL_PAGER_TEMPLATE" => "", // Name of the pager template "DETAIL_PAGER_TITLE" => "Страница", // Category name "DETAIL_PROPERTY_CODE" => array('POSITION'), // Properties "DETAIL_SET_CANONICAL_URL" => "N", // Set canonical URL "DISPLAY_BOTTOM_PAGER" => "N", // Display at the bottom of the list "DISPLAY_DATE" => "Y", // Display element date "DISPLAY_NAME" => "Y", // Display element title "DISPLAY_PICTURE" => "Y", // Display element preview picture "DISPLAY_PREVIEW_TEXT" => "Y", // Display element preview text "DISPLAY_TOP_PAGER" => "N", // Display at the top of the list "HIDE_LINK_WHEN_NO_DETAIL" => "Y", // Hide link to the details page if no detailed description provided "IBLOCK_ID" => \RBCC\Helpers\Common\IBlock::getIdByCode('IB_PERSONAL'), // Information block "IBLOCK_TYPE" => "personal", // Type of information block "INCLUDE_IBLOCK_INTO_CHAIN" => "N", // Include information block into navigation chain "LIST_ACTIVE_DATE_FORMAT" => "d.m.Y", // Date display format "LIST_FIELD_CODE" => "", // Fields "LIST_PROPERTY_CODE" => array('POSITION'), // Properties "MESSAGE_404" => "", // Show this message (a component provided message is used by default) "META_DESCRIPTION" => "-", // Set page description from property "META_KEYWORDS" => "-", // Set page keywords from property "NEWS_COUNT" => "999999", // News per page "PAGER_BASE_LINK_ENABLE" => "N", // Enable link processing "PAGER_DESC_NUMBERING" => "N", // Use reverse page navigation "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", // Cache time for pages with reverse page navigation "PAGER_SHOW_ALL" => "N", // Show the ALL link "PAGER_SHOW_ALWAYS" => "N", // Always show the pager "PAGER_TEMPLATE" => ".default", // Breadcrumb navigation template