From 37f9d31c0a487ecef1b6cb42b1bbb4ac6dc675de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 31 Dec 2012 12:06:28 +0100 Subject: [PATCH] [-] FO: Fix retrocompatibility for modules and old themes --- .../blockbestsellers-home.tpl | 4 +- modules/blockbestsellers/blockbestsellers.tpl | 5 +- modules/blockcart/blockcart.css | 4 +- modules/blockcart/blockcart.tpl | 4 +- modules/blockcategories/blockcategories.tpl | 2 +- .../blockcategories_footer.tpl | 2 +- modules/blockcms/blockcms.tpl | 4 +- modules/blockcontact/blockcontact.css | 2 +- modules/blockcontact/blockcontact.tpl | 2 +- .../blockcontactinfos/blockcontactinfos.tpl | 2 +- modules/blocklayered/blocklayered.tpl | 2 +- modules/blocklink/blocklink.tpl | 4 +- .../blockmanufacturer/blockmanufacturer.tpl | 2 +- modules/blockmyaccount/blockmyaccount.tpl | 2 +- .../blockmyaccountfooter/blockmyaccount.css | 6 +- .../blockmyaccountfooter.tpl | 2 +- modules/blocknewproducts/blocknewproducts.css | 2 +- modules/blocknewproducts/blocknewproducts.tpl | 4 +- modules/blocknewsletter/blocknewsletter.css | 2 +- .../views/templates/hook/blocknewsletter.tpl | 2 +- modules/blockrss/blockrss.tpl | 2 +- modules/blocksearch/blocksearch.tpl | 2 +- modules/blocksocial/blocksocial.tpl | 2 +- modules/blockspecials/blockspecials.css | 4 +- modules/blockspecials/blockspecials.tpl | 4 +- modules/blockstore/blockstore.tpl | 2 +- modules/blocksupplier/blocksupplier.tpl | 2 +- modules/blocktags/blocktags.tpl | 2 +- modules/blockviewed/blockviewed.css | 4 +- modules/blockviewed/blockviewed.tpl | 4 +- modules/blockwishlist/blockwishlist.tpl | 4 +- modules/homefeatured/homefeatured.css | 2 +- modules/homefeatured/homefeatured.tpl | 4 +- modules/productcomments/productcomments.css | 2 +- modules/productcomments/productcomments.tpl | 4 +- themes/default/css/global.css | 65 ++--- .../blockbestsellers-home.tpl | 56 ++++ .../blockbestsellers/blockbestsellers.tpl | 52 ++++ .../default/modules/blockcart/blockcart.tpl | 178 ++++++++++++ .../blockcategories/blockcategories.tpl | 48 ++++ .../blockcategories_footer.tpl | 55 ++++ .../blockcategories/category-tree-branch.tpl | 39 +++ themes/default/modules/blockcms/blockcms.tpl | 66 +++++ .../modules/blockcontact/blockcontact.tpl | 33 +++ .../blockcontactinfos/blockcontactinfos.tpl | 37 +++ .../modules/blocklayered/blocklayered.tpl | 257 ++++++++++++++++++ .../default/modules/blocklink/blocklink.tpl | 43 +++ .../blockmanufacturer/blockmanufacturer.tpl | 57 ++++ .../modules/blockmyaccount/blockmyaccount.tpl | 42 +++ .../blockmyaccountfooter.tpl | 42 +++ .../blocknewproducts/blocknewproducts.tpl | 50 ++++ .../blocknewsletter/blocknewsletter.tpl | 51 ++++ themes/default/modules/blockrss/blockrss.tpl | 41 +++ .../modules/blocksearch/blocksearch.tpl | 41 +++ .../modules/blocksocial/blocksocial.tpl | 34 +++ .../modules/blocksocial/blockspecials.tpl | 61 +++++ .../modules/blockspecials/blockspecials.tpl | 61 +++++ .../default/modules/blockstore/blockstore.tpl | 36 +++ .../modules/blocksupplier/blocksupplier.tpl | 59 ++++ .../default/modules/blocktags/blocktags.tpl | 39 +++ .../modules/blockviewed/blockviewed.tpl | 44 +++ .../modules/blockwishlist/blockwishlist.tpl | 65 +++++ .../modules/homefeatured/homefeatured.tpl | 66 +++++ .../productcomments/productcomments.tpl | 148 ++++++++++ 64 files changed, 1873 insertions(+), 96 deletions(-) create mode 100644 themes/default/modules/blockbestsellers/blockbestsellers-home.tpl create mode 100644 themes/default/modules/blockbestsellers/blockbestsellers.tpl create mode 100644 themes/default/modules/blockcart/blockcart.tpl create mode 100644 themes/default/modules/blockcategories/blockcategories.tpl create mode 100644 themes/default/modules/blockcategories/blockcategories_footer.tpl create mode 100644 themes/default/modules/blockcategories/category-tree-branch.tpl create mode 100644 themes/default/modules/blockcms/blockcms.tpl create mode 100644 themes/default/modules/blockcontact/blockcontact.tpl create mode 100644 themes/default/modules/blockcontactinfos/blockcontactinfos.tpl create mode 100644 themes/default/modules/blocklayered/blocklayered.tpl create mode 100644 themes/default/modules/blocklink/blocklink.tpl create mode 100644 themes/default/modules/blockmanufacturer/blockmanufacturer.tpl create mode 100644 themes/default/modules/blockmyaccount/blockmyaccount.tpl create mode 100644 themes/default/modules/blockmyaccountfooter/blockmyaccountfooter.tpl create mode 100644 themes/default/modules/blocknewproducts/blocknewproducts.tpl create mode 100644 themes/default/modules/blocknewsletter/blocknewsletter.tpl create mode 100644 themes/default/modules/blockrss/blockrss.tpl create mode 100644 themes/default/modules/blocksearch/blocksearch.tpl create mode 100644 themes/default/modules/blocksocial/blocksocial.tpl create mode 100644 themes/default/modules/blocksocial/blockspecials.tpl create mode 100644 themes/default/modules/blockspecials/blockspecials.tpl create mode 100644 themes/default/modules/blockstore/blockstore.tpl create mode 100644 themes/default/modules/blocksupplier/blocksupplier.tpl create mode 100644 themes/default/modules/blocktags/blocktags.tpl create mode 100644 themes/default/modules/blockviewed/blockviewed.tpl create mode 100644 themes/default/modules/blockwishlist/blockwishlist.tpl create mode 100644 themes/default/modules/homefeatured/homefeatured.tpl create mode 100644 themes/default/modules/productcomments/productcomments.tpl diff --git a/modules/blockbestsellers/blockbestsellers-home.tpl b/modules/blockbestsellers/blockbestsellers-home.tpl index 993016294..2cc6e31ce 100644 --- a/modules/blockbestsellers/blockbestsellers-home.tpl +++ b/modules/blockbestsellers/blockbestsellers-home.tpl @@ -25,7 +25,7 @@
-

{l s='Top sellers' mod='blockbestsellers'}

+

{l s='Top sellers' mod='blockbestsellers'}

{if isset($best_sellers) AND $best_sellers}
{assign var='liHeight' value=320} @@ -36,7 +36,7 @@
    {foreach from=$best_sellers item=product name=myLoop}
  • -

    {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}

    +
    {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}
    {$product.name|escape:html:'UTF-8'}
    diff --git a/modules/blockbestsellers/blockbestsellers.tpl b/modules/blockbestsellers/blockbestsellers.tpl index 4446cc7a3..aa1bbee20 100644 --- a/modules/blockbestsellers/blockbestsellers.tpl +++ b/modules/blockbestsellers/blockbestsellers.tpl @@ -18,14 +18,15 @@ * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA -* @copyright 2007-2012 PrestaShop SA +* @copyright 2007-2012 PrestaShop SA + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}
    -

    {l s='Top sellers' mod='blockbestsellers'}

    +

    {l s='Top sellers' mod='blockbestsellers'}

    {if $best_sellers|@count > 0}
      diff --git a/modules/blockcart/blockcart.css b/modules/blockcart/blockcart.css index 7938aabe9..04cf5f4d0 100644 --- a/modules/blockcart/blockcart.css +++ b/modules/blockcart/blockcart.css @@ -1,7 +1,7 @@ /* Special style for block cart*/ #left_column #cart_block, #right_column #cart_block { } -#header #cart_block .title_block { +#header #cart_block .title_block, #header #cart_block h4 { display: none; } #header #cart_block { @@ -22,7 +22,7 @@ background:#eee } #cart_block.cart_block_hover {display:block} -#cart_block .title_block span { +#cart_block .title_block span, #header #cart_block h4 { float: right; padding-left: 10px; text-transform: none; diff --git a/modules/blockcart/blockcart.tpl b/modules/blockcart/blockcart.tpl index 77b047bce..90ed3814e 100644 --- a/modules/blockcart/blockcart.tpl +++ b/modules/blockcart/blockcart.tpl @@ -43,13 +43,13 @@ var delete_txt = '{l s='Delete' mod='blockcart' js=1}';
      -

      +

      {l s='Cart' mod='blockcart'} {if $ajax_allowed}     {/if} -

      +

      diff --git a/modules/blockcategories/blockcategories.tpl b/modules/blockcategories/blockcategories.tpl index 2ea4775ee..8369f6824 100644 --- a/modules/blockcategories/blockcategories.tpl +++ b/modules/blockcategories/blockcategories.tpl @@ -25,7 +25,7 @@
      -

      {l s='Categories' mod='blockcategories'}

      +

      {l s='Categories' mod='blockcategories'}

        {foreach from=$blockCategTree.children item=child name=blockCategTree} diff --git a/modules/blockcategories/blockcategories_footer.tpl b/modules/blockcategories/blockcategories_footer.tpl index 681f87130..a67db7bfc 100644 --- a/modules/blockcategories/blockcategories_footer.tpl +++ b/modules/blockcategories/blockcategories_footer.tpl @@ -25,7 +25,7 @@