Files
vinoteca/local/components/jinove/personal.nav/templates/.default/template.php
T

19 lines
935 B
PHP

<?php
use Bitrix\Main\Localization\Loc;
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die();
}
Loc::loadMessages(__FILE__);
?>
<nav class="vino-cab__nav" aria-label="<?= htmlspecialcharsbx(Loc::getMessage("VINO_NAV_LABEL")) ?>">
<p class="vino-cab__kicker"><?= Loc::getMessage("VINO_NAV_KICKER") ?></p>
<ul class="vino-cab__list">
<?php foreach ($arResult["ITEMS"] as $item): ?>
<li class="vino-cab__item"><a class="vino-cab__link<?= $item["ACTIVE"] ? " vino-cab__link--active" : "" ?>" href="<?= htmlspecialcharsbx($item["URL"]) ?>"<?= $item["ACTIVE"] ? ' aria-current="page"' : "" ?>><?= Loc::getMessage("VINO_NAV_" . strtoupper($item["CODE"])) ?></a></li>
<?php endforeach; ?>
<li class="vino-cab__item"><button class="vino-cab__link vino-cab__link--button" type="button" data-cab-logout><?= Loc::getMessage("VINO_NAV_LOGOUT") ?></button></li>
</ul>
</nav>