From 38827c8531f669780cc12bca668e9cf41ebf068b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 3 Feb 2026 13:43:45 +0100 Subject: [PATCH] add hook for status icons without a dropdown menu --- views/bootstrap/class.Bootstrap.php | 13 +++++++++++++ views/bootstrap4/class.Bootstrap4.php | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index e005ad4cd..f34ea5069 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -415,6 +415,19 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo " \n"; /* }}} End of user profile menu */ + /* Status icons {{{ */ + $menuitems = []; + if($this->hasHook('globalNavigationStatusBar')) + $menuitems = $this->callHook('globalNavigationStatusBar', $menuitems); + if ($menuitems) { + echo " \n"; + } + /* }}} Εnd of status icons */ + /* menu tasks {{{ */ if($this->params['enablemenutasks'] && !$this->params['user']->isGuest()) { if($accessobject->check_view_access('Tasks', array('action'=>'menuTasks'))) { diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index e443c4a6f..fc0758c04 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -431,6 +431,19 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } /* }}} End of clipboard */ + /* Status icons {{{ */ + $menuitems = []; + if($this->hasHook('globalNavigationStatusBar')) + $menuitems = $this->callHook('globalNavigationStatusBar', $menuitems); + if ($menuitems) { + echo " \n"; + } + /* }}} Εnd of status icons */ + /* user profile menu {{{ */ echo "