diff options
-rw-r--r-- | plugins/ExampleUI/Menu.php | 2 | ||||
-rw-r--r-- | plugins/Morpheus/Menu.php | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/plugins/ExampleUI/Menu.php b/plugins/ExampleUI/Menu.php index 66a0b7041a..e25bd10817 100644 --- a/plugins/ExampleUI/Menu.php +++ b/plugins/ExampleUI/Menu.php @@ -34,7 +34,7 @@ class Menu extends \Piwik\Plugin\Menu public function configureUserMenu(MenuUser $menu) { - $menu->addPlatformItem('UI Notifications', $this->urlForAction('notifications'), $order = 3); + $menu->addPlatformItem('UI Notifications', $this->urlForAction('notifications'), $order = 10); } private function addSubMenu(MenuReporting $menu, $subMenu, $action, $order) diff --git a/plugins/Morpheus/Menu.php b/plugins/Morpheus/Menu.php index a5acd9fdeb..740263e381 100644 --- a/plugins/Morpheus/Menu.php +++ b/plugins/Morpheus/Menu.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\Morpheus; use Piwik\Development; use Piwik\Menu\MenuAdmin; +use Piwik\Menu\MenuUser; use Piwik\Piwik; class Menu extends \Piwik\Plugin\Menu @@ -17,7 +18,13 @@ class Menu extends \Piwik\Plugin\Menu public function configureAdminMenu(MenuAdmin $menu) { if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) { - $menu->addDevelopmentItem('UI demo', $this->urlForAction('demo')); + $menu->addDevelopmentItem('UI Demo', $this->urlForAction('demo')); + } + } + public function configureUserMenu(MenuUser $menu) + { + if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) { + $menu->addPlatformItem('UI Demo', $this->urlForAction('demo'), $order = 15); } } } |