From 82de68c3d3ff931fad4ddb48a69cf62576a5397a Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Thu, 21 Apr 2016 06:41:55 -0400 Subject: Added admin/site setting that toggles context help panel. If disabled, original help menu button behavior is restored. --- include/nav.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/nav.php b/include/nav.php index ef5b5df45..9d8fdc30e 100644 --- a/include/nav.php +++ b/include/nav.php @@ -235,6 +235,12 @@ $powered_by = ''; // $powered_by = 'redr#matrix'; + $tpl = get_markup_template('nav_header.tpl'); + + App::$page['htmlhead'] .= replace_macros($tpl, array( + '$enable_context_help' => ((intval(get_config('system','enable_context_help')) === 1 || get_config('system','enable_context_help') === false) ? true : false) + )); + $tpl = get_markup_template('nav.tpl'); App::$page['nav'] .= replace_macros($tpl, array( -- cgit v1.2.3