Lines Matching refs:aRenderer
266 function render($aFormat, &$aRenderer, &$aData) { argument
278 if (preg_match('|\s*<p>\s*$|i', $aRenderer->doc, $hits)) {
280 $aRenderer->doc = substr($aRenderer->doc, 0, $hits)
283 $aRenderer->doc .= '</p><' . $LISTS[$aData[1]] . '>';
294 if (preg_match('|</li>\s*$|', $aRenderer->doc)) {
296 $aRenderer->doc .= '<li class="level' . ($LEVEL - 1)
300 $aRenderer->doc, $hits)) {
303 $aRenderer->doc = substr($aRenderer->doc, 0, $hits)
310 $aRenderer->doc .= '</p><'
314 $aRenderer->doc .= '<'
318 $aRenderer->doc .= '<li class="level'
327 $aRenderer->doc .= '</'
330 $aRenderer->doc .= (0 < $INLI[$LEVEL])
338 $aRenderer->doc .= (0 < $INLI[$LEVEL])
342 $aRenderer->doc .= '</' . $LISTS[$CURRENT[$LEVEL]]
346 $aRenderer->doc .= '<li class="level' . $LEVEL . '"><p>';
357 $aRenderer->doc .= (0 < $INLI[$LEVEL]) // LI P
363 $aRenderer->doc .= '</'
369 $aRenderer->doc .= '<!-- '. $aData[1] .' -->';
375 $aRenderer->doc, $hits)) {
378 $aRenderer->doc = substr($aRenderer->doc, 0, $hits);
380 $aRenderer->doc, $hits)) {
382 $aRenderer->doc =
383 substr($aRenderer->doc, 0, $hits) . '</li>';
385 $aRenderer->doc .= (0 < $INLI[$LEVEL])
395 $aRenderer->doc .= $aData[1];
398 $aRenderer->doc .= '<p>' . $aData[1];
403 $aRenderer->doc .= '</'
408 $aRenderer->doc .= $aData[1];
416 $aRenderer->doc .= '</'. $LISTS[$CURRENT[$LEVEL + 1]] .'>';
418 $aRenderer->doc .= (0 < $INLI[$LEVEL])
425 $aRenderer->doc = preg_replace('|\s*<p>\s*</p>\s*|', '',
426 $aRenderer->doc) . '</'. $LISTS[$CURRENT[$LEVEL]] .'><p>';