diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-08-16 10:48:52 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-08-16 10:48:52 +0000 |
| commit | 20d5b15e9cee59eb305c0809ce582e95241860d2 (patch) | |
| tree | 0d1ecaafb6547c436d636996e6b70d0306b8570a /library/WT/Menu.php | |
| parent | cbe2ebed353e3f09ec7efba528298ba2d0077b79 (diff) | |
| download | webtrees-20d5b15e9cee59eb305c0809ce582e95241860d2.tar.gz webtrees-20d5b15e9cee59eb305c0809ce582e95241860d2.tar.bz2 webtrees-20d5b15e9cee59eb305c0809ce582e95241860d2.zip | |
Using tool-tips on empty menus does not cohere with other menu presentation. It is also breaks non-latin characters. Try an alternative implementation. May need additional CSS to hide bottom border when submenu is empty - or a different design, such as background color.
Diffstat (limited to 'library/WT/Menu.php')
| -rw-r--r-- | library/WT/Menu.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/library/WT/Menu.php b/library/WT/Menu.php index 1c0032d02a..b2d6f83c4c 100644 --- a/library/WT/Menu.php +++ b/library/WT/Menu.php @@ -57,7 +57,6 @@ class WT_Menu { $this->id =$id; $this->flyout =$flyout; $this->submenus=array(); - $this->title = htmlentities(strip_tags($label)); } function addLabel($label=' ', $pos='right') @@ -111,11 +110,7 @@ class WT_Menu { } $html='<a class="'.$this->iconclass.'" href="'.$this->link.'"'.$link.'>'.$this->label.'</a>'; } else { - if ($this->submenus) { - $html='<a class="'.$this->iconclass.'" href="'.$this->link.'"'.$link.'>'.$this->label.'</a>'; - } else { - $html='<a class="'.$this->iconclass.'" title="'.$this->title.'" href="'.$this->link.'"'.$link.'>'.$this->label.'</a>'; - } + $html='<a class="'.$this->iconclass.'" href="'.$this->link.'"'.$link.'>'.$this->label.'</a>'; } } else { $html=$this->label; @@ -123,7 +118,6 @@ class WT_Menu { if ($this->submenus) { $html.='<ul>'; foreach ($this->submenus as $submenu) { - $submenu->title = ''; if ($submenu) { if ($submenu->submenus) { $submenu->iconclass.=' icon_arrow'; |
