Skip to content

Commit

Permalink
Feature 1557: Correction for number of downloads.
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@5516 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Mar 31, 2010
1 parent ac283e2 commit 16721f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/plugins_new.php
Expand Up @@ -122,7 +122,7 @@
'BIG_DESC' => $ext_desc,
'VERSION' => $plugin['revision_name'],
'AUTHOR' => $plugin['author_name'],
'DOWNLOADS' => $plugin['revision_nb_downloads'],
'DOWNLOADS' => $plugin['extension_nb_downloads'],
'URL_INSTALL' => $url_auto_install,
'URL_DOWNLOAD' => $plugin['download_url'] . '&origin=piwigo_download'));
}
Expand Down
11 changes: 7 additions & 4 deletions admin/themes/default/template/plugins_new.tpl
Expand Up @@ -29,6 +29,8 @@ jQuery().ready(function(){ldelim}
<h2>{'Plugins'|@translate}</h2>
</div>

<fieldset>
<legend></legend>
{foreach from=$plugins item=plugin name=plugins_loop}
<div class="pluginBox" id="plugin_{$plugin.ID}"}>
<table>
Expand All @@ -37,10 +39,10 @@ jQuery().ready(function(){ldelim}
{if $plugin.BIG_DESC != $plugin.SMALL_DESC}
<td id="desc_{$plugin.ID}" class="pluginDesc">
<span id="smalldesc_{$plugin.ID}">
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif">{$plugin.SMALL_DESC}...
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="">{$plugin.SMALL_DESC}...
</span>
<span id="bigdesc_{$plugin.ID}" style="display:none;">
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif">{$plugin.BIG_DESC|@nl2br}<br>&nbsp;
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="">{$plugin.BIG_DESC|@nl2br}<br>&nbsp;
</span>
</td>
{else}
Expand All @@ -53,12 +55,13 @@ jQuery().ready(function(){ldelim}
| <a href="{$plugin.URL_DOWNLOAD}">{'Download'|@translate}</a>
</td>
<td>
<em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em>
{'Version'|@translate} {$plugin.VERSION}
| {'By %s'|@translate|@sprintf:$plugin.AUTHOR}
| <a class="externalLink" href="{$plugin.EXT_URL}">{'Visit plugin site'|@translate}</a>
<em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em>
</td>
</tr>
</table>
</div>
{/foreach}
{/foreach}
</fieldset>

0 comments on commit 16721f3

Please sign in to comment.