Lines Matching refs:level
32 /** @var int current section level */
199 * @param int $level the nesting level
201 public function toc_additem($id, $text, $level)
206 if ($level >= $conf['toptoclevel'] && $level <= $conf['maxtoclevel']) {
207 $this->toc[] = html_mktocitem($id, $text, $level - $conf['toptoclevel'] + 1);
215 * @param int $level header level
220 public function header($text, $level, $pos, $returnonly = false)
229 $this->toc_additem($hid, $text, $level);
232 $this->node[$level - 1]++;
233 if ($level < $this->lastlevel) {
234 for ($i = 0; $i < $this->lastlevel - $level; $i++) {
238 $this->lastlevel = $level;
241 $level <= $conf['maxseclevel'] &&
249 $header = DOKU_LF . '<h' . $level;
250 if ($level <= $conf['maxseclevel']) {
260 $header .= "</h$level>" . DOKU_LF;
272 * @param int $level section level (as determined by the previous header)
274 public function section_open($level)
276 $this->doc .= '<div class="level' . $level . '">' . DOKU_LF;
547 * @param int $level the nesting level
550 public function listitem_open($level, $node = false)
553 $this->doc .= '<li class="level' . $level . $branching . '">';
1605 * Returns the current header level.
1608 * @return int The current header level