More include/nav.php
formatting
- Add Doxygen comment block for `nav_info()` - Remove superfluous by-reference symbol and added type hinting to `nav_info()` declaration - More formatting
This commit is contained in:
parent
4b0e76f3b7
commit
437ae412fa
1 changed files with 9 additions and 4 deletions
|
@ -43,8 +43,13 @@ function nav(&$a) {
|
|||
call_hooks('page_header', $a->page['nav']);
|
||||
}
|
||||
|
||||
|
||||
function nav_info(&$a)
|
||||
/**
|
||||
* @brief Prepares a list of navigation links
|
||||
*
|
||||
* @param App $a
|
||||
* @return array
|
||||
*/
|
||||
function nav_info(App $a)
|
||||
{
|
||||
$ssl_state = ((local_user()) ? true : false);
|
||||
|
||||
|
@ -192,7 +197,7 @@ function nav_info(&$a)
|
|||
// Provide a banner/logo/whatever
|
||||
$banner = get_config('system', 'banner');
|
||||
if ($banner === false) {
|
||||
$banner .= '<a href="http://friendica.com"><img id="logo-img" src="images/friendica-32.png" alt="logo" /></a><span id="logo-text"><a href="http://friendica.com">Friendica</a></span>';
|
||||
$banner = '<a href="http://friendica.com"><img id="logo-img" src="images/friendica-32.png" alt="logo" /></a><span id="logo-text"><a href="http://friendica.com">Friendica</a></span>';
|
||||
}
|
||||
|
||||
call_hooks('nav_info', $nav);
|
||||
|
|
Loading…
Reference in a new issue