@@ 153-158 (lines=6) @@ | ||
150 | ||
151 | foreach ( $children_elements[ $id ] as $child ){ |
|
152 | ||
153 | if ( !isset($newlevel) ) { |
|
154 | $newlevel = true; |
|
155 | //start the child delimiter |
|
156 | $cb_args = array_merge( array(&$output, $depth), $args); |
|
157 | call_user_func_array(array($this, 'start_lvl'), $cb_args); |
|
158 | } |
|
159 | $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output ); |
|
160 | } |
|
161 | unset( $children_elements[ $id ] ); |
|
@@ 164-168 (lines=5) @@ | ||
161 | unset( $children_elements[ $id ] ); |
|
162 | } |
|
163 | ||
164 | if ( isset($newlevel) && $newlevel ){ |
|
165 | //end the child delimiter |
|
166 | $cb_args = array_merge( array(&$output, $depth), $args); |
|
167 | call_user_func_array(array($this, 'end_lvl'), $cb_args); |
|
168 | } |
|
169 | ||
170 | //end this element |
|
171 | $cb_args = array_merge( array(&$output, $element, $depth), $args); |