diff --git a/htdocs/admin/tools/ui/class/documentation.class.php b/htdocs/admin/tools/ui/class/documentation.class.php index 92858cc99a1..52c5291bd9f 100644 --- a/htdocs/admin/tools/ui/class/documentation.class.php +++ b/htdocs/admin/tools/ui/class/documentation.class.php @@ -259,14 +259,15 @@ class Documentation } /** - * Output header + body + * Output header + body * * @param string $title Title of page - * @param string[] $arrayofjs Array of complementary js files - * @param string[] $arrayofcss Array of complementary css files + * @param string[] $arrayofjs Array of complementary js files + * @param string[] $arrayofcss Array of complementary css files + * @param string $hidenavmenu Hide nav menu * @return void */ - public function docHeader($title = '', $arrayofjs = [], $arrayofcss = []) + public function docHeader($title = '', $arrayofjs = [], $arrayofcss = [], $hidenavmenu = '') { global $langs; $title = (!empty($title)) ? dol_escape_htmltag($title) : $langs->trans('Documentation'); @@ -275,7 +276,7 @@ class Documentation top_htmlhead('', $title, 0, 0, $arrayofjs, $arrayofcss); - print ''; + print ''; } /** diff --git a/htdocs/admin/tools/ui/components/icons.php b/htdocs/admin/tools/ui/components/icons.php index 1bfc18eb77d..4e34a43ef3f 100644 --- a/htdocs/admin/tools/ui/components/icons.php +++ b/htdocs/admin/tools/ui/components/icons.php @@ -42,7 +42,7 @@ $langs->load('uxdocumentation'); $documentation = new Documentation($db); // Output html head + body - Param is Title -$documentation->docHeader('Icons', [], ['admin/tools/ui/css/doc-icons.css']); +$documentation->docHeader('Icons', [], ['admin/tools/ui/css/doc-icons.css'], GETPOST('hidenavmenu')); // Set view for menu and breadcrumb // Menu must be set in constructor of documentation class