Fix param dol_invisible_topmenu
This commit is contained in:
parent
198deb92f6
commit
3b4fca6756
@ -1059,7 +1059,7 @@ if (! function_exists("llxHeader"))
|
||||
print '<body id="mainbody"'.($morecssonbody?' class="'.$morecssonbody.'"':'').'>' . "\n";
|
||||
|
||||
// top menu and left menu area
|
||||
if (empty($conf->dol_hide_topmenu))
|
||||
if (empty($conf->dol_hide_topmenu) || GETPOST('dol_invisible_topmenu','int'))
|
||||
{
|
||||
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring, $help_url);
|
||||
}
|
||||
@ -1467,11 +1467,11 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
||||
/*
|
||||
* Top menu
|
||||
*/
|
||||
if (empty($conf->dol_hide_topmenu) && (! defined('NOREQUIREMENU') || ! constant('NOREQUIREMENU')))
|
||||
if ((empty($conf->dol_hide_topmenu) || GETPOST('dol_invisible_topmenu','int')) && (! defined('NOREQUIREMENU') || ! constant('NOREQUIREMENU')))
|
||||
{
|
||||
print "\n".'<!-- Start top horizontal -->'."\n";
|
||||
|
||||
print '<div class="side-nav-vert"><div id="id-top">';
|
||||
print '<div class="side-nav-vert'.(GETPOST('dol_invisible_topmenu','int')?' hidden':'').'"><div id="id-top">';
|
||||
|
||||
// Show menu entries
|
||||
print '<div id="tmenu_tooltip'.(empty($conf->global->MAIN_MENU_INVERT)?'':'invert').'" class="tmenu">'."\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user