with wikimarkup
*/
class WikiPlugin_BoxRight
extends WikiPlugin
{
function getName()
{
return "BoxRight";
}
function getDescription()
{
return _("A simple plugin for
with wikimarkup");
}
function getDefaultArguments()
{
return array();
}
function managesValidators()
{
// The plugin output will only change if the plugin
// invocation (page text) changes --- so the necessary
// validators have already been handled by displayPage.
return true;
}
function run($dbi, $argstr, &$request, $basepage)
{
if (!$basepage) {
return $this->error("$basepage unset?");
}
include_once 'lib/BlockParser.php';
$page = $request->getPage($basepage);
return HTML::div(array('class' => 'boxright'), TransformText($argstr));
}
}
// Local Variables:
// mode: php
// tab-width: 8
// c-basic-offset: 4
// c-hanging-comment-ender-p: nil
// indent-tabs-mode: nil
// End: