Lines Matching refs:this

72         if ($this->info['toc'] === false && !($this->info['forceTOC'] || $this->meta['forceTOC'])) {
73 $TOC = $this->toc = array();
78 … ($this->info['forceTOC'] || $this->meta['forceTOC'] || (utf8_strlen(strip_tags($this->doc)) >= $t…
79 $TOC = $this->toc;
83 $meta['forceTOC'] = $this->info['forceTOC'] || $this->meta['forceTOC'];
89 $this->doc = preg_replace('#<p( class=".*?")?>\s*</p>#', '', $this->doc);
99 $hid = $this->_headerToLink($text, true);
102 $this->toc_additem($hid, $text, $level);
105 $this->node[$level-1]++;
106 if ($level < $this->lastlevel) {
107 for ($i = 0; $i < $this->lastlevel-$level; $i++) {
108 $this->node[$this->lastlevel-$i-1] = 0;
111 $this->lastlevel = $level;
116 count($this->sectionedits) > 0 &&
117 $this->sectionedits[count($this->sectionedits)-1][2] === 'section') {
118 $this->finishSectionEdit($pos-1);
123 …if ($this->getConf('usenumberedheading') || !empty($useNumbered) || !empty($INFO['meta']['usenumbe…
126 $this->headingCount[$level]++;
133 $this->headingCount[$i] = 0;
137 $headingNumber .= $this->headingCount[$i] . '.';
144 $this->doc .= DOKU_LF.'<h'.$level;
148 … $class[] = $this->startSectionEdit($pos, array( 'target' => 'section', 'name' => $text ) );
161 $this->doc .= ' class="' . implode(' ', $class) . '"';
164 $this->doc .= '><a name="'.$hid.'" id="'.$hid.'">';
165 $this->doc .= $this->_xmlEntities($headingNumber . $text);
166 $this->doc .= "</a></h$level>".DOKU_LF;
170 if ( $this->hasSeenHeader ) {
171 $this->finishSectionEdit($pos);
176 …$sectionEdit = $this->startSectionEdit($pos, array( 'target' => 'section_empty', 'name' => $name));
177 … $this->doc .= DOKU_LF.'<a name="'. $sectionEdit .'" class="' . $sectionEdit . '" ></a>'.DOKU_LF;
180 $this->hasSeenHeader = true;
184 $this->currentLevel = $level;
189 $this->doc .= DOKU_LF . '<p class="level' . $this->currentLevel . '">' . DOKU_LF;
193 $this->doc .= '<ul class="level' . $this->currentLevel . '">' . DOKU_LF;
197 $this->doc .= '<ol class="level' . $this->currentLevel . '">' . DOKU_LF;
239 $link = $this->_getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render);
266 $this->doc .= $link['name'];
268 $this->doc .= $this->_formatLink($link);
284 $default = $this->_simpleTitle($id);
289 $name = $this->_getLinkTitle($name, $default, $isImage, $id, $linktype);
303 if (!empty($hash)) $hash = $this->_headerToLink($hash);
319 $link['title'] = $this->_getLinkTitle(null, $default, $isImage, $id, $linktype);
337 return $this->_formatLink($link);
339 $this->doc .= $this->_formatLink($link);
345 if (empty($this->acronymsExchanged)) {
346 $this->acronymsExchanged = $this->acronyms;
347 $this->acronyms = array();
349 foreach ($this->acronymsExchanged as $key => $value) {
350 $this->acronyms[str_replace('_', ' ', $key)] = $value;
364 $string = $this->superentities($string);
366 if ($this->info['scriptmode']) {
404 $this->doc .= '<div class="pre">';
406 $this->doc .= '</div>';
410 $this->doc .= '<div class="pre">';
412 $this->doc .= '</div>';
444 $name = $this->_getLinkTitle($name, $hash, $isImage);
445 $hash = $this->_headerToLink($hash);
455 $this->doc .= $doc;