function renderComponentMenu($active, $showChildren = false, $showParent = true) { $components = AdminPraise3MenuHelper::getComponents(); $class = $active ? 'parent active' : 'parent'; $html = ''; if ($showParent) { $html .= '<li class="' . $class . '"><a href="index.php?ap_task=list_components" title="' . JText::_('COMPONENTS') . '"><span class="component-name">' . JText::_('COMPONENTS') . '</span><span class="subarrow"></span></a>'; } $html .= '<ul class="component-list">'; $html .= $this->renderComponentChildren($components, $showChildren); $html .= "</ul>"; return $html; }
<?php defined('_JEXEC') or die('Restricted access'); $menu = AdminPraise3Menu::getInstance(); $components = AdminPraise3MenuHelper::getComponents(); require $tmpl_path . '/default.php';