public function getNavbar()
{
if ($this->getConf('showNavbar') === 'logged' && !$_SERVER['REMOTE_USER']) {
return false;
}
global $ID;
global $conf;
$navbar = $this->toBootstrapNav(tpl_include_page('navbar', 0, 1, $this->getConf('useACL')), 'navbar');
$navbar = str_replace('urlextern', '', $navbar);
/**
* $navbar = preg_replace('/
(.*)/',
* '$2 ', $navbar);
*/
$navbar = preg_replace('/\s*/',
'', $navbar);
/**
* $navbar = preg_replace('/ (.*)/',
* '$2 ', $navbar);
*/
$navbar = preg_replace('/\s*/',
'', $navbar);
# FIX for Purplenumbers renderer plugin
# TODO use Simple DOM HTML or improve the regex!
if ($conf['renderer_xhtml'] == 'purplenumbers') {
$navbar = preg_replace('/ (.*)/',
'$1 ', $navbar);
}
$navbar = preg_replace('/