]> git.mxchange.org Git - friendica.git/commitdiff
page_header hook
authorFriendika <info@friendika.com>
Thu, 30 Dec 2010 22:36:35 +0000 (14:36 -0800)
committerFriendika <info@friendika.com>
Thu, 30 Dec 2010 22:36:35 +0000 (14:36 -0800)
addon/README
include/nav.php

index 23e1b5c6fe2fd06a944eeb5367cf0852552c12b7..0264e6b24d2750d78b9702cc591d9baffd267206 100644 (file)
@@ -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
 
 
index af0c58710d0db981ca4fc2d870cfe3f0e681c189..74b4defc38f453b38224df164c682da4633a9342 100644 (file)
@@ -49,7 +49,6 @@
 
                $a->page['nav'] .= '<a id="nav-contacts-link" class="nav-link" href="contacts">' . t('Contacts') . "</a>\r\n";
 
-
                
        }
 
 
        $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']);