Lines Matching refs:LEVEL
271 static $LEVEL = 1; // initial nesting level
276 $CURRENT[$LEVEL] = $aData[1];
290 $diff = $aData[2] - $LEVEL;
292 $CURRENT[++$LEVEL] = $aData[1];
296 $aRenderer->doc .= '<li class="level' . ($LEVEL - 1)
297 . '"><' . $LISTS[$CURRENT[$LEVEL]] . '>';
298 $INLI[$LEVEL - 1] = 0; // no closing P needed
304 . '<li class="level' . ($LEVEL - 1)
305 . '"><' . $LISTS[$CURRENT[$LEVEL]] . '>';
306 $INLI[$LEVEL - 1] = 0; // no closing P needed
308 if (isset($INLI[$LEVEL - 1])) {
309 if (0 < $INLI[$LEVEL - 1]) { // open LI P
312 $INLI[$LEVEL - 1] = 0;
319 . ($LEVEL - 1) . '"><'
321 $INLI[$LEVEL - 1] = 0; // no closing P needed
326 --$LEVEL;
328 . $LISTS[$CURRENT[$LEVEL + 1]] . '>';
329 if (isset($INLI[$LEVEL])) {
330 $aRenderer->doc .= (0 < $INLI[$LEVEL])
335 } else if ($aData[1] != $CURRENT[$LEVEL]) {
337 if (isset($INLI[$LEVEL])) {
338 $aRenderer->doc .= (0 < $INLI[$LEVEL])
342 $aRenderer->doc .= '</' . $LISTS[$CURRENT[$LEVEL]]
344 $CURRENT[$LEVEL] = $aData[1];
346 $aRenderer->doc .= '<li class="level' . $LEVEL . '"><p>';
347 $INLI[$LEVEL] = 1; // closing P needed
356 if (isset($INLI[$LEVEL])) {
357 $aRenderer->doc .= (0 < $INLI[$LEVEL]) // LI P
361 if (1 < $LEVEL) { // assume a trailing LI text
362 --$LEVEL;
364 . $LISTS[$CURRENT[$LEVEL + 1]] . '><p>'
384 } else if (isset($INLI[$LEVEL])) {
385 $aRenderer->doc .= (0 < $INLI[$LEVEL])
390 unset($INLI[$LEVEL]);
393 if (isset($INLI[$LEVEL])) {
394 if (0 < $INLI[$LEVEL]) { // LI P
396 $INLI[$LEVEL] = 1;
401 if (1 < $LEVEL) { // assume a trailing LI text
402 --$LEVEL;
404 . $LISTS[$CURRENT[$LEVEL + 1]] . '><p>'
406 $INLI[$LEVEL] = 1;
414 while (1 < $LEVEL) {
415 --$LEVEL;
416 $aRenderer->doc .= '</'. $LISTS[$CURRENT[$LEVEL + 1]] .'>';
417 if (isset($INLI[$LEVEL])) {
418 $aRenderer->doc .= (0 < $INLI[$LEVEL])
426 $aRenderer->doc) . '</'. $LISTS[$CURRENT[$LEVEL]] .'><p>';
428 $LEVEL = 1;