<?php
-if(! x($a->page,'nav'))
- $a->page['nav'] = '';
+ if(!(x($a->page,'nav')))
+ $a->page['nav'] = '';
-$a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
+ $a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
-if(local_user()) {
+ $a->page['nav'] .= '<div id="site-location">' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'//') + 2 ) . '</div>';
+ if(local_user()) {
$a->page['nav'] .= '<a id="nav-logout-link" class="nav-link" href="logout">' . t('Logout') . "</a>\r\n";
-}
-else {
+ }
+ else {
$a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link" href="login">' . t('Login') . "</a>\r\n";
-}
+ }
$a->page['nav'] .= "<span id=\"nav-link-wrapper\" >\r\n";
$a->page['nav'] .= '<a id="nav-register-link" class="nav-commlink" href="register" >'
. t('Register') . "</a>\r\n";
+ $a->page['nav'] .= '<a id="nav-search-link" class="nav-link" href="search">' . t('Search') . "</a>\r\n";
$a->page['nav'] .= '<a id="nav-directory-link" class="nav-link" href="directory">' . t('Directory') . "</a>\r\n";
if(x($_SESSION,'uid')) {
$banner = get_config('system','banner');
- if($banner === false)
- $banner = 'mistpark';
+
+ 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>';