@@ 651-660 (lines=10) @@ | ||
648 | } |
|
649 | } |
|
650 | ||
651 | if ($level < $open) { |
|
652 | if (($level - $open) == -1) { |
|
653 | $output .= '</li>'; |
|
654 | } |
|
655 | $output .= sprintf("\n%s</ul>\n%s</li>\n", |
|
656 | str_repeat("\t", $level + 2), |
|
657 | str_repeat("\t", $level + 1)); |
|
658 | } elseif ($level == $open && $y != 0) { |
|
659 | $output .= "</li>\n"; |
|
660 | } |
|
661 | ||
662 | if ($level > $open) { |
|
663 | $output .= sprintf("\n%s<ul>\n%s<li>", |
@@ 190-199 (lines=10) @@ | ||
187 | } |
|
188 | } |
|
189 | ||
190 | if ($level < $open) { |
|
191 | if (($level - $open) == -1) { |
|
192 | $output .= '</li>'; |
|
193 | } |
|
194 | $output .= sprintf("\n%s</ul>\n%s</li>\n", |
|
195 | str_repeat("\t", $level + 2), |
|
196 | str_repeat("\t", $level + 1)); |
|
197 | } elseif ($level == $open && $y != 0) { |
|
198 | $output .= "</li>\n"; |
|
199 | } |
|
200 | ||
201 | if ($level > $open) { |
|
202 | $output .= sprintf( |