get('show_vmmenu', 1); $vmMenu=""; $user = JFactory::getUser(); $lang = JFactory::getLanguage(); if ($show_vmmenu) { $hideMainmenu=false; } // Get the authorised components and sub-menus. $vmComponentItems = ModVMMenuHelper::getVMComponent(true); // Check if there are any components, otherwise, don't render the menu if ($vmComponentItems) { $class = ''; if ($hideMainmenu) { $class = "disabled"; } $vmMenu=''; } echo $vmMenu;