require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Title");
?>
global $arrFilter;
$arrFilter = array("PROPERTY_check_as_main"=>1);
?> $APPLICATION->IncludeComponent("bitrix:news.list", "pressa-o-nas-glavnaya_en", Array(
"ACTIVE_DATE_FORMAT" => "d.m.Y", // Date display format
"ADD_SECTIONS_CHAIN" => "N", // Add Section name to breadcrumb navigation
"AJAX_MODE" => "N", // Enable AJAX mode
"AJAX_OPTION_ADDITIONAL" => "", // Additional ID
"AJAX_OPTION_HISTORY" => "N", // Emulate browser navigation
"AJAX_OPTION_JUMP" => "N", // Enable scrolling to component's top
"AJAX_OPTION_STYLE" => "Y", // Enable styles loading
"CACHE_FILTER" => "N", // Cache if the filter is active
"CACHE_GROUPS" => "Y", // Respect Access Permissions
"CACHE_TIME" => "36000000", // Cache time (sec.)
"CACHE_TYPE" => "A", // Cache type
"CHECK_DATES" => "Y", // Show only currently active elements
"DETAIL_URL" => "", // Detail page URL (from information block settings by default)
"DISPLAY_BOTTOM_PAGER" => "N", // Display at the bottom of the list
"DISPLAY_DATE" => "N", // 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( // Fields
0 => "NAME",
1 => "PREVIEW_TEXT",
2 => "PREVIEW_PICTURE",
3 => "DETAIL_TEXT",
4 => "DETAIL_PICTURE",
5 => "",
),
"FILTER_NAME" => "arrFilter", // Filter
"HIDE_LINK_WHEN_NO_DETAIL" => "N", // Hide link to the details page if no detailed description provided
"IBLOCK_ID" => "4", // Information block code
"IBLOCK_TYPE" => "pressa_o_nas", // 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" => "1", // 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)
"PROPERTY_CODE" => array( // Properties
0 => "check_as_main",
1 => "link",
2 => "",
),
"SET_BROWSER_TITLE" => "N", // Set browser window title
"SET_LAST_MODIFIED" => "N", // Set page last modified date to response header
"SET_META_DESCRIPTION" => "N", // Set page description
"SET_META_KEYWORDS" => "N", // Set page keywords
"SET_STATUS_404" => "N", // Set status 404
"SET_TITLE" => "N", // Set page title
"SHOW_404" => "N", // Show page
"SORT_BY1" => "ACTIVE_FROM", // Field for the news first sorting pass
"SORT_BY2" => "SORT", // Field for the news second sorting pass
"SORT_ORDER1" => "DESC", // Direction for the news first sorting pass
"SORT_ORDER2" => "ASC", // Direction for the news second sorting pass
"STRICT_SECTION_CHECK" => "N", // Check parent section when showing list
),
false
);?>$APPLICATION->IncludeComponent("bitrix:news.list", "pressa-o-nas_en", Array(
"ACTIVE_DATE_FORMAT" => "d.m.Y", // Date display format
"ADD_SECTIONS_CHAIN" => "N", // Add Section name to breadcrumb navigation
"AJAX_MODE" => "N", // Enable AJAX mode
"AJAX_OPTION_ADDITIONAL" => "", // Additional ID
"AJAX_OPTION_HISTORY" => "N", // Emulate browser navigation
"AJAX_OPTION_JUMP" => "N", // Enable scrolling to component's top
"AJAX_OPTION_STYLE" => "Y", // Enable styles loading
"CACHE_FILTER" => "N", // Cache if the filter is active
"CACHE_GROUPS" => "Y", // Respect Access Permissions
"CACHE_TIME" => "36000000", // Cache time (sec.)
"CACHE_TYPE" => "A", // Cache type
"CHECK_DATES" => "Y", // Show only currently active elements
"DETAIL_URL" => "", // Detail page URL (from information block settings by default)
"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( // Fields
0 => "NAME",
1 => "PREVIEW_TEXT",
2 => "PREVIEW_PICTURE",
3 => "DETAIL_TEXT",
4 => "DETAIL_PICTURE",
5 => "",
),
"FILTER_NAME" => "", // Filter
"HIDE_LINK_WHEN_NO_DETAIL" => "N", // Hide link to the details page if no detailed description provided
"IBLOCK_ID" => "4", // Information block code
"IBLOCK_TYPE" => "pressa_o_nas", // 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" => "3", // 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" => "templates", // 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)
"PROPERTY_CODE" => array( // Properties
0 => "check_as_main",
1 => "link",
2 => "background_color",
3 => "",
),
"SET_BROWSER_TITLE" => "N", // Set browser window title
"SET_LAST_MODIFIED" => "N", // Set page last modified date to response header
"SET_META_DESCRIPTION" => "N", // Set page description
"SET_META_KEYWORDS" => "N", // Set page keywords
"SET_STATUS_404" => "N", // Set status 404
"SET_TITLE" => "N", // Set page title
"SHOW_404" => "N", // Show page
"SORT_BY1" => "ACTIVE_FROM", // Field for the news first sorting pass
"SORT_BY2" => "SORT", // Field for the news second sorting pass
"SORT_ORDER1" => "ASC", // Direction for the news first sorting pass
"SORT_ORDER2" => "ASC", // Direction for the news second sorting pass
"STRICT_SECTION_CHECK" => "N", // Check parent section when showing list
),
false
);?>