for ($i = $this->_static ? 1 : 0; $i < $this->_nodes[$node_id]['indent']; $i++) {
$line .= '<img src="';
if ($this->_dropline[$i] && $this->getOption('lines', false, true)) {
- $line .= $this->_images['line'] . '" '
- . 'alt="| "';
+ $line .= $this->_images['line'] . '"';
} else {
- $line .= $this->_images['blank'] . '" '
- . 'alt=" "';
+ $line .= $this->_images['blank'] . '"';
}
$line .= ' />';
}
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) {
/* 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;
}
/* 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;
}
}
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) ? '</a>' : '';
- $img = $link_start . '<img class="treeToggle" src="' . $img . '"'
- . (isset($alt) ? ' alt="' . $alt . '"' : '')
- . ' />'
+ $img = $link_start .
+ '<img class="treeToggle" src="' . $img . '"' . ' />'
. $link_end;
return $img;