diff options
author | Andrew Manning <andrew@reticu.li> | 2016-03-21 06:33:02 -0400 |
---|---|---|
committer | Andrew Manning <andrew@reticu.li> | 2016-03-21 06:33:02 -0400 |
commit | 56c86b656788aa48f88fca54c2a9dc1c86558db4 (patch) | |
tree | dc7a257d4c300ae00805673cc2de40b441f61aef /include/nav.php | |
parent | 51cd4e8519ef97f348013320e612811f9da1ad0e (diff) | |
download | volse-hubzilla-56c86b656788aa48f88fca54c2a9dc1c86558db4.tar.gz volse-hubzilla-56c86b656788aa48f88fca54c2a9dc1c86558db4.tar.bz2 volse-hubzilla-56c86b656788aa48f88fca54c2a9dc1c86558db4.zip |
Override navbar help button to open contextual help panel. Contextual help for mail written.
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/nav.php b/include/nav.php index 5f630745c..c7483deef 100644 --- a/include/nav.php +++ b/include/nav.php @@ -151,9 +151,14 @@ EOT; $help_url = z_root() . '/help?f=&cmd=' . $a->cmd; - if(! get_config('system','hide_help')) - $nav['help'] = array($help_url, t('Help'), "", t('Help and documentation'),'help_nav_btn'); - + if(! get_config('system','hide_help')) { + require_once('mod/help.php'); + $context_help = load_doc_file('doc/context/' . $a->cmd . '/help.html'); + if (! $context_help) { + $context_help = ''; + } + $nav['help'] = array($help_url, t('Help'), "", t('Help and documentation'),'help_nav_btn',$context_help); + } if(! UNO) $nav['apps'] = array('apps', t('Apps'), "", t('Applications, utilities, links, games'),'apps_nav_btn'); |