template.php
463 Bytes
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?>
<? if (!empty($arResult)): ?>
<nav class="header-menu">
<ul class="header-menu__list">
<? foreach ($arResult as $arItem): ?>
<li class="header-menu__item"><a class="header-menu__link link-hover<? if($arItem["SELECTED"]): ?> active<? endif; ?>" title=""
href="<?= $arItem["LINK"] ?>"><?= $arItem["TEXT"] ?></a></li>
<? endforeach ?>
</ul>
</nav>
<? endif ?>