Ejemplo n.º 1
0
 /**
  * Output Handling for 3PD modules
  * @param object
  * @param object
  * @param int The menu item ID
  * @param int -1=show without wrapper and title, -2=xhtml style
  */
 public static function module2(&$module, &$params, $Itemid, $style = 0, $count = 0)
 {
     global $mosConfig_lang, $mosConfig_absolute_path;
     $moduleclass_sfx = $params->get('moduleclass_sfx');
     // check for custom language file
     $path = $mosConfig_absolute_path . '/modules/' . $module->module . $mosConfig_lang . '.php';
     if (file_exists($path)) {
         include $path;
     } else {
         $path = $mosConfig_absolute_path . '/modules/' . $module->module . '.eng.php';
         if (file_exists($path)) {
             include $path;
         }
     }
     $number = '';
     if ($count > 0) {
         $number = '<span>' . $count . '</span> ';
     }
     switch ($style) {
         case -3:
             // allows for rounded corners
             modules_html::modoutput_rounded($module, $params, $Itemid, $moduleclass_sfx);
             break;
         case -2:
             // xhtml (divs and font headder tags)
             modules_html::modoutput_xhtml($module, $params, $Itemid, $moduleclass_sfx);
             break;
         case -1:
             // show a naked module - no wrapper and no title
             modules_html::modoutput_naked($module, $params, $Itemid, $moduleclass_sfx);
             break;
         default:
             // standard tabled output
             modules_html::modoutput_table($module, $params, $Itemid, $moduleclass_sfx);
             break;
     }
 }