[-] FO : W3C fix

This commit is contained in:
gPoulain
2012-04-17 15:50:00 +00:00
parent 55da95aad3
commit 0a1d6a2e70
10 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -78,7 +78,7 @@
#cart_block #cart_block_total { #cart_block #cart_block_total {
float:right float:right
} }
#cart_block #cart_block_shipping_cost {font-weight:normal} #cart_block #cart_block_shipping_cost {font-weight:bold}
#cart_block #cart-buttons .button_small {display:none;} #cart_block #cart-buttons .button_small {display:none;}
#cart_block #cart-buttons #button_order_cart { #cart_block #cart-buttons #button_order_cart {
+5 -6
View File
@@ -32,8 +32,8 @@
var CUSTOMIZE_TEXTFIELD = {$CUSTOMIZE_TEXTFIELD}; var CUSTOMIZE_TEXTFIELD = {$CUSTOMIZE_TEXTFIELD};
var customizationIdMessage = '{l s='Customization #' mod='blockcart' js=1}'; var customizationIdMessage = '{l s='Customization #' mod='blockcart' js=1}';
var removingLinkText = '{l s='remove this product from my cart' mod='blockcart' js=1}'; var removingLinkText = '{l s='remove this product from my cart' mod='blockcart' js=1}';
var freeShippingTranslation = '<b>{l s='Free shipping!' mod='blockcart' js=1}</b>'; var freeShippingTranslation = '{l s='Free shipping!' mod='blockcart' js=1}';
var freeProductTranslation = '<b>{l s='Free!' mod='blockcart' js=1}</b>'; var freeProductTranslation = '{l s='Free!' mod='blockcart' js=1}';
var delete_txt = '{l s='Delete' mod='blockcart'}'; var delete_txt = '{l s='Delete' mod='blockcart'}';
var img_dir = '{$img_dir}'; var img_dir = '{$img_dir}';
</script> </script>
@@ -106,10 +106,9 @@ var img_dir = '{$img_dir}';
</dl> </dl>
{/if} {/if}
<p {if $products}class="hidden"{/if} id="cart_block_no_products">{l s='No products' mod='blockcart'}</p> <p {if $products}class="hidden"{/if} id="cart_block_no_products">{l s='No products' mod='blockcart'}</p>
{if $discounts|@count > 0}
<table id="vouchers"> <table id="vouchers">
<tbody> <tbody>
{if $discounts|@count > 0}
{foreach from=$discounts item=discount} {foreach from=$discounts item=discount}
{if $discount.value_real > 0} {if $discount.value_real > 0}
<tr class="bloc_cart_voucher" id="bloc_cart_voucher_{$discount.id_discount}"> <tr class="bloc_cart_voucher" id="bloc_cart_voucher_{$discount.id_discount}">
@@ -120,10 +119,10 @@ var img_dir = '{$img_dir}';
</tr> </tr>
{/if} {/if}
{/foreach} {/foreach}
{/if}
</tbody> </tbody>
</table> </table>
{/if}
<p id="cart-prices"> <p id="cart-prices">
<span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span>
<span>{l s='Shipping' mod='blockcart'}</span> <span>{l s='Shipping' mod='blockcart'}</span>
-1
View File
@@ -30,6 +30,5 @@
<p>{l s='Our hotline' mod='blockcontact'}<br />{l s='is available 24/7' mod='blockcontact'}</p> <p>{l s='Our hotline' mod='blockcontact'}<br />{l s='is available 24/7' mod='blockcontact'}</p>
{if $telnumber != ''}<p class="tel">{l s='Phone:' mod='blockcontact'}{$telnumber}</p>{/if} {if $telnumber != ''}<p class="tel">{l s='Phone:' mod='blockcontact'}{$telnumber}</p>{/if}
{if $email != ''}<a href="mailto:{$email}">{l s='Contact' mod='blockcontact'}<br/> {l s='our hotline' mod='blockcontact'}</a>{/if} {if $email != ''}<a href="mailto:{$email}">{l s='Contact' mod='blockcontact'}<br/> {l s='our hotline' mod='blockcontact'}</a>{/if}
</form>
</div> </div>
</div> </div>
@@ -23,7 +23,7 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
{if $infos|@count > 0}
<!-- MODULE Block reinsurance --> <!-- MODULE Block reinsurance -->
<div id="reinsurance_block" class="clearfix"> <div id="reinsurance_block" class="clearfix">
<ul class="width{$nbblocks}"> <ul class="width{$nbblocks}">
@@ -32,4 +32,5 @@
{/foreach} {/foreach}
</ul> </ul>
</div> </div>
<!-- /MODULE Block reinsurance --> <!-- /MODULE Block reinsurance -->
{/if}
+1 -1
View File
@@ -25,5 +25,5 @@
*} *}
<li id="left_share_fb"> <li id="left_share_fb">
<a href="http://www.facebook.com/sharer.php?u={$product_link}&t={$product_title}" target="blank">{l s='Share on Facebook' mod='blocksharefb'}</a> <a href="http://www.facebook.com/sharer.php?u={$product_link}&amp;t={$product_title}" class="js-new-window">{l s='Share on Facebook' mod='blocksharefb'}</a>
</li> </li>
+2 -2
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<module> <module>
<name>favoriteproducts</name> <name>favoriteproducts</name>
<displayName><![CDATA[Favorite Products]]></displayName> <displayName><![CDATA[Produits favoris]]></displayName>
<version><![CDATA[1]]></version> <version><![CDATA[1]]></version>
<description><![CDATA[Display a page with the favorite products of the customer]]></description> <description><![CDATA[Affiche une page avec les produits favoris de l&#039;utilisateur]]></description>
<author><![CDATA[PrestaShop]]></author> <author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab> <tab><![CDATA[front_office_features]]></tab>
<is_configurable>0</is_configurable> <is_configurable>0</is_configurable>
@@ -50,6 +50,7 @@ class FavoriteProducts extends Module
|| !$this->registerHook('displayMyAccountBlock') || !$this->registerHook('displayMyAccountBlock')
|| !$this->registerHook('displayCustomerAccount') || !$this->registerHook('displayCustomerAccount')
|| !$this->registerHook('displayLeftColumnProduct') || !$this->registerHook('displayLeftColumnProduct')
|| !$this->registerHook('extraLeft')
|| !$this->registerHook('displayHeader')) || !$this->registerHook('displayHeader'))
return false; return false;
+1 -1
View File
@@ -44,7 +44,7 @@
<ul id="homeslider"> <ul id="homeslider">
{foreach from=$homeslider_slides item=slide} {foreach from=$homeslider_slides item=slide}
{if $slide.active} {if $slide.active}
<li><a href="{$slide.url}" title="{$slide.description}"><img src="{$smarty.const._MODULE_DIR_}/homeslider/images/{$slide.image}" alt="{$slide.legend}" title="{$slide.description}" height="{$homeslider.height}" width="{$homeslider.width}"></a></li> <li><a href="{$slide.url}" title="{$slide.description}"><img src="{$smarty.const._MODULE_DIR_}/homeslider/images/{$slide.image}" alt="{$slide.legend}" title="{$slide.description}" height="{$homeslider.height}" width="{$homeslider.width}" /></a></li>
{/if} {/if}
{/foreach} {/foreach}
</ul> </ul>
+9
View File
@@ -238,4 +238,13 @@ $(document).ready(function() {
$(this).attr('eventCheckboxChange', true); $(this).attr('eventCheckboxChange', true);
} }
} }
});
// Use it to simulate target blank link
$(function(){
$('a.js-new-window').click(function(){
window.open(this.href);
return false;
});
}); });
+1 -1
View File
@@ -299,7 +299,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
{/if} {/if}
{/foreach} {/foreach}
</ul> </ul>
<input type="hidden" id="color_pick_hidden" name="{$groupName}" value="{$default_colorpicker}" > <input type="hidden" id="color_pick_hidden" name="{$groupName}" value="{$default_colorpicker}" />
{elseif ($group.group_type == 'radio')} {elseif ($group.group_type == 'radio')}
{foreach from=$group.attributes key=id_attribute item=group_attribute} {foreach from=$group.attributes key=id_attribute item=group_attribute}
<input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if}"> <input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if}">