}
$output .= str_repeat(' ', $node['indent'] * 2);
- if (isset($node['children'])) {
- $output .= '[' .
- $this->_generateUrlTag($node_id) .
- ($node['expanded'] ? '-' : '+') .
- '</a>] ';
- }
-
$output .= empty($node['url'])
? $node['label']
: '<a href="' . strval($node['url']) . '">' . $node['label'] . '</a>';
if (isset($node['extra'][Horde_Tree::EXTRA_RIGHT])) {
$output .= implode(' ', $node['extra'][Horde_Tree::EXTRA_RIGHT]);
}
+
+ if (isset($node['children'])) {
+ $output .= ' [' .
+ $this->_generateUrlTag($node_id) .
+ ($node['expanded'] ? '-' : '+') .
+ '</a>]';
+ }
+
$output .= '</div>';
if (isset($node['children']) && $node['expanded']) {