--- a/mediawiki/extensions/cmo.php
+++ b/mediawiki/extensions/cmo.php
@@ -21,24 +21,27 @@ function wfCMOBox() {
}
// the function that reacts to "<topicbox>"
function CMOBox( $input, $argv, &$parser) {
global $wgScriptPath;
$parser->disableCache();
-
-// the varibles are: <aim style="$argv['style']" action="$argv['action']">$input</aim>
$input = '<cmobox title="'.$argv['title'].'">'.$input.'</cmobox>';
$xml = new SimpleXMLElement($input);
+ if ($argv['float'])
+ $style = 'style="float:'.$argv['float'].'"';
+ else
+ $style = '';
+
// start the rendering the html outupt
- $output = '<div class="topicbox"><h2>'.$parser->recursiveTagParse((string)$argv['title']).'</h2><table>';
+ $output = '<div class="topicbox" '.$style.'><h2>'.$parser->recursiveTagParse((string)$argv['title']).'</h2><table>';
$i = 0;
foreach ($xml->cmocell as $cmocell) {
if ($i==0)
$output .= '<tr>';
if (strpos((string)$cmocell['url'], 'http://')===false) {
$title = Title::newFromText((string)$cmocell['url']);
if ($title)