ob_start();
// вызов компонента
$karusel_1 = ob_get_contents();
ob_end_clean();
array (
'CONDITION' => '#^/catalog/([0-9a-zA-Z_-]+)/question([\\?\\#].*)?$#',
'RULE' => 'ELEMENT_CODE=$1',
'ID' => '',
'PATH' => '/faq/detail.php',
'SORT' => 100,
),
"SEF_URL_TEMPLATES" => array(
"sections"=>"",
"section"=>"section/#SECTION_CODE#/",
"element"=>"kkm/#ELEMENT_CODE#/",
"compare"=>"compare/",
"smart_filter"=>"section/#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
"question" => "kkm/#ELEMENT_CODE#/question/"
)
$iblockId = $arParams["REVIEW_IBLOCK_ID"];
$properties = $elements = [];
$iterator = \Bitrix\Iblock\PropertyTable::getList([
'select' => ['CODE'],
'filter' => ['IBLOCK_ID' => $iblockId, 'ACTIVE' => 'Y'],
]);
while($row = $iterator->fetch()) {
$propertyCode = $row['CODE'];
if(strpos($propertyCode, 'UF_404_') !== false) {
$properties[] = 'PROPERTY_'.$propertyCode;
}
}
$arSelect = Array("ID", "IBLOCK_ID", "DETAIL_TEXT");
$arSelect = array_merge($arSelect, $properties);
$arFilter = Array("IBLOCK_ID" => $iblockId, "CODE" => !empty($arParams["USE_SKU"]) ? $arBaseProduct["ID"] : $arResult["ID"]);
$res = CIBlockElement::GetList(Array("SORT" => "ASC", "CREATED_DATE"), $arFilter, false, false, $arSelect);