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