| @@ 189-198 (lines=10) @@ | ||
| 186 | } |
|
| 187 | } |
|
| 188 | ||
| 189 | if ($level < $open) { |
|
| 190 | if (($level - $open) == -1) { |
|
| 191 | $output .= '</li>'; |
|
| 192 | } |
|
| 193 | $output .= sprintf("\n%s</ul>\n%s</li>\n", |
|
| 194 | str_repeat("\t", $level + 2), |
|
| 195 | str_repeat("\t", $level + 1)); |
|
| 196 | } elseif ($level == $open && $y != 0) { |
|
| 197 | $output .= "</li>\n"; |
|
| 198 | } |
|
| 199 | ||
| 200 | if ($level > $open) { |
|
| 201 | $output .= sprintf( |
|
| @@ 674-683 (lines=10) @@ | ||
| 671 | } |
|
| 672 | } |
|
| 673 | ||
| 674 | if ($level < $open) { |
|
| 675 | if (($level - $open) == -1) { |
|
| 676 | $output .= '</li>'; |
|
| 677 | } |
|
| 678 | $output .= sprintf("\n%s</ul>\n%s</li>\n", |
|
| 679 | str_repeat("\t", $level + 2), |
|
| 680 | str_repeat("\t", $level + 1)); |
|
| 681 | } elseif ($level == $open && $y != 0) { |
|
| 682 | $output .= "</li>\n"; |
|
| 683 | } |
|
| 684 | ||
| 685 | if ($level > $open) { |
|
| 686 | $output .= sprintf("\n%s<ul>\n%s<li>", |
|