From 5defc39def8c7605d3dc26fbe3c7a1e21125ac56 Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Thu, 1 Aug 2013 14:42:43 +0200 Subject: [PATCH] [+] BO Images / Marketing / Spe. Prices Rules --- .../template/controllers/images/content.tpl | 92 +++++++++++-------- .../template/helpers/options/options.tpl | 5 +- controllers/admin/AdminImagesController.php | 23 +++-- .../admin/AdminMarketingController.php | 7 +- .../AdminSpecificPriceRuleController.php | 15 +-- 5 files changed, 78 insertions(+), 64 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/images/content.tpl b/admin-dev/themes/default/template/controllers/images/content.tpl index 9ad86cfb7..ea48719a0 100644 --- a/admin-dev/themes/default/template/controllers/images/content.tpl +++ b/admin-dev/themes/default/template/controllers/images/content.tpl @@ -26,30 +26,33 @@ {$content} {if isset($display_regenerate)} -

{l s='Regenerate thumbnails'}

- {l s='Regenerates thumbnails for all existing images'}

-
-
- {l s='Please be patient. This can take several minutes.'}
- {l s='Be careful! Manually uploaded thumbnails will be erased and replaced by automatically generated thumbnails.'} -
-
-
-
- {l s='Regenerate thumbnails'}
- -
- + + +
+

{l s='Regenerate thumbnails'}

+ +
+ {l s='Regenerates thumbnails for all existing images'}
+ {l s='Please be patient. This can take several minutes.'}
+ {l s='Be careful! Manually uploaded thumbnails will be erased and replaced by automatically generated thumbnails.'} +
+ +
+ +
+ +
+
{foreach $types AS $k => $type} - - + - -
- -

{l s='Deselect this checkbox only if your server timed out and you need to resume the regeneration.'}

+ +
+ +
+
+ +
+
+
+
+
+ +
-
-
{/if} {if isset($display_move) && $display_move} -

{l s='Move images'}

- {l s='PrestaShop now uses a new storage system for product images. It offers better performance if your shop has a large number of products.'}
-
+

{l s='Move images'}

+ {l s='PrestaShop now uses a new storage system for product images. It offers better performance if your shop has a large number of products.'} + {if $safe_mode} -
+
{l s='PrestaShop has detected that your server configuration is not compatible with the new storage system (directive "safe_mode" is activated). You should therefore continue to use the existing system.'}
{else}
- {l s='Move images'}
- {l s='You can choose to keep your images stored in the previous system. There\'s nothing wrong with that.'}
- {l s='You can also decide to move your images to the new storage system. In this case, click on the "Move images" button below. Please be patient. This can take several minutes.'} -

-
  +

{l s='Move images'}

+ +
+ {l s='You can choose to keep your images stored in the previous system. There\'s nothing wrong with that.'}
+ {l s='You can also decide to move your images to the new storage system. In this case, click on the "Move images" button below. Please be patient. This can take several minutes.'}
{l s='After moving all of your product images, set the "Use the legacy image filesystem" option above to "No" for best performance.'}
-
+ +
{/if} diff --git a/admin-dev/themes/default/template/helpers/options/options.tpl b/admin-dev/themes/default/template/helpers/options/options.tpl index 764470819..5a81381dd 100644 --- a/admin-dev/themes/default/template/helpers/options/options.tpl +++ b/admin-dev/themes/default/template/helpers/options/options.tpl @@ -75,7 +75,7 @@ {/if} {block name="label"} {if isset($field['title']) && isset($field['hint'])} -