custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/layout/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  2. {% set tsConfig = config('trustedShopsApp.config') %}
  3. {% set tsChannelId = context.salesChannel.id ?? null %}
  4. {% set activeLanguageIsoCode = page.header.activeLanguage.translationCode.code ?? null %}
  5. {% set tsChannelRef = tsChannelId ~ '.' ~ activeLanguageIsoCode %}
  6. {% block layout_head_javascript_tracking %}
  7.     {{ parent() }}
  8.     {% if tsChannelId is not null %}
  9.         {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and tsConfig[tsChannelId][activeLanguageIsoCode].widgets is not null %}
  10.             {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].widgets.eTrustedChannelRef %}
  11.                 {% set widgetConfig = tsConfig[tsChannelId][activeLanguageIsoCode].widgets.children.0 %}
  12.                 {% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
  13.                     scriptConfig: widgetConfig
  14.                 } %}
  15.             {% endif %}
  16.         {% endif %}
  17.     {% endif %}
  18. {% endblock %}