<?if (!empty($arResult)):?>
<?if ($APPLICATION->GetCurPage(false) === '/'):?>
<div class="topmenu main"><ul>
<?foreach($arResult as $arItem):?>
<?if($arItem["SELECTED"]):?>
<li class="selected"><b class="r1"></b><b class="r0"></b><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a><b class="r0"></b><b class="r1"></b></li>
<?else:?>
<li><b class="r1"></b><b class="r0"></b><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a><b class="r0"></b><b class="r1"></b></li>
<?endif?>
<?endforeach?>
</ul>
</div>
<?else:?>
<div class="topmenu"><ul>
<?foreach($arResult as $arItem):?>
<?if($arItem["SELECTED"]):?>
<li class="selected"><b class="r1"></b><b class="r0"></b><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a><b class="r0"></b><b class="r1"></b></li>
<?elseif ($arItem['PARAMS']['noindex'] === true):?>
<li><b class="r1"></b><b class="r0"></b><noindex><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a></noindex><b class="r0"></b><b class="r1"></b></li>
<?else:?>
<li><b class="r1"></b><b class="r0"></b><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a><b class="r0"></b><b class="r1"></b></li>
<?endif?>
<?endforeach?>
</ul>
</div>
<?endif?>
$args = [
'theme_location' => 'menu-1',
'menu_class' => 'nav navbar-nav page-scroll',
'container_class' => 'collapse navbar-collapse navbar-right',
'container_id' => 'bs-example-navbar-collapse-1',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
];
wp_nav_menu($args);
?>
$args = [
'theme_location' => 'menu-1',
'menu_class' => 'nav navbar-nav',
'container_class' => 'collapse navbar-collapse navbar-right page-scroll',
'container_id' => 'bs-example-navbar-collapse-1',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
];
wp_nav_menu($args);
?>