diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-09-09 17:53:39 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-10-07 14:42:28 +0300 |
commit | 10d482f1d3deb4c717fbb87f523428196634a326 (patch) | |
tree | fe4ba19fe7a69afed399812fdeed70e123e79579 /plugins/CoreHome/Menu.php | |
parent | 8d2e4b1d1ae867b8a1fedcc0d937ef2ad00431b0 (diff) |
Left menu design
Diffstat (limited to 'plugins/CoreHome/Menu.php')
-rw-r--r-- | plugins/CoreHome/Menu.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/CoreHome/Menu.php b/plugins/CoreHome/Menu.php index 83e5d053d6..03c847ac97 100644 --- a/plugins/CoreHome/Menu.php +++ b/plugins/CoreHome/Menu.php @@ -27,24 +27,24 @@ class Menu extends \Piwik\Plugin\Menu } if (Plugin\Manager::getInstance()->isPluginActivated('Feedback')) { - $menu->addItem('General_Help', null, array('module' => 'Feedback', 'action' => 'index')); + $menu->addItem('icon-help', null, array('module' => 'Feedback', 'action' => 'index'), $order = 990, Piwik::translate('General_Help')); } if (Piwik::isUserIsAnonymous()) { - if (Plugin\Manager::getInstance()->isPluginActivated('Feedback')) { - $menu->addItem($login, null, array('module' => 'Feedback', 'action' => 'index'), 998); + if (Plugin\Manager::getInstance()->isPluginActivated('ScheduledReports')) { + $menu->addItem('icon-user', null, array('module' => 'ScheduledReports', 'action' => 'index'), 970, $login); } else { - $menu->addItem($login, null, array('module' => 'API', 'action' => 'listAllAPI'), 998); + $menu->addItem('icon-user', null, array('module' => 'API', 'action' => 'listAllAPI'), 970, $login); } } else { - $menu->addItem($login, null, array('module' => 'UsersManager', 'action' => 'userSettings'), 998); + $menu->addItem('icon-user', null, array('module' => 'UsersManager', 'action' => 'userSettings'), 970, $login); } $module = $this->getLoginModule(); if (Piwik::isUserIsAnonymous()) { - $menu->addItem('Login_LogIn', null, array('module' => $module, 'action' => false), 999); + $menu->addItem('icon-sign-in', null, array('module' => $module, 'action' => false), 1000, Piwik::translate('Login_LogIn')); } else { - $menu->addItem('General_Logout', null, array('module' => $module, 'action' => 'logout', 'idSite' => null), 999); + $menu->addItem('icon-sign-out', null, array('module' => $module, 'action' => 'logout', 'idSite' => null), 1000, Piwik::translate('General_Logout')); } } |