aboutsummaryrefslogtreecommitdiffstats
path: root/admin/plugins_new.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-02-13 21:03:02 +0000
committerpatdenice <patdenice@piwigo.org>2009-02-13 21:03:02 +0000
commit35e9af66be0b6da3055d032123bd38100b58bca9 (patch)
treeae42252fa3a0c93a9bcfb9880dc4a2ba2b05019b /admin/plugins_new.php
parent164fd3a280f22a06153c6497e423199a0a97f7a0 (diff)
merge r3143 from trunk to branch 2.0
- 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/branches/2.0@3144 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/plugins_new.php21
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)
. '&amp;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'] . '&amp;origin=piwigo_download'));