summaryrefslogtreecommitdiff
path: root/library/WT/Menu.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-06-08 22:22:44 +0000
committerfisharebest <fisharebest@gmail.com>2011-06-08 22:22:44 +0000
commitaf6b34525f93d38749ad54f5d36733e87bf48c0e (patch)
treeb2ee529e6b99b1a926ed7d37cac6762304e7df22 /library/WT/Menu.php
parentb5b98d752523302d56d25499bf939d25de2f1d52 (diff)
downloadwebtrees-af6b34525f93d38749ad54f5d36733e87bf48c0e.tar.gz
webtrees-af6b34525f93d38749ad54f5d36733e87bf48c0e.tar.bz2
webtrees-af6b34525f93d38749ad54f5d36733e87bf48c0e.zip
We no longer have/need menu separators.
Diffstat (limited to 'library/WT/Menu.php')
-rw-r--r--library/WT/Menu.php23
1 files changed, 1 insertions, 22 deletions
diff --git a/library/WT/Menu.php b/library/WT/Menu.php
index 549e2d7b8f..4de6246dce 100644
--- a/library/WT/Menu.php
+++ b/library/WT/Menu.php
@@ -29,7 +29,6 @@ if (!defined('WT_WEBTREES')) {
}
class WT_Menu {
- var $separator = false;
var $label = ' ';
var $labelpos = 'right';
var $link = '#';
@@ -62,11 +61,6 @@ class WT_Menu {
$this->addId($id);
}
- function isSeparator()
- {
- $this->separator = true;
- }
-
function addLabel($label=' ', $pos='right')
{
if ($label) $this->label = $label;
@@ -125,18 +119,9 @@ class WT_Menu {
$this->submenus[] = $obj;
}
- function addSeparator() {
- $submenu = new WT_Menu();
- $submenu->isSeparator();
- $this->submenus[] = $submenu;
- }
-
// Get the menu as a simple list - for accessible interfaces, search engines and CSS menus
function getMenuAsList() {
$link = '';
- if ($this->separator) {
- return '<li class="separator"><span></span></li>';
- }
if ($this->link) {
if ($this->target !== null) {
$link .= ' target="'.$this->target.'"';
@@ -172,7 +157,7 @@ class WT_Menu {
// Get the menu as a dropdown form element
function getMenuAsDropdown() {
- if ($this->separator || !$this->link && !$this->submenus) {
+ if (!$this->link && !$this->submenus) {
return '';
}
if ($this->submenus) {
@@ -195,12 +180,6 @@ class WT_Menu {
$menucount++;
}
$id = $menucount.rand();
- if ($this->separator) {
- $output = "<div id=\"menu{$id}\" class=\"menu_separator center\">"
- ."<img src=\"{$WT_IMAGES['hline']}\" alt=\"\" />"
- ."</div>";
- return $output;
- }
$c = count($this->submenus);
$output = "<div id=\"menu{$id}\" class=\"{$this->class}\">\n";
if ($this->link=="#") $this->link = "javascript:;";