Для удобства отформатировал шаблон левого вертекального меню в php. Лично мне удобней использовать стиль фигурных скобок { } вместо if: else: endif;
Если кому пригодится буду рад =)
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
if (!empty($arResult))
{
?>
", ($previousLevel - $arItem["DEPTH_LEVEL"]));
if ($arItem["IS_PARENT"])
{
if ($arItem["DEPTH_LEVEL"] == 1)
{
?>
" class="root-item-selectedroot-item">=$arItem["TEXT"]?>
}
else
{
?>
- " class="parent item-selected">=$arItem["TEXT"]?>
}
}
else
{
if ($arItem["PERMISSION"] > "D")
{
if ($arItem["DEPTH_LEVEL"] == 1)
{
?>
- " class="root-item-selectedroot-item">=$arItem["TEXT"]?>
}
else
{
?>
- " class="item-selected">=$arItem["TEXT"]?>
}
}
else
{
if ($arItem["DEPTH_LEVEL"] == 1)
{
?>
- root-item-selectedroot-item" title="=GetMessage("MENU_ITEM_ACCESS_DENIED")?>">=$arItem["TEXT"]?>
}
else
{
?>
- ">=$arItem["TEXT"]?>
}
}
}
$previousLevel = $arItem["DEPTH_LEVEL"];
}
if ($previousLevel > 1)//close last item tags
echo str_repeat("
", ($previousLevel-1) );
?>
}
Хостинг - Beget