From 62c3e09cc64076129a4d33b7af8bd7abd5cb792c Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Tue, 31 Jul 2012 09:30:30 +0000 Subject: [PATCH] [+] BO : added new cool feature git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16619 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/default/css/modules.css | 2 +- .../template/controllers/modules/list.tpl | 31 ++++++++++--- classes/module/Module.php | 32 ++++++++++++-- controllers/admin/AdminModulesController.php | 44 ++++++++++++------- 4 files changed, 81 insertions(+), 28 deletions(-) diff --git a/admin-dev/themes/default/css/modules.css b/admin-dev/themes/default/css/modules.css index 2f7ac9d5d..8338b1f3f 100644 --- a/admin-dev/themes/default/css/modules.css +++ b/admin-dev/themes/default/css/modules.css @@ -232,6 +232,7 @@ form#product, form#access_form{ background-color:#ebedf4; border:1px solid #cc #moduleContainer .moduleDesc p.desc { color:#666; font-size:12px; display:block; clear:both;} #moduleContainer .setup {background-color:#6db300; font-size:10px; color:#fff; text-transform:uppercase; position:relative; left:10px; padding:0px 4px; display: inline-block; border-radius:3px;} #moduleContainer .setup.non-install { background-color:#ec7000;} +#moduleContainer .setup.top-ranking { background-color: #ec2b25;} #moduleContainer .setup.off{ background-color:#ccc;} #moduleContainer .row-actions-module span { padding-right:5px;} #moduleContainer .row-actions-module span a { font-size:12px;} @@ -243,7 +244,6 @@ form#product, form#access_form{ background-color:#ebedf4; border:1px solid #cc #moduleContainer .moduleName {font-size:12px; color:#3A6EA7;font-weight:bold;} #moduleContainer .moduleFavDesc { font-family:Georgia; font-style:italic; color:#666;} - /*FOOTER*/ #footer {height:40px; font-size:12px;clear:both;font-size:0.9em;color:#666666} #footer .footer_link, #footer .footer_link:hover {color:#D41958;} diff --git a/admin-dev/themes/default/template/controllers/modules/list.tpl b/admin-dev/themes/default/template/controllers/modules/list.tpl index bbf5fd85e..d2ef57600 100644 --- a/admin-dev/themes/default/template/controllers/modules/list.tpl +++ b/admin-dev/themes/default/template/controllers/modules/list.tpl @@ -48,7 +48,16 @@
-

{$module->displayName}{if isset($module->id) && $module->id gt 0}{l s='Installed'}{else}{l s='Not installed'}{/if}

+

{$module->displayName} + {if isset($module->id) && $module->id gt 0} + {l s='Installed'} + {else} + {l s='Not installed'} + {/if} + {if isset($module->type) && $module->type == 'addonsTopRanking'} + {l s='Top Ranking'} + {/if} +