10 defined(
'JPATH_PLATFORM') or die;
32 public function render($position, $params = array(), $content = null)
34 $renderer = $this->_doc->loadRenderer(
'module');
38 $frontediting = $app->get(
'frontediting', 1);
41 $canEdit = $user->id && $frontediting && !($app->isAdmin() && $frontediting < 2) && $user->authorise(
'core.edit',
'com_modules');
42 $menusEditing = ($frontediting == 2) && $user->authorise(
'core.edit',
'com_menus');
44 foreach (JModuleHelper::getModules($position) as $mod)
46 $moduleHtml = $renderer->render($mod, $params, $content);
48 if ($app->isSite() && $canEdit && trim($moduleHtml) !=
'' && $user->authorise(
'core.edit',
'com_modules.module.' . $mod->id))
50 $displayData = array(
'moduleHtml' => &$moduleHtml,
'module' => $mod,
'position' => $position,
'menusediting' => $menusEditing);
51 JLayoutHelper::render(
'joomla.edit.frontediting_modules', $displayData);
54 $buffer .= $moduleHtml;