bebeboutik/modules/trustedshopsbbb/views/rich_snippets_2.tpl

44 lines
2.0 KiB
Smarty
Raw Normal View History

2017-02-27 13:20:46 +01:00
<div id="customCheckoutDiv2" style="margin-bottom: 15px;"></div>
2017-02-24 17:28:19 +01:00
<script type="text/javascript">
2017-02-24 18:07:55 +01:00
{literal}(function () {
var _tsid = '{/literal}{$tsId}{literal}';
_tsConfig = {
'yOffset': '0', /* offset from page bottom */
'variant': 'custom_reviews', /* text, default, small, reviews, custom, custom_reviews */
'customElementId': 'customCheckoutDiv2', /* required for variants custom and custom_reviews */
'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
'customBadgeWidth': '200', /* for custom variants: 40 - 90 (in pixels) */
'customBadgeHeight': '70', /* for custom variants: 40 - 90 (in pixels) */
'disableResponsive': 'false', /* deactivate responsive behaviour */
'disableTrustbadge': 'false', /* deactivate trustbadge */
'customCheckoutElementId': 'customCheckoutDiv'
};
var _ts = document.createElement('script');
_ts.type = 'text/javascript';
_ts.charset = 'utf-8';
_ts.async = true;
_ts.src = 'http://widgets.trustedshops.com/js/' + _tsid + '.js';
var __ts = document.getElementsByTagName('script')[0];
__ts.parentNode.insertBefore(_ts, __ts);
})();
$(document).ready(function(){
setTimeout(function(){$('#customCheckoutDiv2 div[id^=\'tsbadge_\']').css('width','200px');},1000);
setTimeout(function(){$('#customCheckoutDiv2 div[id^=\'tsCustomBadge\']').css('width','200px');},1000);
});
{/literal}
</script>
<script type="application/ld+json">
2017-02-24 17:28:19 +01:00
{literal}
2017-02-24 18:07:55 +01:00
{
"@context": "http://schema.org",
"@type": "LocalBusiness",
"name": "{/literal}{$shopName}{literal}",
"aggregateRating" : {
"@type": "AggregateRating",
"ratingValue" : "{/literal}{$result}{literal}",
"bestRating" : "{/literal}{$max}{literal}",
"ratingCount" : "{/literal}{$count}{literal}"
}
}
2017-02-24 17:28:19 +01:00
{/literal}
</script>