Ignore:
Timestamp:
Apr 1, 2010, 12:41:50 AM (15 years ago)
Author:
patdenice
Message:

Feature 1557: New design for "new plugins" tab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_new.php

    r5406 r5515  
    106106  foreach($plugins->server_plugins as $plugin)
    107107  {
    108     list($date, ) = explode(' ', $plugin['revision_date']);
    109 
    110     $ext_desc = '<i>'.l10n('Downloads').':</i> '.$plugin['extension_nb_downloads']."\r\n"
    111       ."\r\n"
    112       .$plugin['extension_description'];
    113 
    114     $rev_desc = '<i>'.l10n('Version').':</i> '.$plugin['revision_name']."\r\n"
    115       .'<i>'.l10n('Released on').':</i> '.$date."\r\n"
    116       .'<i>'.l10n('Downloads').':</i> '.$plugin['revision_nb_downloads']."\r\n"
    117       ."\r\n"
    118       .$plugin['revision_description'];
     108    $ext_desc = trim($plugin['extension_description'], " \n\r");
     109    list($small_desc) = explode("\n", wordwrap($ext_desc, 200));
    119110
    120111    $url_auto_install = htmlentities($base_url)
     
    125116
    126117    $template->append('plugins', array(
     118      'ID' => $plugin['extension_id'],
    127119      'EXT_NAME' => $plugin['extension_name'],
    128120      'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin['extension_id'],
    129       'EXT_DESC' => $ext_desc,
     121      'SMALL_DESC' => trim($small_desc, " \r\n"),
     122      'BIG_DESC' => $ext_desc,
    130123      'VERSION' => $plugin['revision_name'],
    131       'DATE' => $date,
    132       'VER_DESC' => $rev_desc,
    133124      'AUTHOR' => $plugin['author_name'],
     125      'DOWNLOADS' => $plugin['revision_nb_downloads'],
    134126      'URL_INSTALL' => $url_auto_install,
    135127      'URL_DOWNLOAD' => $plugin['download_url'] . '&amp;origin=piwigo_download'));
Note: See TracChangeset for help on using the changeset viewer.