11 линия
<?if( !defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true ) die();?><?
$arFilter = array("IBLOCK_ID" => $arParams["IBLOCK_ID"], "ACTIVE" => "Y", "GLOBAL_ACTIVE" => "Y", "ACTIVE_DATE" => "Y", "DEPTH_LEVEL" => 1);
$arSections = CCache::CIBLockSection_GetList(array("SORT" => "ASC", "NAME" => "ASC", "CACHE" => array("TAG" => CCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]), "GROUP" => array("ID"), "MULTI" => "N")), $arFilter, false, array("ID", "NAME"));
?>
<?if(!$arSections):?>
<div class="alert alert-warning"><?=GetMessage("SECTION_EMPTY")?></div>
<?else:?>
<?foreach($arSections as $arSection):?>
<div class="row">
<div class="col-md-12">
<h3><?=$arSection["NAME"]?></h3>
<a href="<?=$arSection["SECTION_URL"]?>"><h3><?=$arSection["NAME"]?></h3></a>
<?// section elements?>
<?$arItemFilter = array("SECTION_ID" => $arSection["ID"], "SECTION_CODE" => $arSection["CODE"]);?>
<?if(strlen($arParams["FILTER_NAME"])):?>
<?$GLOBALS[$arParams["FILTER_NAME"]] = array_merge((array)$GLOBALS[$arParams["FILTER_NAME"]], $arItemFilter);?>
<?else:?>
<?$arParams["FILTER_NAME"] = "arrFilter";?>
<?$GLOBALS[$arParams["FILTER_NAME"]] = $arItemFilter;?>
<?endif;?>