diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-21 11:37:12 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-21 11:37:12 +0400 |
commit | e582ecb93d93047b4915489c5d57828c98261f58 (patch) | |
tree | 9c47e9a4659e4995dba1b0103d99514d4db18789 /plugins/Goals/Menu.php | |
parent | 8acc9483aeacb9b0e180fe30a2f6f78b8909de41 (diff) |
refs #5977 display a tooltip in goals menu dropdown "$goalname (id = $id)
Diffstat (limited to 'plugins/Goals/Menu.php')
-rw-r--r-- | plugins/Goals/Menu.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Goals/Menu.php b/plugins/Goals/Menu.php index efc0d024d9..62608d8729 100644 --- a/plugins/Goals/Menu.php +++ b/plugins/Goals/Menu.php @@ -60,11 +60,12 @@ class Menu extends \Piwik\Plugin\Menu foreach ($goals as $goal) { $subMenuName = str_replace('%', '%%', Translate::clean($goal['name'])); $params = array('module' => 'Goals', 'action' => 'goalReport', 'idGoal' => $goal['idgoal']); + $tooltip = sprintf('%s (id = %d)', $subMenuName, $goal['idgoal']); if (count($goals) <= 3) { - $menu->add($mainGoalMenu, $subMenuName, $params); + $menu->add($mainGoalMenu, $subMenuName, $params, true, 50, $tooltip); } else { - $group->add($subMenuName, $params, false); + $group->add($subMenuName, $params, $tooltip); } } |