// fix product list + facebook block HTML5 version WIP

This commit is contained in:
Kevin Granger
2013-12-04 19:31:02 +01:00
parent ec8ca92e67
commit 04d2ff59ee
2 changed files with 26 additions and 11 deletions
+24 -8
View File
@@ -1,10 +1,26 @@
{if $facebookurl != ''}
<div id="facebook_block" class="col-xs-4">
<h4 >{l s='Follow us on facebook' mod='blockfacebook'}</h4>
<div class="facebook-fanbox">
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2F{$facebookurl|escape:'html':'UTF-8'}&amp;width=235&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=false" scrolling="no" frameborder="0" style="border:none; width:100%; height:200px;" allowTransparency="true"></iframe>
</div>
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=334341610034299";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div id="facebook_block" class="col-xs-4">
<h4 >{l s='Follow us on facebook' mod='blockfacebook'}</h4>
<div class="facebook-fanbox">
<div
class="fb-like-box"
data-href="http://www.facebook.com/{$facebookurl|escape:'html':'UTF-8'}"
data-colorscheme="light"
data-show-faces="true"
data-header="false"
data-stream="false"
data-show-border="false">
</div>
</div>
{/if}
</div>
{/if}
+2 -3
View File
@@ -151,14 +151,13 @@
href="{$link->getPageLink('cart',false, NULL, "add=1&amp;id_product={$product.id_product|intval}&amp;token={$static_token}", false)|escape:'html'}"
rel="nofollow"
title="{l s='Add to cart'}"
data-id-product="{$product.id_product|intval}"
token={$static_token}", false)|escape:'html'}">
data-id-product="{$product.id_product|intval}">
<span>{l s='Add to cart'}</span>
</a>
{else}
<a
class="button ajax_add_to_cart_button btn btn-default"
href="{$link->getPageLink('cart',false, NULL, "add=1&amp;id_product={$product.id_product|intval}", false)|escape:'html'}"
href="{$link->getPageLink('cart',false, NULL, 'add=1&amp;id_product={$product.id_product|intval}', false)|escape:'html'}"
rel="nofollow"
title="{l s='Add to cart'}"
data-id-product="{$product.id_product|intval}">