From bfb102db18c3309de5ef24bb22d6224210567432 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 7 May 2012 17:05:15 +0200 Subject: [PATCH] Fix: add MAIN_HIDE_LEFT_MENU --- htdocs/main.inc.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 1d76e6782c1..e1705991b30 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -777,13 +777,15 @@ if (! function_exists("llxHeader")) * @param string $morequerystring Query string to add to the link "print" to get same parameters (use only if autodetect fails) * @return void */ - function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='') - { - top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers - top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring); - left_menu('', $help_url, '', '', 1, $title); - main_area($title); - } + function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='') + { + top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers + top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring); + if (empty($conf->global->MAIN_HIDE_LEFT_MENU)) { + left_menu('', $help_url, '', '', 1, $title); + } + main_area($title); + } } @@ -1172,11 +1174,10 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a /* * Top menu - */ + */ $top_menu=empty($conf->browser->phone)?$conf->top_menu:$conf->smart_menu; if (GETPOST('menu')) $top_menu=GETPOST('menu'); // menu=eldy_backoffice.php - // Load the top menu manager // Load the top menu manager (only if not already done) if (! class_exists('MenuTop')) {