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. {% block layout_head_javascript_tracking %}
  5.     {{ parent() }}
  6.     {% if tsChannelId is not null %}
  7.         {% if tsConfig[tsChannelId].widgets is defined and tsConfig[tsChannelId].widgets is not null %}
  8.             {% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
  9.                 {% set widgetConfig = tsConfig[tsChannelId].widgets.children.0 %}
  10.                 {% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
  11.                     scriptConfig: widgetConfig
  12.                 } %}
  13.             {% endif %}
  14.         {% endif %}
  15.     {% endif %}
  16. {% endblock %}