Lines Matching defs:content

128      * Get the content to include from the tplinc plugin
130 * prefix and postfix are only added when there actually is any content
138 $content = '';
141 $content = $plugin->renderIncludes($location);
144 if ($content === '') {
145 $content = tpl_include_page($location, 0, 1, $this->getConf('useACL'));
148 if ($content === '') {
152 $content = $this->normalizeContent($content);
155 return $content;
158 echo $content;
530 * @param bool $ret return content instead of printing it
913 echo '<meta itemprop="position" content="1" />';
943 echo '<meta itemprop="position" content="' . $position . '" />';
972 echo '<meta itemprop="position" content="' . ++$position . '" />';
1389 * Add Bootstrap classes in a DokuWiki content
1393 * @param string $content from tpl_content() or from tpl_include_page()
1396 public function normalizeContent($content)
1403 $content = str_replace(['alt=":-\"', "alt=':-\'"], 'alt=":-&#92;"', $content);
1406 $content = str_replace('checked="checked"', ' checked="checked"', $content);
1408 # Return original content if Simple HTML DOM fail or exceeded page size (default MAX_FILE_SIZE => 600KB)
1409 if (strlen($content) > MAX_FILE_SIZE) {
1410 return $content;
1415 $html->load($content, true, false);
1417 # Return original content if Simple HTML DOM fail or exceeded page size (default MAX_FILE_SIZE => 600KB)
1419 return $content;
1573 $content = $html->save();
1585 $html->load($content, true, false);
1592 $content = $html->save();
1603 $html->load($content, true, false);
1621 $content = $html->save();
1632 $html->load($content, true, false);
1647 $elm->innertext = iconify('mdi:content-save') . ' ' . $elm->innertext;
1690 $elm->innertext = iconify('mdi:content-save') . ' ' . $elm->innertext;
1745 $elm->innertext = iconify('mdi:content-save') . ' ' . $elm->innertext;
1863 $content = $html->save();
1872 $html->load($content, true, false);
1914 $content = $html->save();
1939 $content = preg_replace(
1942 $content
1953 $html->load($content, true, false);
1998 $content = $html->save();
2083 $html->load($content, true, false);
2090 $content = $html->save();
2099 $html->load($content, true, false);
2106 $content = $html->save();
2112 return $content;