From 33e287d20fe291ae92617a2b0292bad8364cd1b2 Mon Sep 17 00:00:00 2001 From: Gregory Roussac Date: Fri, 1 Mar 2013 00:25:19 +0100 Subject: [PATCH] [-] FO : Home w3c validation removed "legend" attribute and target="_blank" --- js/tools.js | 2 ++ modules/blockcms/blockcms.tpl | 2 +- modules/homeslider/homeslider.tpl | 2 +- themes/default/history.tpl | 4 ++-- themes/default/modules/blockcms/blockcms.tpl | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/js/tools.js b/js/tools.js index 30ae1dfed..c6fe64764 100644 --- a/js/tools.js +++ b/js/tools.js @@ -290,4 +290,6 @@ $().ready(function() { $(this).find('.hideOnSubmit').hide(); }); + // attribute target="_blank" is not W3C compliant + $('a._blank').attr('target', '_blank'); }); diff --git a/modules/blockcms/blockcms.tpl b/modules/blockcms/blockcms.tpl index fde04772f..f54725d09 100755 --- a/modules/blockcms/blockcms.tpl +++ b/modules/blockcms/blockcms.tpl @@ -58,7 +58,7 @@ {/if} {/foreach}
  • {l s='Sitemap' mod='blockcms'}
  • - {if $display_poweredby}
  • {l s='Powered by' mod='blockcms'} PrestaShop
  • {/if} + {if $display_poweredby}
  • {l s='Powered by' mod='blockcms'} PrestaShop
  • {/if} {$footer_text} diff --git a/modules/homeslider/homeslider.tpl b/modules/homeslider/homeslider.tpl index 7168d7dbf..e2ba1b74a 100644 --- a/modules/homeslider/homeslider.tpl +++ b/modules/homeslider/homeslider.tpl @@ -46,7 +46,7 @@ var homeslider_pause = {$homeslider.pause}; {if $slide.active}
  • - {$slide.legend|escape:'htmlall':'UTF-8'} + {$slide.legend|escape:'htmlall':'UTF-8'}
  • {/if} diff --git a/themes/default/history.tpl b/themes/default/history.tpl index 6e13492bc..71f6261ce 100644 --- a/themes/default/history.tpl +++ b/themes/default/history.tpl @@ -59,8 +59,8 @@ {if isset($order.order_state)}{$order.order_state|escape:'htmlall':'UTF-8'}{/if} {if (isset($order.invoice) && $order.invoice && isset($order.invoice_number) && $order.invoice_number) && isset($invoiceAllowed) && $invoiceAllowed == true} - {l s='Invoice'} - {l s='PDF'} + {l s='Invoice'} + {l s='PDF'} {else}-{/if} diff --git a/themes/default/modules/blockcms/blockcms.tpl b/themes/default/modules/blockcms/blockcms.tpl index 3ec0d506d..5c35ad684 100644 --- a/themes/default/modules/blockcms/blockcms.tpl +++ b/themes/default/modules/blockcms/blockcms.tpl @@ -58,7 +58,7 @@ {/if} {/foreach}
  • {l s='Sitemap' mod='blockcms'}
  • - {if $display_poweredby}
  • {l s='Powered by' mod='blockcms'} PrestaShop
  • {/if} + {if $display_poweredby}
  • {l s='Powered by' mod='blockcms'} PrestaShop
  • {/if} {$footer_text}