template.php 477 Bytes
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?>
<? if (!empty($arResult)): ?>
	<?
	foreach ($arResult as $arItem):
		if ($arParams["MAX_LEVEL"] == 1 && $arItem["DEPTH_LEVEL"] > 1)
			continue;
		?>
		<li class="footer-menu__item">
			<a class="text-s footer-menu__link link-hover<? if ($arItem["SELECTED"]): ?> active<? endif; ?>"
			   href="<?= $arItem["LINK"] ?>" title=""><?= $arItem["TEXT"] ?></a>
		</li>
	<? endforeach ?>
	</ul>
<? endif ?>