]> git.mxchange.org Git - friendica.git/commitdiff
nav link to help & documentation
authorFriendika <info@friendika.com>
Sun, 10 Apr 2011 12:55:45 +0000 (05:55 -0700)
committerFriendika <info@friendika.com>
Sun, 10 Apr 2011 12:55:45 +0000 (05:55 -0700)
include/nav.php

index b8b65f84d00b1f24e62e120545cd173bb6aff55d..703d8da40e49d0bdedf837ab84ee231d29dfcc98 100644 (file)
@@ -61,6 +61,12 @@ function nav(&$a) {
                $a->page['nav'] .= '<a id="nav-register-link" class="nav-commlink" href="register" >' 
                        . t('Register') . "</a>\r\n";
 
+       $help_url = get_config('system','help_url');
+       if(! $help_url)
+               $help_url = 'http://github.com/friendika/friendika/wiki';
+
+       $a->page['nav'] .= '<a id="nav-help-link" class="nav-link" target="friendika-help" href="' . $help_url . '">' . t('Help') . "</a>\r\n";
+
        if(strlen($a->apps)) {
                $a->page['nav'] .= '<a id="nav-apps-link" class="nav-link" href="apps">' . t('Apps') . "</a>\r\n";
        }