diff options
author | patdenice <patdenice@piwigo.org> | 2009-02-13 20:49:03 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-02-13 20:49:03 +0000 |
commit | 290f2c1d39d1c47d48ba4e6a6d347459975e8b0f (patch) | |
tree | e330eef287b07298d5acf37c9829beeacc16fb85 /admin/plugins_new.php | |
parent | 83d87c3d02844bd6fab391923e04913f35d99359 (diff) |
- Show number of downloads in plugins list.
- Allow to sort plugins by number of downloads.
- Fix plugin revision URL (no more revision_view in PEM).
git-svn-id: http://piwigo.org/svn/trunk@3143 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/plugins_new.php')
-rw-r--r-- | admin/plugins_new.php | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/admin/plugins_new.php b/admin/plugins_new.php index 5a0d70190..56b09d097 100644 --- a/admin/plugins_new.php +++ b/admin/plugins_new.php @@ -83,7 +83,8 @@ $template->assign('order_options', $link.'date' => l10n('Post date'), $link.'revision' => l10n('plugins_revisions'), $link.'name' => l10n('Name'), - $link.'author' => l10n('Author'))); + $link.'author' => l10n('Author'), + $link.'downloads' => l10n('Number of downloads'))); $template->assign('order_selected', $link.$order); // +-----------------------------------------------------------------------+ @@ -97,10 +98,15 @@ if ($plugins->get_server_plugins(true)) { list($date, ) = explode(' ', $plugin['revision_date']); - $ver_desc = sprintf(l10n('plugins_description'), - $plugin['revision_name'], - $date, - $plugin['revision_description']); + $ext_desc = '<i>'.l10n('Downloads').':</i> '.$plugin['extension_nb_downloads']."\r\n" + ."\r\n" + .$plugin['extension_description']; + + $rev_desc = '<i>'.l10n('Version').':</i> '.$plugin['revision_name']."\r\n" + .'<i>'.l10n('Released on').':</i> '.$date."\r\n" + .'<i>'.l10n('Downloads').':</i> '.$plugin['revision_nb_downloads']."\r\n" + ."\r\n" + .$plugin['revision_description']; $url_auto_install = htmlentities($base_url) . '&revision=' . $plugin['revision_id'] @@ -109,11 +115,10 @@ if ($plugins->get_server_plugins(true)) $template->append('plugins', array( 'EXT_NAME' => $plugin['extension_name'], 'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin['extension_id'], - 'EXT_DESC' => $plugin['extension_description'], + 'EXT_DESC' => $ext_desc, 'VERSION' => $plugin['revision_name'], - 'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin['revision_id'], 'DATE' => $date, - 'VER_DESC' => $ver_desc, + 'VER_DESC' => $rev_desc, 'AUTHOR' => $plugin['author_name'], 'URL_INSTALL' => $url_auto_install, 'URL_DOWNLOAD' => $plugin['download_url'] . '&origin=piwigo_download')); |