From 87a21f37aaadcf4564c8254c6802ce7c345252bf Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 19 Aug 2010 16:20:41 -0600 Subject: [PATCH] Don't use alternate text for tree line images --- framework/Tree/lib/Horde/Tree/Html.php | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/framework/Tree/lib/Horde/Tree/Html.php b/framework/Tree/lib/Horde/Tree/Html.php index 1c198324d..6b41fefcf 100644 --- a/framework/Tree/lib/Horde/Tree/Html.php +++ b/framework/Tree/lib/Horde/Tree/Html.php @@ -218,11 +218,9 @@ class Horde_Tree_Html extends Horde_Tree for ($i = $this->_static ? 1 : 0; $i < $this->_nodes[$node_id]['indent']; $i++) { $line .= '_images['line'] . '"'; } else { - $line .= $this->_images['blank'] . '" ' - . 'alt="   "'; + $line .= $this->_images['blank'] . '"'; } $line .= ' />'; } @@ -313,13 +311,10 @@ class Horde_Tree_Html extends Horde_Tree return ''; } elseif (!$this->getOption('lines', false, true)) { $img = $this->_images['blank']; - $alt = '   '; } elseif ($this->_nodes[$node_id]['expanded']) { $img = $this->_images['minus_only']; - $alt = '-'; } else { $img = $this->_images['plus_only']; - $alt = '+'; } if (!$this->_static) { @@ -332,20 +327,16 @@ class Horde_Tree_Html extends Horde_Tree /* Not last node. */ if ($this->getOption('lines', false, true)) { $img = $this->_images['join']; - $alt = '|-'; } else { $img = $this->_images['blank']; - $alt = '   '; } $this->_dropline[$this->_nodes[$node_id]['indent']] = true; } else { /* Last node. */ if ($this->getOption('lines', false, true)) { $img = $this->_images['join_bottom']; - $alt = '`-'; } else { $img = $this->_images['blank']; - $alt = '   '; } $this->_dropline[$this->_nodes[$node_id]['indent']] = false; } @@ -355,32 +346,24 @@ class Horde_Tree_Html extends Horde_Tree /* Not last node. */ if (!$this->getOption('lines', false, true)) { $img = $this->_images['blank']; - $alt = '   '; } elseif ($this->_static) { $img = $this->_images['join']; - $alt = '|-'; } elseif ($this->_nodes[$node_id]['expanded']) { $img = $this->_images['minus']; - $alt = '-'; } else { $img = $this->_images['plus']; - $alt = '+'; } $this->_dropline[$this->_nodes[$node_id]['indent']] = true; } else { /* Last node. */ if (!$this->getOption('lines', false, true)) { $img = $this->_images['blank']; - $alt = '   '; } elseif ($this->_static) { $img = $this->_images['join_bottom']; - $alt = '`-'; } elseif ($this->_nodes[$node_id]['expanded']) { $img = $this->_images['minus_bottom']; - $alt = '-'; } else { $img = $this->_images['plus_bottom']; - $alt = '+'; } $this->_dropline[$this->_nodes[$node_id]['indent']] = false; } @@ -395,19 +378,16 @@ class Horde_Tree_Html extends Horde_Tree } if ($this->getOption('lines', false, true)) { $img = $this->_images['null_only']; - $alt = '  '; } else { $img = $this->_images['blank']; - $alt = '   '; } $this->_dropline[0] = false; } $link_end = ($link_start) ? '' : ''; - $img = $link_start . '' . $alt . '' + $img = $link_start . + '' . $link_end; return $img; -- 2.11.0