I am faced with the task of making links headers with switching to a category in the drop-down menu on bitrix, but I don’t understand how the output of elements on the bitrix works
<div class="dropdown__group cf"> <? foreach ($arItem['SUB_MENU'] as $arItem2) : ?> <? if (isset($arResult['SECTIONS_IMG'][$arItem2['PARAMS']['ID_SECTION']])) { $arSectImg[$arResult['SECTIONS_IMG'][$arItem2['ID']]] = $arResult['SECTIONS_IMG'][$arItem2['PARAMS']['ID_SECTION']]; } ?> <ul class="dropdown__list"> /*здесь отображаются заголовки внутри меню*/ <li class="dropdown__item dropdown__item-title<? if (count($arItem2['SUB_MENU']) > 1) {?> nohover<?}?>"> <a <? if (count($arItem2['SUB_MENU']) < 1) {?> href = "<?= $arItem2['LINK'];?>"<?}?>><?= $arItem2['TEXT'] ?></a> </li> <? if ($arItem2['SUB_MENU']) : ?> <? foreach ($arItem2['SUB_MENU'] as $arItem3) : ?> <? if (isset($arResult['SECTIONS_IMG'][$arItem3['PARAMS']['ID_SECTION']])) { $arSectImg[$arResult['SECTIONS_IMG'][$arItem3['ID']]] = $arResult['SECTIONS_IMG'][$arItem3['PARAMS']['ID_SECTION']]; } ?> /*здесь отображаются заголовки внутри меню*/ /*Здесь отображаются категории меню*/ <li class="dropdown__item"><a href="<?= $arItem3['LINK'] ?>"><?= $arItem3['TEXT'] ?></a> </li> <? endforeach ?> <? endif ?> </ul> <? endforeach ?> </div>