Lines Matching refs:level
70 * @param int $level from 1 (highest) to 6 (lowest)
73 public function header($text, $level, $pos, $returnonly = false) argument
84 $this->toc_additem($hid, $text, $level);
96 if ($level > 0) {
97 if (self::$previous_level > $level) {
98 for ($i = $level + 1; $i <= self::$previous_level; $i++) {
103 self::$header_count[$level]++;
106 for ($i = 1; $i <= $level; $i++) {
115 if ($maxbookmarklevel && $maxbookmarklevel >= $level) {
116 $bookmarklevel = $this->calculateBookmarklevel($level);
126 $this->doc .= DOKU_LF . "<h$level>$bookmark";
130 $this->doc .= "</h$level>" . DOKU_LF;
131 self::$previous_level = $level;
138 * @param int $level 1 (highest) to 6 (lowest)
141 protected function calculateBookmarklevel($level) argument
144 $this->lastHeaderLevel = $level;
146 $step = $level - $this->lastHeaderLevel;
151 $this->difference = min($this->difference, $level - $this->originalHeaderLevel);
155 $bookmarklevel = $level - $this->difference;
161 $this->lastHeaderLevel = $level;