Override navbar help button to open contextual help panel. Contextual help for mail written.

This commit is contained in:
Andrew Manning
2016-03-21 06:33:02 -04:00
parent 51cd4e8519
commit 56c86b6567
8 changed files with 108 additions and 5 deletions

View File

@@ -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');