custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/page/content/detail.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/content/detail.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 page_content_section %}
  7.     {{ parent() }}
  8.     {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].widgets.eTrustedChannelRef %}
  9.         {% if tsChannelId is not null and controllerAction === "home" %}
  10.             {% if loop.index === 1 or loop.length === 1 %}
  11.                 {% set tsWidgetsOutput %}
  12.                     {% sw_include '@Storefront/storefront/includes/widget-assembler.html.twig' with {
  13.                         widgets: tsConfig[tsChannelId][activeLanguageIsoCode].widgets.children.0.children,
  14.                         product: product,
  15.                         widgetLocationId: 'wdg-loc-hp'
  16.                     } %}
  17.                 {% endset %}
  18.                 {% if tsWidgetsOutput|trim != '' %}
  19.                     <!-- added by Trusted Shops app: Start -->
  20.                     <div class="cms-section">
  21.                         <div class="cms-section-default boxed">
  22.                             <div class="row">
  23.                                 <div class="col-12">
  24.                                     {{ tsWidgetsOutput|raw }}
  25.                                 </div>
  26.                             </div>
  27.                         </div>
  28.                     </div>
  29.                     <!-- End -->
  30.                 {% endif %}
  31.             {% endif %}
  32.         {% endif %}
  33.     {% endif %}
  34. {% endblock %}