$url = $APPLICATION->GetCurDir();
$path = parse_url($url, PHP_URL_PATH);
$code = basename($path);
$arFilter = array(
"IBLOCK_ID" => "14",
"=CODE" => $code
);
$arSelect = array(
"ID"
);
$rsSections = CIBlockSection::GetList(array(), $arFilter, false, $arSelect);
if ($arSection = $rsSections->Fetch()) {
$sectionId = $arSection["ID"];
}
$currentSectionID = $sectionId;
if(isset($arResult["SECTION"]["PATH"][$currentSectionID]["DESCRIPTION"])) {
$description = $arResult["SECTION"]["PATH"][$currentSectionID]["DESCRIPTION"];
echo $description;
}
<?
$link_b = BB(description_event($result[$key]['ID']));
$address_h= 'https';
?>
<?if(strpos($link_b, $address_h) !== false):?>
<a href="<?=$link_b?>" target="_blank"><?=$result[$key]['NAME']?></a>
<?else:?>
<p><?=$result[$key]['NAME']?></p>
<?endif?>
<? $APPLICATION->IncludeComponent(
"bitrix:catalog.filter",
"",
Array(
"IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
"IBLOCK_ID" => $arParams["IBLOCK_ID"],
"FILTER_NAME" => $arParams["FILTER_NAME"],
"FIELD_CODE" => $arParams["FILTER_FIELD_CODE"],
"PROPERTY_CODE" => $arParams["FILTER_PROPERTY_CODE"],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
"PAGER_PARAMS_NAME" => $arParams["PAGER_PARAMS_NAME"],
),
$component
);
?>