添钽铙痤忭邂铄 戾睨

橡桁屦 蝾泐, 赅 祛驽 恹汶溴螯 蝈蹴梓羼觇 戾睨 (磬镳桁屦 怛铕) 箴钼礤 怆铈屙眍耱. 暑祜铐屙蜞 bitrix.menu.


<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?if (!empty($arResult)):?>
<ul>
<?
$previousLevel = 0;
foreach($arResult as $arItem):?>

	<?if ($previousLevel && $arItem["DEPTH_LEVEL"] < $previousLevel):?>
		<?=str_repeat("</ul></li>", ($previousLevel - $arItem["DEPTH_LEVEL"]));?>
	<?endif?>
	<?if ($arItem["IS_PARENT"]):?>

		<?if ($arItem["DEPTH_LEVEL"] == 1):?>
			<li class="<?= ($arItem["TEXT"] == "狸鲨") ? "actions" : null?><?if ($arItem["SELECTED"]):?> current<?endif?> "><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a>
				<ul class="drop">
		<?else:?>
			<li class="<?= ($arItem["TEXT"] == "狸鲨") ? "actions" : null?><?if ($arItem["SELECTED"]):?> current<?endif?> "><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a>
				<ul class="drop">
		<?endif?>

	<?else:?>

		<?if ($arItem["PERMISSION"] > "D"):?>

			<?if ($arItem["DEPTH_LEVEL"] == 1):?>
				<li class="<?= ($arItem["TEXT"] == "狸鲨") ? "actions" : null?><?if ($arItem["SELECTED"]):?> current<?endif?> "><a href="<?=$arItem["LINK"]?>" ><?=$arItem["TEXT"]?></a></li>
			<?else:?>
				<li class="<?= ($arItem["TEXT"] == "狸鲨") ? "actions" : null?><?if ($arItem["SELECTED"]):?> current<?endif?> "><a href="<?=$arItem["LINK"]?>"><?=$arItem["TEXT"]?></a></li>
			<?endif?>

		<?else:?>

			<?if ($arItem["DEPTH_LEVEL"] == 1):?>
				<li class="<?= ($arItem["TEXT"] == "狸鲨") ? "actions" : null?><?if ($arItem["SELECTED"]):?> current<?endif?> "><a href=""  title="<?=GetMessage("MENU_ITEM_ACCESS_DENIED")?>"><?=$arItem["TEXT"]?></a></li>
			<?else:?>
				<li class="<?= ($arItem["TEXT"] == "狸鲨") ? "actions" : null?><?if ($arItem["SELECTED"]):?> current<?endif?> "><a href=""  title="<?=GetMessage("MENU_ITEM_ACCESS_DENIED")?>"><?=$arItem["TEXT"]?></a></li>
			<?endif?>

		<?endif?>

	<?endif?>

	<?$previousLevel = $arItem["DEPTH_LEVEL"];?>

<?endforeach?>

<?if ($previousLevel > 1)://close last item tags?>
	<?=str_repeat("</ul></li>", ($previousLevel-1) );?>
<?endif?>

</ul>
<?endif?>


玎牮

悟镳噔栩 玎怅

篷腓 黩-蝾 镱 礤 蜞, 桦 蔓 麇-蝾 礤 筲屦屙. 袜镳桁屦 耢脲 耦狁蜮屙眍 骅珥. 橡铖蝾 磬骒栩 磬 腩泐蜩 襦轵 镱怛铕栩 镱稃蜿. 愉圜!