diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-04-21 06:41:55 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-04-21 06:41:55 -0400 |
commit | 82de68c3d3ff931fad4ddb48a69cf62576a5397a (patch) | |
tree | f616e6c965346f2a24bae23e06849f552d24af6e /include | |
parent | b96eb1c8230ae2f5986d6f22934c606bbca9728e (diff) | |
download | volse-hubzilla-82de68c3d3ff931fad4ddb48a69cf62576a5397a.tar.gz volse-hubzilla-82de68c3d3ff931fad4ddb48a69cf62576a5397a.tar.bz2 volse-hubzilla-82de68c3d3ff931fad4ddb48a69cf62576a5397a.zip |
Added admin/site setting that toggles context help panel. If disabled, original help menu button behavior is restored.
Diffstat (limited to 'include')
-rw-r--r-- | include/nav.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 = '<strong>red<img class="smiley" src="' . z_root() . '/images/rm-16.png" alt="r#" />matrix</strong>'; + $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( |