commerce_trustedshops-8.x-2.x-dev/templates/block--commerce-trustedshops-trustedbadge.html.twig

templates/block--commerce-trustedshops-trustedbadge.html.twig
{#
/**
 * @file
 * A layout for the TrustedBadge block.
 *
 * Available variables:
 * - tsid: The TrustedShops Shop ID.
 *
 * @ingroup themeable
 */
#}
<script type="text/javascript">
  (function () {
    var _tsid = '{{ tsid }}';
    _tsConfig = {
      'yOffset': '0', /* offset from page bottom */
      'variant': 'reviews', /* default, reviews, custom, custom_reviews */
      'customElementId': '', /* required for variants custom and custom_reviews */
      'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
      'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */
      'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */
      'disableResponsive': 'false', /* deactivate responsive behavior */
      'disableTrustbadge': 'false' /* deactivate trustbadge */
    };
    var _ts = document.createElement('script');
    _ts.type = 'text/javascript';
    _ts.charset = 'utf-8';
    _ts.async = true;
    _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js';
    var __ts = document.getElementsByTagName('script')[0];
    __ts.parentNode.insertBefore(_ts, __ts);
  })();
</script>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc