Added admin/site setting that toggles context help panel. If disabled, original help menu button behavior is restored.

This commit is contained in:
Andrew Manning
2016-04-21 06:41:55 -04:00
parent b96eb1c823
commit 82de68c3d3
4 changed files with 57 additions and 48 deletions

View File

@@ -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(