@@ 250-255 (lines=6) @@ | ||
247 | * If we are displaying all levels, and remaining children_elements is not empty, |
|
248 | * then we got orphans, which should be displayed regardless. |
|
249 | */ |
|
250 | if ( ( $max_depth == 0 ) && count( $children_elements ) > 0 ) { |
|
251 | $empty_array = array(); |
|
252 | foreach ( $children_elements as $orphans ) |
|
253 | foreach ( $orphans as $op ) |
|
254 | $this->display_element( $op, $empty_array, 1, 0, $args, $output ); |
|
255 | } |
|
256 | ||
257 | return $output; |
|
258 | } |
|
@@ 374-379 (lines=6) @@ | ||
371 | $this->display_element( $e, $children_elements, $max_depth, 0, $args, $output ); |
|
372 | } |
|
373 | ||
374 | if ( $end >= $total_top && count( $children_elements ) > 0 ) { |
|
375 | $empty_array = array(); |
|
376 | foreach ( $children_elements as $orphans ) |
|
377 | foreach ( $orphans as $op ) |
|
378 | $this->display_element( $op, $empty_array, 1, 0, $args, $output ); |
|
379 | } |
|
380 | ||
381 | return $output; |
|
382 | } |