';
$html .= $this->tabNavigation();
switch ($this->currentTab()) {
case 'search':
$html .= $this->tabSearch();
break;
case 'templates':
$html .= $this->tabTemplates();
break;
case 'install':
$html .= $this->tabInstall();
break;
case 'plugins':
default:
$html .= $this->tabPlugins();
}
$html .= '';
return $html;
}
/**
* Print the tab navigation
*
*/
public function tabNavigation()
{
$html = '
';
foreach ($this->tabs as $tab) {
$url = $this->tabURL($tab);
if ($this->currentTab() == $tab) {
$class = ' active';
} else {
$class = '';
}
$html .= '- ' .
$this->getLang('tab_' . $tab) . '
';
}
$html .= '
';
return $html;
}
public function tabPlugins()
{
$html = '';
$pluginlist = plugin_list('', true);
$html .= '';
// FIXME wrap in form
foreach ($pluginlist as $name) {
$ext = Extension::createFromId($name);
$gui = new GuiExtension($ext);
$html .= $gui->render();
}
$html .= '
';
return $html;
}
}