diff options
author | git-marijus <mario@mariovavti.com> | 2016-04-21 18:44:50 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2016-04-21 18:44:50 +0200 |
commit | 391ed8655ebf25c2feb6cef59970778b99351df8 (patch) | |
tree | 5da51cacd6f3e83ec837af759ad31ce4e2828fe9 /include/nav.php | |
parent | aa0c70e198007798385736f370fc07957764acf6 (diff) | |
parent | 82de68c3d3ff931fad4ddb48a69cf62576a5397a (diff) | |
download | volse-hubzilla-391ed8655ebf25c2feb6cef59970778b99351df8.tar.gz volse-hubzilla-391ed8655ebf25c2feb6cef59970778b99351df8.tar.bz2 volse-hubzilla-391ed8655ebf25c2feb6cef59970778b99351df8.zip |
Merge pull request #351 from anaqreon/toggle-context-help
Toggle context help
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php index 027ce4a6c..9d8fdc30e 100644 --- a/include/nav.php +++ b/include/nav.php @@ -152,7 +152,8 @@ EOT; if(! get_config('system','hide_help')) { require_once('include/help.php'); $context_help = load_context_help(); - $nav['help'] = array($help_url, t('Help'), "", t('Help and documentation'),'help_nav_btn',$context_help); + $enable_context_help = get_config('system','enable_context_help') || 0; + $nav['help'] = array($help_url, t('Help'), "", t('Help and documentation'),'help_nav_btn',$context_help,$enable_context_help); } if(! UNO) @@ -234,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( @@ -248,7 +255,7 @@ $powered_by = ''; '$powered_by' => $powered_by, '$help' => t('@name, #tag, ?doc, content'), '$pleasewait' => t('Please wait...') - )); + )); call_hooks('page_header', App::$page['nav']); } |