Код |
---|
$CurPage = $APPLICATION->GetCurPage(); $CurTemplMenu = ".default"; if($CurPage == "/index.php") ( $CurTemplMenu = "main"; ) else { $CurTemplMenu = "all"; } $APPLICATION->IncludeComponent( "bitrix:menu", $CurTemplMenu, Array( "ROOT_MENU_TYPE" => "top", "MAX_LEVEL" => "1", "USE_EXT" => "N" ) ); |