custom/plugins/MaxiaListingVariants6/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_script_hmr_mode %}
  3.     {% block base_script_maxia_listing_variants %}
  4.         {%- if context.extensions.maxiaListingVariants is defined %}
  5.             {% if popupCloseIcon is not defined %}
  6.                 {% set popupCloseIcon %}{% sw_icon 'x' style { 'size': 'sm' } %}{% endset %}
  7.             {% endif %}
  8.             <script>
  9.                 {%- block base_script_maxia_listing_variants_scripts_inline -%}
  10.                     window.maxiaListingVariants = {{ {
  11.                         'cmsPageId': page.cmsPage.id,
  12.                         'ajaxUrl': path('frontend.plugins.maxia-listing-variants.product-box'),
  13.                         'popupCloseIcon': popupCloseIcon|trim|replace({'  ': ' '})
  14.                     }|json_encode|raw }};
  15.                 {%- endblock -%}
  16.             </script>
  17.         {% endif -%}
  18.     {% endblock %}
  19.     {{ parent() }}
  20. {% endblock %}