| /dokuwiki/_test/tests/inc/ |
| H A D | html_hilight.test.php | 6 $html = 'Foo bar Foo'; 9 html_hilight($html,'bar') 14 $html = 'Foo bar Foo php Foo'; 17 html_hilight($html,array('bar','php')) 22 $html = 'Foo <b>bar</b> <i>Foo</i> php Foo'; 25 html_hilight($html,array('bar','php')) 30 $html = 'Foo <font>font</font> Bar'; 33 html_hilight($html,'font') 38 $html = 'foo bar foobar barfoo foobarfoo foo'; 41 html_hilight($html,'bar*') [all …]
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | GuiAdmin.php | 11 $html = '<div id="extension__manager">'; 13 $html .= $this->tabNavigation(); 16 'search' => $html .= $this->tabSearch(), 17 'templates' => $html .= $this->tabTemplates(), 18 'install' => $html .= $this->tabInstall(), 19 default => $html .= $this->tabPlugins(), 22 $html .= '</div>'; 23 return $html; 32 $html = '<ul class="tabs">'; 40 $html .= '<li class="' . $tab . $class . '"><a href="' . $url . '">' . [all …]
|
| H A D | GuiExtension.php | 25 $html = "<section class=\"$classes\" data-ext=\"{$this->extension->getId()}\">"; 27 $html .= '<div class="screenshot">'; 28 $html .= $this->thumbnail(); 29 $html .= '<span class="id" title="' . hsc($this->extension->getBase()) . '">' . 31 $html .= $this->popularity(); 32 $html .= '</div>'; 34 $html .= '<div class="main">'; 35 $html .= $this->main(); 36 $html .= '</div>'; 38 $html .= '<div class="notices">'; [all …]
|
| /dokuwiki/inc/Menu/ |
| H A D | MobileMenu.php | 64 $html = '<form action="' . script() . '" method="get" accept-charset="utf-8">'; 65 $html .= '<div class="no">'; 66 $html .= '<input type="hidden" name="id" value="' . $ID . '" />'; 67 if ($REV) $html .= '<input type="hidden" name="rev" value="' . $REV . '" />'; 69 $html .= '<input type="hidden" name="sectok" value="' . getSecurityToken() . '" />'; 72 $html .= '<select name="do" class="edit quickselect" title="' . $lang['tools'] . '">'; 73 $html .= '<option value="">' . $empty . '</option>'; 77 $html .= '<optgroup label="' . $lang[$tools . '_tools'] . '">'; 80 $html .= '<option value="' . $params['do'] . '">'; 81 $html .= hsc($item->getLabel()); [all …]
|
| H A D | AbstractMenu.php | 87 $html = ''; 95 $html .= "<li$class>"; 96 $html .= $item->asHtmlLink(false, $svg); 97 $html .= '</li>'; 99 return $html;
|
| /dokuwiki/inc/Ui/ |
| H A D | PageView.php | 56 … $html = html_secedit(p_render('xhtml', p_get_instructions($this->text), $info), $secedit); 57 if ($INFO['prependTOC']) $html = tpl_toc(true) . $html; 58 echo $html; 67 $html = p_wiki_xhtml($ID, $REV, true, $DATE_AT); 68 $html = html_secedit($html, $secedit); 69 if ($INFO['prependTOC']) $html = tpl_toc(true) . $html; 70 $html = html_hilight($html, $HIGH); 71 echo $html;
|
| H A D | Revisions.php | 97 $html = '<div class="pagenav">'; 101 $html .= '<div class="pagenav-prev">'; 102 $html .= html_btn('newer', $this->id, "p", $callback($first)); 103 $html .= '</div>'; 106 $html .= '<div class="pagenav-next">'; 107 $html .= html_btn('older', $this->id, "n", $callback($last)); 108 $html .= '</div>'; 110 $html .= '</div>'; 111 return $html;
|
| H A D | Index.php | 81 $html = ''; 87 …$html .= '<a href="' . $link . '" title="' . $item['id'] . '" class="idx_dir"' . $nofollow . '><st… 88 $html .= $base; 89 $html .= '</strong></a>'; 92 … $html .= html_wikilink(':' . $item['id'], useHeading('navigation') ? null : noNS($item['id'])); 94 return $html;
|
| H A D | Recent.php | 85 $html = implode(' ', [ 95 $form->addHTML($html); 186 $html = '<div class="pagenav">'; 189 $html .= '<div class="pagenav-prev">'; 190 $html .= '<button type="submit" name="first[' . $first . ']" accesskey="n"' 194 $html .= '</div>'; 197 $html .= '<div class="pagenav-next">'; 198 $html .= '<button type="submit" name="first[' . $last . ']" accesskey="p"' 202 $html .= '</div>'; 204 $html .= '</div>'; [all …]
|
| /dokuwiki/_test/tests/Ui/Media/ |
| H A D | DisplayTest.php | 22 $html = $display->getDetailHtml(500, 500); 25 $this->assertStringContainsString('width="500"', $html); 26 $this->assertStringContainsString('height="333"', $html); 32 $html = $display->getDetailHtml(); 34 $this->assertStringContainsString('<div class="image">', $html); 35 $this->assertStringContainsString('target="_blank"', $html); 36 $this->assertStringContainsString('fit=1', $html); 37 $this->assertStringContainsString('<img ', $html); 53 $html = (new Display(new MediaFile($this->rotated, $rev)))->getDetailHtml(); 54 $this->assertMatchesRegularExpression('/[?&][^f]*?rev=' . $rev . '/', $html); [all …]
|
| /dokuwiki/_test/tests/Parsing/Markdown/ |
| H A D | GfmSpecTest.php | 34 $html = strtr($ex['html'], ["\u{2192}" => "\t"]); 35 yield $label => [$md, $html, $reason]; 122 private function normalizeHtml(string $html): string argument 130 $html = preg_replace('#<div class="level[1-6]">\s*#', '', $html); 131 $html = preg_replace('#\s*</div>\s*#', '', $html); 132 $html = preg_replace('#<!--[^<]*?-->#', '', $html); 135 $html = preg_replace('#<(h[1-6])(?:\s+(?:class|id)="[^"]*")+\s*>#', '<$1>', $html); 138 $html = preg_replace('#\s*<(' . $block . ')((?:\s[^>]*)?)>\s*#', '<$1$2>', $html); 140 $html = preg_replace('#\s*</(' . $block . ')>\s*#', '</$1>', $html); 142 return trim($html);
|
| /dokuwiki/inc/Feed/ |
| H A D | FeedItemProcessor.php | 146 * @param string $html 149 protected function cleanHTML($html) argument 154 $html = preg_replace('/(<!-- TOC START -->).*(<!-- TOC END -->)/s', '', $html); 157 $html = preg_replace('/(<img .*?class="medialeft")/s', '\\1 align="left"', $html); 158 $html = preg_replace('/(<img .*?class="mediaright")/s', '\\1 align="right"', $html); 163 $html = preg_replace( 166 $html 170 return $html;
|
| /dokuwiki/_test/tests/Extension/ |
| H A D | PluginRenderTextTest.php | 28 $html = $this->plugin()->render_text('[[a]]'); 29 $this->assertStringContainsString('<a ', $html); 30 $this->assertStringNotContainsString('[[a]]', $html); 40 $html = $this->plugin()->render_text('[[a]]', 'xhtml', null); 41 $this->assertStringContainsString('[[a]]', $html);
|
| /dokuwiki/_test/tests/Form/ |
| H A D | InputElementTest.php | 14 $html = $form->toHTML(); 15 $pq = (new Document())->html($html); 37 $html = $form->toHTML(); 38 $pq = (new Document())->html($html); 52 $html = $form->toHTML(); 53 $pq = (new Document())->html($html); 65 $html = $form->toHTML(); 66 $pq = (new Document())->html($html);
|
| H A D | DropdownElementTest.php | 34 $html = $form->toHTML(); 35 $pq = (new Document())->html($html); 74 $html = $form->toHTML(); 75 $pq = (new Document())->html($html);; 124 $html = $form->toHTML(); 125 $pq = (new Document())->html($html); 146 $html = $form->toHTML(); 148 $pq = (new Document())->html($html); 177 $html = $form->toHTML(); 178 $pq = (new Document())->html($html); [all …]
|
| H A D | ButtonElementTest.php | 16 $html = $form->toHTML(); 17 $pq = (new Document())->html($html); 34 $html = $form->toHTML(); 35 $pq = (new Document())->html($html);
|
| H A D | CheckableElementTest.php | 17 $html = $form->toHTML(); 18 $pq = (new Document())->html($html); 46 $html = $form->toHTML(); 47 $pq = (new Document())->html($html);
|
| /dokuwiki/inc/Form/ |
| H A D | OptGroup.php | 98 $html = '<optgroup ' . buildAttributes($this->attrs()) . '>'; 99 $html .= $this->renderOptions(); 100 $html .= '</optgroup>'; 101 return $html; 109 $html = ''; 116 $html .= '<option' . $selected . ' value="' . hsc($key) . '" ' . $attrs . '>'; 117 $html .= hsc($val['label']); 118 $html .= '</option>'; 120 return $html;
|
| H A D | HTMLElement.php | 15 * @param string $html 17 public function __construct($html) argument 19 parent::__construct('html', $html);
|
| H A D | FieldsetOpenElement.php | 34 $html = '<fieldset ' . buildAttributes($this->attrs()) . '>'; 36 if ($legend) $html .= DOKU_LF . '<legend>' . hsc($legend) . '</legend>'; 37 return $html;
|
| H A D | DropdownElement.php | 189 $html = '<select ' . buildAttributes($attr) . '>'; 190 $html = array_reduce( 192 static fn($html, OptGroup $optGroup) => $html . $optGroup->toHTML(), 193 $html 195 $html .= '</select>'; 197 return $html;
|
| /dokuwiki/_test/tests/Parsing/ |
| H A D | LocaleXhtmlTest.php | 28 $html = p_locale_xhtml('synctest'); 31 …$this->assertStringContainsString('<a ', $html, 'locale link must render as a link under md config… 32 …$this->assertStringNotContainsString('[[wiki:syntax]]', $html, 'bracket pair must not survive as l…
|
| /dokuwiki/inc/ |
| H A D | html.php | 165 $html = '<div class="secedit editbutton_' . $data['target'] . ' editbutton_' . $secid . '">'; 166 $html .= html_btn('secedit', $ID, '', $params, 'post', $name); 167 $html .= '</div>'; 168 return $html; 225 …$html = '<form class="button btn_' . $name . '" method="' . $method . '" action="' . $script . '">… 229 $html .= '<input type="hidden" name="' . $key . '" value="' . hsc($val) . '" />'; 235 $html .= '<button type="submit" '; 238 $html .= 'accesskey="' . $akey . '" '; 240 $html .= 'title="' . $tip . '">'; 242 $html .= '<span>' . hsc($label) . '</span>' . inlineSVG($svg); [all …]
|
| H A D | Mailer.class.php | 26 protected $html = ''; variable in Mailer 257 * @param string $html the HTML body, leave null to create it from $text 260 public function setBody($text, $textrep = null, $htmlrep = null, $html = null, $wrap = true) argument 267 if ($html === null) { 268 $html = $text; 269 $html = hsc($html); 270 $html = preg_replace('/^----+$/m', '<hr >', $html); 271 $html = nl2br($html); 275 $html = preg_replace('/\n-- <br \/>.*$/s', '', $html); //strip signature 276 $html = str_replace('@EMAILSIGNATURE@', '', $html); //strip @EMAILSIGNATURE@ [all …]
|
| /dokuwiki/_test/tests/inc/parser/ |
| H A D | renderer_pipeline.test.php | 18 $html = p_wiki_xhtml('wiki:syntax'); 19 $this->assertNotEmpty($html, 'wiki:syntax must render to non-empty HTML'); 22 $doc = (new Document())->html('<div id="root">' . $html . '</div>'); 37 substr_count($html, '<!-- EDIT{'),
|