'; $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 = ''; return $html; } /** * Return the HTML for the list of installed plugins * * @return string */ public function tabPlugins() { $html = '
'; $html .= $this->helper->locale_xhtml('intro_plugins'); $html .= '
'; $plugins = (new Local())->getTemplates(); $html .= '
'; $html .= '
'; $html .= ''; $html .= formSecurityToken(false); foreach ($plugins as $ext) { $gui = new GuiExtension($ext); $html .= $gui->render(); } $html .= '
'; $html .= '
'; return $html; } /** * Return the HTML for the list of installed templates * * @return string */ public function tabTemplates() { $html = '
'; $html .= $this->helper->locale_xhtml('intro_templates'); $html .= '
'; $templates = (new Local())->getTemplates(); $html .= '
'; $html .= '
'; $html .= ''; $html .= formSecurityToken(false); foreach ($templates as $ext) { $gui = new GuiExtension($ext); $html .= $gui->render(); } $html .= '
'; $html .= '
'; return $html; } }