Lines Matching defs:level
33 /** @var int current section level */
200 * @param int $level the nesting level
202 public function toc_additem($id, $text, $level)
207 if ($level >= $conf['toptoclevel'] && $level <= $conf['maxtoclevel']) {
208 $this->toc[] = html_mktocitem($id, $text, $level - $conf['toptoclevel'] + 1);
216 * @param int $level header level
221 public function header($text, $level, $pos, $returnonly = false)
230 $this->toc_additem($hid, $text, $level);
233 $this->node[$level - 1]++;
234 if ($level < $this->lastlevel) {
235 for ($i = 0; $i < $this->lastlevel - $level; $i++) {
239 $this->lastlevel = $level;
242 $level <= $conf['maxseclevel'] &&
250 $header = DOKU_LF . '<h' . $level;
251 if ($level <= $conf['maxseclevel']) {
261 $header .= "</h$level>" . DOKU_LF;
273 * @param int $level section level (as determined by the previous header)
275 public function section_open($level)
277 $this->doc .= '<div class="level' . $level . '">' . DOKU_LF;
548 * @param int $level the nesting level
551 public function listitem_open($level, $node = false)
554 $this->doc .= '<li class="level' . $level . $branching . '">';
1605 * Returns the current header level.
1608 * @return int The current header level