page_header hook
This commit is contained in:
parent
279469ab35
commit
98dcc19511
|
@ -114,6 +114,10 @@ Current hooks:
|
||||||
$b is (string) converted text
|
$b is (string) converted text
|
||||||
|
|
||||||
|
|
||||||
|
'page_header' - called after building the page navigation section
|
||||||
|
$b is (string) HTML of nav region
|
||||||
|
|
||||||
|
|
||||||
*** = subject to change
|
*** = subject to change
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,16 +50,16 @@
|
||||||
$a->page['nav'] .= '<a id="nav-contacts-link" class="nav-link" href="contacts">' . t('Contacts') . "</a>\r\n";
|
$a->page['nav'] .= '<a id="nav-contacts-link" class="nav-link" href="contacts">' . t('Contacts') . "</a>\r\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$a->page['nav'] .= "</span>\r\n<span id=\"nav-end\"></span>\r\n";
|
$a->page['nav'] .= "</span>\r\n<span id=\"nav-end\"></span>\r\n";
|
||||||
|
|
||||||
$banner = get_config('system','banner');
|
$banner = get_config('system','banner');
|
||||||
|
|
||||||
|
|
||||||
if($banner === false)
|
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>';
|
$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>';
|
$a->page['nav'] .= '<span id="banner">' . $banner . '</span>';
|
||||||
|
|
||||||
|
call_hooks('page_header', $a->page['nav']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user