// fix product list + facebook block HTML5 version WIP
This commit is contained in:
@@ -1,10 +1,26 @@
|
|||||||
{if $facebookurl != ''}
|
{if $facebookurl != ''}
|
||||||
<div id="facebook_block" class="col-xs-4">
|
<div id="fb-root"></div>
|
||||||
<h4 >{l s='Follow us on facebook' mod='blockfacebook'}</h4>
|
<script>
|
||||||
<div class="facebook-fanbox">
|
(function(d, s, id) {
|
||||||
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2F{$facebookurl|escape:'html':'UTF-8'}&width=235&height=290&colorscheme=light&show_faces=true&header=false&stream=false&show_border=false" scrolling="no" frameborder="0" style="border:none; width:100%; height:200px;" allowTransparency="true"></iframe>
|
var js, fjs = d.getElementsByTagName(s)[0];
|
||||||
</div>
|
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>
|
</div>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -151,14 +151,13 @@
|
|||||||
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}"
|
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}"
|
||||||
rel="nofollow"
|
rel="nofollow"
|
||||||
title="{l s='Add to cart'}"
|
title="{l s='Add to cart'}"
|
||||||
data-id-product="{$product.id_product|intval}"
|
data-id-product="{$product.id_product|intval}">
|
||||||
token={$static_token}", false)|escape:'html'}">
|
|
||||||
<span>{l s='Add to cart'}</span>
|
<span>{l s='Add to cart'}</span>
|
||||||
</a>
|
</a>
|
||||||
{else}
|
{else}
|
||||||
<a
|
<a
|
||||||
class="button ajax_add_to_cart_button btn btn-default"
|
class="button ajax_add_to_cart_button btn btn-default"
|
||||||
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}"
|
href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html'}"
|
||||||
rel="nofollow"
|
rel="nofollow"
|
||||||
title="{l s='Add to cart'}"
|
title="{l s='Add to cart'}"
|
||||||
data-id-product="{$product.id_product|intval}">
|
data-id-product="{$product.id_product|intval}">
|
||||||
|
|||||||
Reference in New Issue
Block a user