diff options
author | Friendika <info@friendika.com> | 2010-12-30 14:36:35 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-30 14:36:35 -0800 |
commit | 98dcc195117bab35363c75e14af08858b6dbba3d (patch) | |
tree | 027cd8e990cc5bc9929177c5bd5e45cc8153d9c5 | |
parent | 279469ab35596097e7942e7c2377bc50967ee953 (diff) | |
download | volse-hubzilla-98dcc195117bab35363c75e14af08858b6dbba3d.tar.gz volse-hubzilla-98dcc195117bab35363c75e14af08858b6dbba3d.tar.bz2 volse-hubzilla-98dcc195117bab35363c75e14af08858b6dbba3d.zip |
page_header hook
-rw-r--r-- | addon/README | 4 | ||||
-rw-r--r-- | include/nav.php | 4 |
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']); |