aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addon/README4
-rw-r--r--include/nav.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/addon/README b/addon/README
index 23e1b5c6f..0264e6b24 100644
--- a/addon/README
+++ b/addon/README
@@ -114,6 +114,10 @@ Current hooks:
$b is (string) converted text
+'page_header' - called after building the page navigation section
+ $b is (string) HTML of nav region
+
+
*** = subject to change
diff --git a/include/nav.php b/include/nav.php
index af0c58710..74b4defc3 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -49,7 +49,6 @@
$a->page['nav'] .= '<a id="nav-contacts-link" class="nav-link" href="contacts">' . t('Contacts') . "</a>\r\n";
-
}
@@ -57,9 +56,10 @@
$banner = get_config('system','banner');
-
if($banner === false)
$banner .= '<a href="http://friendika.com"><img id="logo-img" src="images/ff-32.jpg" alt="logo" /></a><span id="logo-text"><a href="http://friendika.com">Friendika</a></span>';
$a->page['nav'] .= '<span id="banner">' . $banner . '</span>';
+
+ call_hooks('page_header', $a->page['nav']);