...
Code Block |
---|
|
$wt = new WikiTransformation();
$wt->setPageUnixName($pl->getParameterValue("page_unix_name"));
/* snip */
if ($templatePage) {
$source = $wt->assemblyTemplate($source, $templatePage->getSource());
}
$result = $wt->processSource($source); |
PageVersionModule.php
:
Code Block |
---|
|
$tr = new WikiTransformation();
$content = $tr->processSource($source); |
ListPagesModule.php
:
Code Block |
---|
|
if ($separation) {
$wt = new WikiTransformation();
$wt->setMode("list");
$wt->setPage($page);
$b = $wt->processSource($b);
$b = "<div class=\"list-pages-item\">\n" . $b . "</div>";
//$b = "[[div class=\"list-pages-item\"]]\n".$b."\n[[/div]]";
} |
Code Block |
---|
|
if (!$separation) {
$prependLine = $this->_readParameter('prependLine');
$appendLine = $this->_readParameter('appendLine');
$wt = new WikiTransformation();
$wt->setMode("list");
$glue = "\n";
$itemsContent = $wt->processSource(($prependLine ? ($prependLine . "\n") : ''). implode($glue, $items) . ($appendLine ? ("\n". $appendLine) : ''));
} else {
$itemsContent = implode("\n", $items);
} |
SocialBookmarksModule.php
:
Code Block |
---|
|
// purify???
$wt = new WikiTransformation();
$out = $wt->purifyHtml($out);
return $out; |