<a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a>
<?if ($parentDepth[$itemIdex]['depth'] > 2):?>
<ul class="menu vertical main-menu-dropdown is-dropdown-submenu sort-horizontal lazy" data-count="<?=$parentDepth[$itemIdex]['count_depth_2']?>"<?if ($picBg && !$picBgLink && !$picBgStyle):?> style="background-image: url('<?=$picBg['src']?>');"<?endif;?>>
<?if ($picBg && ($picBgLink || $picBgStyle)):?>
<li class="main-menu-preview" style="<?=$picBgStyle?>">
<a href="<?=$picBgLink?>"><img src="<?=BitlateProUtils::getLoadSrc($picBg['src'])?>" data-src="<?=$picBg['src']?>" alt="<?=$arItem["TEXT"]?>" class="lazy"></a>
</li>
<?endif;?>
<?else:?>
<ul class="menu vertical main-menu-dropdown<?if ($arItem["DEPTH_LEVEL"] == 1):?> is-dropdown-submenu<?endif;?>">
<?endif;?>
<?else:?>
<?if ($arItem["PERMISSION"] > "D"):?>
<?if ($arItem["DEPTH_LEVEL"] == 1):?>
<li class="<?=implode(" ", $classArr)?>">
<?if ($pic !== false):?>
<img src="<?=BitlateProUtils::getLoadSrc($pic['src'])?>" data-src="<?=$pic['src']?>" alt="<?=$arItem["TEXT"]?>" class="main-menu-preview lazy">
<?endif;?>
<?if ($arItem["DEPTH_LEVEL"] <= 1 && $isIconShow !== false && '' != $icon):?>
<div class="main-menu-icon">
<svg class="icon icon-menu-apparel">
<use xlink:href="/local/templates/bitlate_pro/include/symbol-defs-menu.svg#<?=$icon?>"></use>
</svg>
</div>
<?endif;?>
<a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a>
</li>
<?else:?>
<li class="<?=implode(" ", $classArr)?>">
<?if (in_array($itemIdex, $subDepth) && $arItem["DEPTH_LEVEL"] == 2):?>
<div class="main-menu-dropdown-inner">
<?if ($pic !== false):?>
<img src="<?=BitlateProUtils::getLoadSrc($pic['src'])?>" data-src="<?=$pic['src']?>" alt="<?=$arItem["TEXT"]?>" class="main-menu-preview lazy">
<?endif;?>
<?if ($picHover !== false):?>
<img src="<?=BitlateProUtils::getLoadSrc($picHover['src'])?>" data-src="<?=$picHover['src']?>" alt="<?=$arItem["TEXT"]?>" class="main-menu-preview lazy" style="<?=$arItem["PARAMS"]["UF_SECTION_STYLE"]?>">
<?endif;?>
<?endif;?>
<a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a>
<?if (in_array($itemIdex, $subDepth) && $arItem["DEPTH_LEVEL"] == 2):?>
</div>
<?endif;?>
</li>
<?endif?>
<?else:?>
<?if ($arItem["DEPTH_LEVEL"] == 1):?>
<li class="<?=implode(" ", $classArr)?>">
<?if ($pic !== false):?>
<img src="<?=BitlateProUtils::getLoadSrc($pic['src'])?>" data-src="<?=$pic['src']?>" alt="<?=$arItem["TEXT"]?>" class="main-menu-preview lazy">
<?endif;?>
<a href="" title="<?=GetMessage("MENU_ITEM_ACCESS_DENIED")?>"><?=$arItem["TEXT"]?></a>
</li>
<?else:?>
<li class="<?=implode(" ", $classArr)?>">
<?if (in_array($itemIdex, $subDepth) && $arItem["DEPTH_LEVEL"] == 2):?>
<div class="main-menu-dropdown-inner">
<?if ($pic !== false):?>
<img src="<?=BitlateProUtils::getLoadSrc($pic['src'])?>" data-src="<?=$pic['src']?>" alt="<?=$arItem["TEXT"]?>" class="main-menu-preview lazy">
<?endif;?>
<?if ($picHover !== false):?>
<img src="<?=BitlateProUtils::getLoadSrc($picHover['src'])?>" data-src="<?=$picHover['src']?>" alt="<?=$arItem["TEXT"]?>" class="main-menu-preview lazy" style="<?=$arItem["PARAMS"]["UF_SECTION_STYLE"]?>">
<?endif;?>
<?endif;?>
<a href="" class="denied" title="<?=GetMessage("MENU_ITEM_ACCESS_DENIED")?>"><?=$arItem["TEXT"]?></a>
<?if (in_array($itemIdex, $subDepth) && $arItem["DEPTH_LEVEL"] == 2):?>
</div>
<?endif;?>
</li>
<?endif?>
<?endif?>
<?endif?>
<?$previousLevel = $arItem["DEPTH_LEVEL"];?>
<?endforeach;?>
<?if ($previousLevel > 1):?>
<?if (($previousLevel-1) == 2):?>
</ul>
</div>
</li>
</ul>
</li>
<?else:?>
<?=str_repeat("</ul></li>", ($previousLevel-1));?>
<?endif?>
<?endif?>
</ul>
</div>
<?if ($headerVersion != 'v2'):?>
<!---------------- <ul class="main-menu-other menu hide">
<li class="main-menu-category">
<a href="#" data-toggle="header-main-menu-full">
<svg class="icon icon-more">
<use xlink:href="#svg-icon-menu-more"></use>
</svg>
<span class="text-more"><?=$otherTitle?></span>
</a>
<div id="header-main-menu-full" class="dropdown-pane main-menu-dropdown-full<?if ($arParams["MENU_OTHER_PIC"] == "Y"):?> show-parent-preview<?endif;?><?if ($isShowDeep == "Y"):?> show-deep-dropdown<?endif;?>" data-dropdown data-hover="true" data-hover-pane="true" data-v-offset="0">
<span class="main-menu-dropdown-arrow"><span class="inner"></span></span>
<ul class="container sort-horizontal"></ul>
</div>
</li>
</ul> ----------------->
</div>
</nav>
<?else:?>
</li>
</ul>
</nav>
<?endif;?>
<?elseif ($headerVersion == 'lite'):?>
<nav class="main-menu header-menu-fixed show-for-xlarge" id="header-main-menu">
<div class="container row">
<div class="main-menu-block">
</div>
</div>
<ul class="main-menu-other menu hide">
</ul>
</nav>
<?endif?>