4 * Copyright 2006 $ThePhpWikiProgrammingTeam
6 * This file is part of PhpWiki.
8 * PhpWiki is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * PhpWiki is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with PhpWiki; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * A simple plugin for <div class="boxright"> with wikimarkup
26 class WikiPlugin_BoxRight
33 function getDescription () {
34 return _("A simple plugin for <div class=boxright> with wikimarkup");
37 function getDefaultArguments() {
41 function managesValidators() {
42 // The plugin output will only change if the plugin
43 // invocation (page text) changes --- so the necessary
44 // validators have already been handled by displayPage.
48 function run($dbi, $argstr, &$request, $basepage) {
50 return $this->error("$basepage unset?");
52 include_once("lib/BlockParser.php");
53 $page = $request->getPage($basepage);
54 return HTML::div(array('class'=>'boxright'), TransformText($argstr));
63 // c-hanging-comment-ender-p: nil
64 // indent-tabs-mode: nil