diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 91b1c8c60..16d374fe6 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -380,13 +380,18 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
}
echo "
\n";
- // echo " - params['rootfolderid']."\">".getMLText("content")."
\n";
- // echo " - params['rootfolderid']."\">".getMLText("search")."
\n";
- if ($this->params['enablecalendar']) echo " - params['calendardefaultview']."\">".getMLText("calendar")."
\n";
- if ($this->params['user']->isAdmin()) echo " - ".getMLText("admin_tools")."
\n";
+ $menuitems = array();
+ if ($this->params['enablecalendar']) $menuitems['calendar'] = array('link'=>'../out/out.Calendar.php?mode='.$this->params['calendardefaultview'], 'label'=>"calendar");
+ if ($this->params['user']->isAdmin()) $menuitems['admintools'] = array('link'=>'../out/out.AdminTools.php', 'label'=>"admin_tools");
if($this->params['enablehelp']) {
- $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
- echo " - ".getMLText("help")."
\n";
+ $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
+ $menuitems['help'] = array('link'=>'../out/out.Help.php?context='.$tmp[1], 'label'=>"help");
+ }
+ /* Check if hook exists because otherwise callHook() will override $menuitems */
+ if($this->hasHook('globalNavigationBar'))
+ $menuitems = $this->callHook('globalNavigationBar', $menuitems);
+ foreach($menuitems as $menuitem) {
+ echo "- ".getMLText($menuitem['label'])."
";
}
echo "
\n";
echo "