aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-11 21:43:27 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-11 21:43:27 +0100
commit0a21ffbfecf30f619bdfc8de15c88911a6d7d3db (patch)
treec1afe9ba700e03d1f7ccca00faeebb3cb58112f5
parent542e487b698435b6a39e1378a3259265b7a6f7c1 (diff)
downloadvolse-hubzilla-0a21ffbfecf30f619bdfc8de15c88911a6d7d3db.tar.gz
volse-hubzilla-0a21ffbfecf30f619bdfc8de15c88911a6d7d3db.tar.bz2
volse-hubzilla-0a21ffbfecf30f619bdfc8de15c88911a6d7d3db.zip
show doc section heading in titlebar
-rw-r--r--Zotlabs/Module/Help.php14
-rw-r--r--view/tpl/help.tpl2
2 files changed, 14 insertions, 2 deletions
diff --git a/Zotlabs/Module/Help.php b/Zotlabs/Module/Help.php
index 9d6e421e5..e247416d9 100644
--- a/Zotlabs/Module/Help.php
+++ b/Zotlabs/Module/Help.php
@@ -76,12 +76,24 @@ class Help extends \Zotlabs\Web\Controller {
killme();
}
+ $headings = [
+ 'about' => t('About'),
+ 'member' => t('Members'),
+ 'admin' => t('Administrators'),
+ 'developer' => t('Developers'),
+ 'tutorials' => t('Tutorials')
+ ];
+
+ if(array_key_exists(argv(1), $headings))
+ $heading = $headings[argv(1)];
+
$content = get_help_content();
return replace_macros(get_markup_template('help.tpl'), array(
'$title' => t('$Projectname Documentation'),
'$tocHeading' => t('Contents'),
- '$content' => $content
+ '$content' => $content,
+ '$heading' => $heading
));
}
diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl
index 4ce48bca8..1c5d05738 100644
--- a/view/tpl/help.tpl
+++ b/view/tpl/help.tpl
@@ -1,6 +1,6 @@
<div id="help-content" class="generic-content-wrapper">
<div class="section-title-wrapper">
- <h2>{{$title}}</h2>
+ <h2>{{$title}}: {{$heading}}</h2>
</div>
<div class="section-content-wrapper" id="doco-content">
<h1 class="fakelink" id="doco-top-toc-heading"><span onclick="docoTocToggle(); return false;">