示例#1
0
 /**
  * get all modules in position 
  * @position: String - position of template
  * @attributes: String - Attributes will be set for modules in position
  * @return: String of modules in position after rendered
  */
 public function renderModules($position, $Itemid, $attributes = array(), $showmode, $published = '')
 {
     $modules = JSNModules::getModules($position, $Itemid, $published);
     $modulesHTML = array();
     $count = count($modules);
     if ($count) {
         foreach ($modules as $module) {
             $modulesHTML[] = PoweradminFrontHelper::renderModule($module, $attributes, $showmode);
         }
     }
     return implode(PHP_EOL, $modulesHTML);
 }