/** * Print results of the download */ function html() { parent::html(); ptln('<div class="pm_info">'); ptln('<h2>' . $this->lang['downloading'] . '</h2>'); if ($this->manager->error) { ptln('<div class="error">' . str_replace("\n", "<br />", $this->manager->error) . '</div>'); } else { if (count($this->downloaded) == 1) { ptln('<p>' . sprintf($this->lang['downloaded'], $this->downloaded[0]) . '</p>'); } else { if (count($this->downloaded)) { // more than one plugin in the download ptln('<p>' . $this->lang['downloads'] . '</p>'); ptln('<ul>'); foreach ($this->downloaded as $plugin) { ptln('<li><div class="li">' . $plugin . '</div></li>', 2); } ptln('</ul>'); } else { // none found in download ptln('<p>' . $this->lang['download_none'] . '</p>'); } } } ptln('</div>'); }
/** * output appropriate html */ function html() { // enable direct access to language strings $this->setupLocale(); $this->_get_plugin_list(); if ($this->handler === null) { $this->handler = new ap_manage($this, $this->plugin); } ptln('<div id="plugin__manager">'); $this->handler->html(); ptln('</div><!-- #plugin_manager -->'); }
function html() { parent::html(); ptln('<div class="pm_info">'); ptln('<h2>' . $this->lang['deleting'] . '</h2>'); if ($this->manager->error) { ptln('<div class="error">' . str_replace("\n", "<br />", $this->manager->error) . '</div>'); } else { ptln('<p>' . sprintf($this->lang['deleted'], $this->plugin) . '</p>'); } ptln('</div>'); }
function html() { // output the standard menu stuff parent::html(); // sanity check if (!$this->manager->plugin) { return; } ptln('<div class="pm_info">'); ptln("<h2>" . $this->manager->getLang('plugin') . " {$this->manager->plugin}</h2>"); // collect pertinent information from the log $installed = $this->plugin_readlog($this->manager->plugin, 'installed'); $source = $this->plugin_readlog($this->manager->plugin, 'url'); $updated = $this->plugin_readlog($this->manager->plugin, 'updated'); if (strrpos($updated, "\n") !== false) { $updated = substr($updated, strrpos($updated, "\n") + 1); } ptln("<dl>", 2); ptln("<dt>" . $this->manager->getLang('source') . '</dt><dd>' . ($source ? $source : $this->manager->getLang('unknown')) . "</dd>", 4); ptln("<dt>" . $this->manager->getLang('installed') . '</dt><dd>' . ($installed ? $installed : $this->manager->getLang('unknown')) . "</dd>", 4); if ($updated) { ptln("<dt>" . $this->manager->getLang('lastupdate') . '</dt><dd>' . $updated . "</dd>", 4); } ptln("</dl>", 2); if (count($this->details) == 0) { ptln("<p>" . $this->manager->getLang('noinfo') . "</p>", 2); } else { ptln("<dl>", 2); if ($this->plugin_info['name']) { ptln("<dt>" . $this->manager->getLang('name') . "</dt><dd>" . $this->out($this->plugin_info['name']) . "</dd>", 4); } if ($this->plugin_info['date']) { ptln("<dt>" . $this->manager->getLang('date') . "</dt><dd>" . $this->out($this->plugin_info['date']) . "</dd>", 4); } if ($this->plugin_info['type']) { ptln("<dt>" . $this->manager->getLang('type') . "</dt><dd>" . $this->out($this->plugin_info['type']) . "</dd>", 4); } if ($this->plugin_info['desc']) { ptln("<dt>" . $this->manager->getLang('desc') . "</dt><dd>" . $this->out($this->plugin_info['desc']) . "</dd>", 4); } if ($this->plugin_info['author']) { ptln("<dt>" . $this->manager->getLang('author') . "</dt><dd>" . $this->manager->email($this->plugin_info['email'], $this->plugin_info['author']) . "</dd>", 4); } if ($this->plugin_info['url']) { ptln("<dt>" . $this->manager->getLang('www') . "</dt><dd>" . $this->manager->external_link($this->plugin_info['url'], '', 'urlextern') . "</dd>", 4); } ptln("</dl>", 2); if (count($this->details) > 1) { ptln("<h3>" . $this->manager->getLang('components') . "</h3>", 2); ptln("<div>", 2); foreach ($this->details as $info) { ptln("<dl>", 4); ptln("<dt>" . $this->manager->getLang('name') . "</dt><dd>" . $this->out($info['name'] . ' ' . $info['compname']) . "</dd>", 6); if (!$this->plugin_info['date']) { ptln("<dt>" . $this->manager->getLang('date') . "</dt><dd>" . $this->out($info['date']) . "</dd>", 6); } if (!$this->plugin_info['type']) { ptln("<dt>" . $this->manager->getLang('type') . "</dt><dd>" . $this->out($info['type']) . "</dd>", 6); } if (!$this->plugin_info['desc']) { ptln("<dt>" . $this->manager->getLang('desc') . "</dt><dd>" . $this->out($info['desc']) . "</dd>", 6); } if (!$this->plugin_info['author']) { ptln("<dt>" . $this->manager->getLang('author') . "</dt><dd>" . $this->manager->email($info['email'], $info['author']) . "</dd>", 6); } if (!$this->plugin_info['url']) { ptln("<dt>" . $this->manager->getLang('www') . "</dt><dd>" . $this->manager->external_link($info['url'], '', 'urlextern') . "</dd>", 6); } ptln("</dl>", 4); } ptln("</div>", 2); } } ptln("</div>"); }