Example #1
0
 /**
  * Generate a list of links for extensions
  *
  * @param array $ext The extensions
  * @return string The HTML code
  */
 function make_linklist($ext)
 {
     $return = '';
     foreach ($ext as $link) {
         $return .= '<bdi><a href="' . $this->gui->tabURL('search', array('q' => 'ext:' . $link)) . '">' . hsc($link) . '</a></bdi>, ';
     }
     return rtrim($return, ', ');
 }
Example #2
0
 /**
  * Render HTML output
  */
 public function html()
 {
     ptln('<h1>' . $this->getLang('menu') . '</h1>');
     ptln('<div id="extension__manager">');
     $this->gui->tabNavigation();
     switch ($this->gui->currentTab()) {
         case 'search':
             $this->gui->tabSearch();
             break;
         case 'templates':
             $this->gui->tabTemplates();
             break;
         case 'install':
             $this->gui->tabInstall();
             break;
         case 'plugins':
         default:
             $this->gui->tabPlugins();
     }
     ptln('</div>');
 }