aboutsummaryrefslogtreecommitdiffstats
path: root/admin/plugins_new.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-03-31 22:41:50 +0000
committerpatdenice <patdenice@piwigo.org>2010-03-31 22:41:50 +0000
commitac283e2ec000ddcff62ae1e0e6262b9621137b76 (patch)
tree27815a7c6b1cccb70c8b57f7843fbf2f15ef1bf0 /admin/plugins_new.php
parent596a3a1abda984fef100e85f479014405acb8842 (diff)
Feature 1557: New design for "new plugins" tab.
git-svn-id: http://piwigo.org/svn/trunk@5515 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/plugins_new.php20
1 files changed, 6 insertions, 14 deletions
diff --git a/admin/plugins_new.php b/admin/plugins_new.php
index 8fa3e0ac9..8f19104b6 100644
--- a/admin/plugins_new.php
+++ b/admin/plugins_new.php
@@ -105,17 +105,8 @@ if ($plugins->get_server_plugins(true))
foreach($plugins->server_plugins as $plugin)
{
- list($date, ) = explode(' ', $plugin['revision_date']);
-
- $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'];
+ $ext_desc = trim($plugin['extension_description'], " \n\r");
+ list($small_desc) = explode("\n", wordwrap($ext_desc, 200));
$url_auto_install = htmlentities($base_url)
. '&amp;revision=' . $plugin['revision_id']
@@ -124,13 +115,14 @@ if ($plugins->get_server_plugins(true))
;
$template->append('plugins', array(
+ 'ID' => $plugin['extension_id'],
'EXT_NAME' => $plugin['extension_name'],
'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin['extension_id'],
- 'EXT_DESC' => $ext_desc,
+ 'SMALL_DESC' => trim($small_desc, " \r\n"),
+ 'BIG_DESC' => $ext_desc,
'VERSION' => $plugin['revision_name'],
- 'DATE' => $date,
- 'VER_DESC' => $rev_desc,
'AUTHOR' => $plugin['author_name'],
+ 'DOWNLOADS' => $plugin['revision_nb_downloads'],
'URL_INSTALL' => $url_auto_install,
'URL_DOWNLOAD' => $plugin['download_url'] . '&amp;origin=piwigo_download'));
}