<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if (empty($arResult))return;
?>
<ul class="nav nav-tabs nav-stacked">
<?
$previousLevel = 0;
foreach($arResult as $itemIdex => $arItem):?>
<?if ($arItem["IS_PARENT"]):?>
<?if ($arItem["PERMISSION"] > "D"):?>
<li class="<?if ($arItem["SELECTED"]):?>active<?endif?>"><a href="<?=$arItem["LINK"]?>"><i class="icon-chevron-down"></i> <?=$arItem["TEXT"]?></a></li>
	
<?endif;?>
<?else:?>
	<?if ($arItem["PERMISSION"] > "D"):?>
		<li class="<?if ($arItem["SELECTED"]):?>active<?endif?>"><a href="<?=$arItem["LINK"]?>"><i class="icon-chevron-right"></i> <?=$arItem["TEXT"]?></a></li>
	<?endif;?>
<?endif;?>
<?endforeach;?>
</ul>