"Y"); $APPLICATION->IncludeComponent( "bitrix:news.list", "mob_slider_main", array( "ACTIVE_DATE_FORMAT" => "d.m.Y", "ADD_SECTIONS_CHAIN" => "N", "AJAX_MODE" => "N", "AJAX_OPTION_ADDITIONAL" => "", "AJAX_OPTION_HISTORY" => "N", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "CACHE_TIME" => "36000000", "CACHE_TYPE" => "A", "CHECK_DATES" => "Y", "COMPONENT_TEMPLATE" => "mob_slider_main", "DETAIL_URL" => "", "DISPLAY_BOTTOM_PAGER" => "N", "DISPLAY_DATE" => "N", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "N", "DISPLAY_TOP_PAGER" => "N", "FIELD_CODE" => array( 0 => "", 1 => "", ), "FILTER_NAME" => "arNewItems", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "IBLOCK_ID" => $slider, "IBLOCK_TYPE" => "sliders", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "INCLUDE_SUBSECTIONS" => "Y", "MESSAGE_404" => "", "NEWS_COUNT" => "30", "PAGER_BASE_LINK_ENABLE" => "N", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "PAGER_SHOW_ALWAYS" => "N", "PAGER_TEMPLATE" => ".default", "PAGER_TITLE" => "Новости", "PARENT_SECTION" => "", "PARENT_SECTION_CODE" => "", "PREVIEW_TRUNCATE_LEN" => "", "PROPERTY_CODE" => array( 0 => "OUT_IN_THE_MOBILE_VERSION", 1 => "", 2 => "", 3 => "", ), "SET_BROWSER_TITLE" => "N", "SET_LAST_MODIFIED" => "N", "SET_META_DESCRIPTION" => "N", "SET_META_KEYWORDS" => "N", "SET_STATUS_404" => "N", "SET_TITLE" => "N", "SHOW_404" => "N", "SORT_BY1" => "SORT", "SORT_BY2" => "ID", "SORT_ORDER1" => "ASC", "SORT_ORDER2" => "DESC", "STRICT_SECTION_CHECK" => "N" ), false ); $_SESSION['LANG'] == 'EN' ? $sectionIds = "35" : $sectionIds = "33"; $APPLICATION->IncludeComponent( "bitrix:news", "main_sections", array( "ADD_ELEMENT_CHAIN" => "N", "ADD_SECTIONS_CHAIN" => "N", "AJAX_MODE" => "N", "AJAX_OPTION_ADDITIONAL" => "", "AJAX_OPTION_HISTORY" => "N", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "BROWSER_TITLE" => "-", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "CACHE_TIME" => "36000000", "CACHE_TYPE" => "A", "CHECK_DATES" => "Y", "DETAIL_ACTIVE_DATE_FORMAT" => "d.m.Y", "DETAIL_DISPLAY_BOTTOM_PAGER" => "N", "DETAIL_DISPLAY_TOP_PAGER" => "N", "DETAIL_FIELD_CODE" => array( 0 => "", 1 => "", ), "DETAIL_PAGER_SHOW_ALL" => "N", "DETAIL_PAGER_TEMPLATE" => "", "DETAIL_PAGER_TITLE" => "Страница", "DETAIL_PROPERTY_CODE" => array( 0 => "", 1 => "", ), "DETAIL_SET_CANONICAL_URL" => "N", "DISPLAY_BOTTOM_PAGER" => "N", "DISPLAY_DATE" => "Y", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "Y", "DISPLAY_TOP_PAGER" => "N", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "IBLOCK_ID" => $sectionIds, "IBLOCK_TYPE" => "content", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "LIST_ACTIVE_DATE_FORMAT" => "d.m.Y", "LIST_FIELD_CODE" => array( 0 => "", 1 => "", ), "LIST_PROPERTY_CODE" => array( 0 => "SECTION_LINK", 1 => "", ), "MESSAGE_404" => "", "META_DESCRIPTION" => "-", "META_KEYWORDS" => "-", "NEWS_COUNT" => "20", "PAGER_BASE_LINK_ENABLE" => "N", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "PAGER_SHOW_ALWAYS" => "N", "PAGER_TEMPLATE" => ".default", "PAGER_TITLE" => "Новости", "PREVIEW_TRUNCATE_LEN" => "", "SEF_MODE" => "N", "SET_LAST_MODIFIED" => "N", "SET_STATUS_404" => "N", "SET_TITLE" => "N", "SHOW_404" => "N", "SORT_BY1" => "ID", "SORT_BY2" => "", "SORT_ORDER1" => "DESC", "SORT_ORDER2" => "", "STRICT_SECTION_CHECK" => "N", "USE_CATEGORIES" => "N", "USE_FILTER" => "N", "USE_PERMISSIONS" => "N", "USE_RATING" => "N", "USE_REVIEW" => "N", "USE_RSS" => "N", "USE_SEARCH" => "N", "USE_SHARE" => "N", "COMPONENT_TEMPLATE" => "main_sections", "SEF_FOLDER" => "/", "VARIABLE_ALIASES" => array( "SECTION_ID" => "SECTION_CODE", "ELEMENT_ID" => "ELEMENT_CODE", ) ), false ); }else{//полная версия сайта $_SESSION['LANG'] == 'EN' ? $slider = 18 : $slider = 14; //$slider = 14; GLOBAL $arDescItems; $arDescItems = Array("PROPERTY_OUT_IN_THE_DESC_VERSION_VALUE"=>"Y"); $APPLICATION->IncludeComponent( "bitrix:news.list", "slider_main", array( "ACTIVE_DATE_FORMAT" => "d.m.Y", "ADD_SECTIONS_CHAIN" => "N", "AJAX_MODE" => "N", "AJAX_OPTION_ADDITIONAL" => "", "AJAX_OPTION_HISTORY" => "N", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "CACHE_TIME" => "36000000", "CACHE_TYPE" => "A", "CHECK_DATES" => "Y", "COMPONENT_TEMPLATE" => "slider_main", "DETAIL_URL" => "", "DISPLAY_BOTTOM_PAGER" => "N", "DISPLAY_DATE" => "N", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "N", "DISPLAY_TOP_PAGER" => "N", "FIELD_CODE" => array( 0 => "", 1 => "", ), "FILTER_NAME" => "arDescItems", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "IBLOCK_ID" => $slider, "IBLOCK_TYPE" => "sliders", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "INCLUDE_SUBSECTIONS" => "Y", "MESSAGE_404" => "", "NEWS_COUNT" => "30", "PAGER_BASE_LINK_ENABLE" => "N", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "PAGER_SHOW_ALWAYS" => "N", "PAGER_TEMPLATE" => ".default", "PAGER_TITLE" => "Новости", "PARENT_SECTION" => "", "PARENT_SECTION_CODE" => "", "PREVIEW_TRUNCATE_LEN" => "", "PROPERTY_CODE" => array( 0 => "", 1 => "VIDEO_FILE", 2 => "", ), "SET_BROWSER_TITLE" => "N", "SET_LAST_MODIFIED" => "N", "SET_META_DESCRIPTION" => "N", "SET_META_KEYWORDS" => "N", "SET_STATUS_404" => "N", "SET_TITLE" => "N", "SHOW_404" => "N", "SORT_BY1" => "SORT", "SORT_BY2" => "ID", "SORT_ORDER1" => "ASC", "SORT_ORDER2" => "DESC", "STRICT_SECTION_CHECK" => "N" ), false );?>