custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/includes/script-assembler.html.twig line 1

Open in your IDE?
  1. {% block assembled_script %}
  2.     {% set script = '<' ~ scriptConfig.tag %}
  3.     {% for attribute in scriptConfig.attributes %}
  4.         {% if attribute.value is defined %}
  5.             {% if attribute.value === false %}
  6.                 {% set script = script ~ ' ' ~ attribute.attributeName ~ '="false"' %}
  7.             {% elseif attribute.value === true %}
  8.                 {% set script = script ~ ' ' ~ attribute.attributeName ~ '="true"' %}
  9.             {% else %}
  10.                 {% set script = script ~ ' ' ~ attribute.attributeName ~ '="' ~ attribute.value ~ '"' %}
  11.             {% endif %}
  12.         {% else %}
  13.             {% set script = script ~ ' ' ~ attribute.attributeName %}
  14.         {% endif %}
  15.     {% endfor %}
  16.     {% set script = script ~ '></'~scriptConfig.tag~'>' %}
  17.     <!-- added by Trusted Shops app: Start -->
  18.     {{ script|raw }}
  19.     <!-- End -->
  20. {% endblock %}