<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?if (!empty($arResult)):?>
<?$previousLevel = 0;foreach($arResult as $arItem):?>
<?if ($previousLevel && $arItem["DEPTH_LEVEL"] < $previousLevel):?>
<?=str_repeat("", ($previousLevel - $arItem["DEPTH_LEVEL"]));?>
<?endif?>
<?if ($arItem["DEPTH_LEVEL"]==1):?>
<div class="lvl1_cont"><a href="<?=$arItem["LINK"]?>" class="lvl1_href"><?=$arItem["TEXT"]?></a></div>
<?else:?>
<?if ($arItem["PERMISSION"] > "D"):?>
<div class="lvl2_cont"><a href="<?=$arItem["LINK"]?>" class="lvl2_href">- <?=$arItem["TEXT"]?></a></div>
<?endif?>
<?endif?>
<?$previousLevel = $arItem["DEPTH_LEVEL"];?>
<?endforeach?>
<?if ($previousLevel > 1)://close last item tags?>
<?=str_repeat("", ($previousLevel-1) );?>
<?endif?>
<?endif?> |