Current Path : /var/www/html/clients/amz.e-nk.ru/bitrix/templates/ |
Current File : /var/www/html/clients/amz.e-nk.ru/bitrix/templates/left.menu_template.php |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?><? // This file is the template for one menu item iteration // if $SELECTED then this item is current (active) item if ($SELECTED) $strtext = "leftmenu_active_todo"; else $strtext = "leftmenu_todo"; //if $PARAMS["SEPARATOR"]=="Y" this item should be shown with different style applied if ($PARAMS["SEPARATOR"]=="Y") { $strtext = "separator"; } else $strtext = ""; // Content of variable $sMenuProlog is typed just before all menu items iterations // Content of variable $sMenuEpilog is typed just after all menu items iterations $sMenuProlog = "<div id='button'><ul class='menu'>"; $sMenuEpilog = '</ul></div>'; // if $PERMISSION > "D" then current user can access this page if ($PERMISSION > "D") { if($strtext == "separator") { if($SELECTED) $sMenuBody = '<li class="menu"><a class="'.$strtext.'" href="'.$LINK.'">'.$TEXT.'</a></li>'; else $sMenuBody = '<li class="menu"><a class="'.$strtext.'" href="'.$LINK.'">'.$TEXT.'</a></li>'; } else if($SELECTED) $sMenuBody = '<li class="menu"><a class="'.$strtext.'" href="'.$LINK.'" style="background-color:#569DF8">'.$TEXT.'</a></li>'; else $sMenuBody = '<li class="menu"><a href="'.$LINK.'" class="'.$strtext.'">'.$TEXT.'</a></li>'; } ?>