Lines Matching +full:hi +full:- +full:level

65         $this->conf['m'] = $m;
135 // If older or equal to 2007-06-26, we need to disable caching
138 $this->info["cache"] = false;
146 $contentFileName = date('Y-m-d_').$contentFileName;
149 // send the content type header, new method after 2007-06-26 (handles caching)
154 'Content-Type' => $contentType,
155 'Content-Disposition' => 'attachment; filename="'.$contentFileName.'";',
160 header('Content-Type: '.$contentType);
161 header('Content-Disposition: attachment; filename="'.$contentFileName.'";');
164 header('Content-Type: text/html; charset=utf-8');
165 …tml><html><head><meta charset="utf-8"></head><body>'; #<meta http-equiv="Content-Type" content="te…
178 $this->doc = trim($this->doc);
181 $pattern = '<p style="ps-0" dir="ltr"></p>';
182 while (substr($this->doc, 0, strlen($pattern)) == $pattern) {
183 $this->doc = substr($this->doc, strlen($pattern));
186 $pattern2 = '<p style="ps-0" dir="ltr"><c style="cs-0"></c></p>';
187 while (substr($this->doc, 0, strlen($pattern2)) == $pattern2) {
188 $this->doc = substr($this->doc, strlen($pattern2));
195 …$this->doc = preg_replace('/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', ' '…
201 …this->doc = str_replace(array('<c style=\'cs-0\'></c>', '<c style="cs-0"></c>', '<c style="\'cs-0\…
202->doc = str_replace(array('<p style=\'ps-0\' dir=\'ltr\'></p>', '<c style="cs-0" dir="ltr"></c>', …
203 #$this->doc = str_replace('<p style=\'ps-0\' dir=\'ltr\'></p>', '', $this->doc);
208 …// $this->doc = self::remove_whitespace('<?xml version="1.0" encoding="utf-8" ? >'.$this->doc); //…
209 $this->doc = htmlentities($this->doc);
211 echo '<pre>'.$this->doc.'</pre>';
217 $this->doc = str_replace('{{CONTENT}}', $this->doc, $template);
220 …// $this->doc = str_replace('{{WIKIPAGE}}', str_replace(array('http://', 'https://'), '', DOKU_URL…
221 …// $this->doc = str_replace('{{WIKIDATE}}', date('d.m.Y', $INFO['meta']['date']['created']).' by '…
227 $this->doc = str_replace('{{EDITED_AT}}', $changed_at, $this->doc);
228 $this->doc = str_replace('{{EDITED_BY}}', $user, $this->doc);
234 $this->doc = str_replace('{{WIKIURL}}', $url, $this->doc);
235 // $this->doc = str_replace();
238 self::xml_errors($this->doc);
239 $this->doc = self::remove_whitespace($this->doc);
248 $res = $zip->open($tmpZipFile, ZipArchive::CREATE);
250 $zip->addFromString('main.xml', $this->doc);
251 $zip->addFromString('.redlex', '');
252 $zip->close();
254 $this->doc = file_get_contents($tmpZipFile);
262 if ($this->opened != 0) {
278 $this->conf['m'] = $m;
280 $m = $this->conf['m'];
286 if (substr($name, -5) === '_open') {
289 $this->opened++;
290 } elseif (substr($name, -6) === '_close') {
293 $this->opened--;
303 if (!isset($this->footnote_open)) {
304 $this->footnote_open = false;
307 $this->footnote_open = $type == 'OPEN';
325 $this->doc = 'NO MAPPING FOUND'.$this->doc;
330 if (($this->pTagOpen OR $this->sectionTagOpen) AND isset($mapping['template_p_open'])) {
334 // Special template for Headline level 1
339 // Reduce level by 1
340 $args[1]--;
380 // Link text " -> &qout;
392 $args[0] = str_replace("\n", '<dir-break-space/>', $args[0]);
396 // <line-break/> ???
400 …// $args[0] = preg_replace('~\sS\.([ ]{1})\d+~', '<dir-break-space/>', $args[0]); // Seems not to …
405 $args[0] = str_replace(array('---', '--'), array('—', '–'), $args[0]);
420 if (preg_match('~&lt;hi ~', $args[0])) {
421 // &lt;hi #ff4500&gt;bunt&lt;/hi&gt;
423 …s[0] = preg_replace('~&lt;hi #([a-zA-Z0-9]+)&gt;(.*)&lt;/hi&gt;~Ui', '</c><c style=\'cs-0\' marke…
424 …// $args[0] = preg_replace('~&lt;hi #[a-zA-Z0-9]+&gt;~', '</c><c style=\'cs-0\' …
427 … $args[0] = preg_replace_callback('~marker=\'([a-zA-Z0-9]+)\'~', 'callback_marker', $args[0]);
430 $args[0] = str_replace('&lt;/hi&gt;', '</c><c style=\'cs-0\'>', $args[0]);
443 if ($this->footnote_open AND $tag != 'footnote') {
444 $doc = str_replace(' style="cs-0"', ' style="cs-6"', $doc);
469 // :?: --> rendered as a yellow questionmark image
470 $doc = str_replace(array(':?:'), array('<c style=\'cs-0\' marker=\'1\'>?</c>'), $doc);
478-align: top;">'.$tag.'</td><td></td><td style="vertical-align: top;">'.$type.'</td><td>&nbsp;&nbsp…
481 $this->doc .= $doc;
483 $this->lastTag = $name;
487 $this->pTagOpen = TRUE;
489 $this->pTagOpen = FALSE;
495 $this->sectionTagOpen = TRUE;
497 $this->sectionTagOpen = FALSE;
508 $doc = new DOMDocument('1.0', 'utf-8');
509 $doc->loadXML( $xml );
514 echo '<pre style="border: 1px solid red; border-radius:2px; padding:5px">';
518 $line = $lines[($error->line - 1)];
520 $start = ($error->column - $padding) > 0 ? ($error->column - $padding) : 0;
522 echo trim($error->message).'<br />';
525 $column = $error->column - $start - 1;
526 echo str_pad('', $column, '-').'^';
532 echo '<pre style="border: 1px solid red; border-radius:2px; padding:5px">';
537 echo '<pre style="border: 1px solid black; border-radius:2px; padding:5px">';
546 $doc = new DOMDocument('1.0', 'utf-8');
547 $doc->loadXML( $xml );
550 $doc->preserveWhiteSpace = FALSE;
551 $doc->formatOutput = FALSE;
553 $doc->preserveWhiteSpace = FALSE;
554 $doc->formatOutput = TRUE;
557 return self::cleanTemplate($doc->saveXML());
565 …function toc_additem($id, $text, $level) {call_user_func_array(array($this, '__call'), array(__FUN… argument
567 …function header($text, $level, $pos) {call_user_func_array(array($this, '__call'), array(__FUNCTIO… argument
569 …function section_open($level) {call_user_func_array(array($this, '__call'), array(__FUNCTION__, fu… argument
634 …function listitem_open($level) {call_user_func_array(array($this, '__call'), array(__FUNCTION__, f… argument
696 // $link is the original link - probably not much use