Ejemplo n.º 1
0
 public static function module(&$module, &$params, $Itemid, $style = 0)
 {
     global $_MAMBOTS;
     // custom module params
     $moduleclass_sfx = $params->get('moduleclass_sfx');
     $rssurl = $params->get('rssurl');
     $firebots = $params->get('firebots', 0);
     if ($rssurl) {
         // feed output
         modules_html::modoutput_feed($module, $params, $moduleclass_sfx);
     }
     if ($module->content != '' && $firebots) {
         // mambot handling for custom modules
         // load content bots
         $_MAMBOTS->loadBotGroup('content');
         $row = $module;
         $row->text = $module->content;
         $results = $_MAMBOTS->trigger('onPrepareContent', array(&$row, &$params, 0), true);
         $module->content = $row->text;
     }
     switch ($style) {
         case -3:
             // allows for rounded corners
             modules_html::modoutput_rounded($module, $params, $Itemid, $moduleclass_sfx, 1);
             break;
         case -2:
             // xhtml (divs and font headder tags)
             modules_html::modoutput_xhtml($module, $params, $Itemid, $moduleclass_sfx, 1);
             break;
         case -1:
             // show a naked module - no wrapper and no title
             modules_html::modoutput_naked($module, $params, $Itemid, $moduleclass_sfx, 1);
             break;
         default:
             // standard tabled output
             modules_html::modoutput_table($module, $params, $Itemid, $moduleclass_sfx, 1);
             break;
     }
 }