custom/plugins/KMShop2022/src/Resources/views/storefront/page/product-detail/configurator.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
  2.     {% block page_product_detail_configurator_option_radio %}
  3.         <input type="radio"
  4.                name="{{ group.id }}"
  5.                value="{{ option.id }}"
  6.                class="product-detail-configurator-option-input{% if isCombinableCls %} {{ isCombinableCls }}{% endif %}"
  7.                title="{{ optionIdentifier }}"
  8.                id="{{ optionIdentifier }}"
  9.                {% if isActive %}checked="checked"{% endif %}>
  10.         {% block page_product_detail_configurator_option_radio_label %}
  11.             <label class="product-detail-configurator-option-label{% if isCombinableCls %} {{ isCombinableCls }}{% endif %} is-display-{{ displayType }}"
  12.                    {% if displayType == 'color' and option.colorHexCode %}
  13.                    style="background-color: {{ option.colorHexCode }}"
  14.                    {% endif %}
  15.                    title="{{ option.translated.name }}"
  16.                    for="{{ optionIdentifier }}"
  17.                    group="{{ group.translated.name }}">
  18.                 {% if displayType == 'media' and media %}
  19.                     {% block page_product_detail_configurator_option_radio_label_media %}
  20.                         {% sw_thumbnails 'configurator-option-img-thumbnails' with {
  21.                             media: media,
  22.                             sizes: {
  23.                                 'default': '52px'
  24.                             },
  25.                             attributes: {
  26.                                 'class': 'product-detail-configurator-option-image',
  27.                                 'alt': option.translated.name,
  28.                                 'title': option.translated.name
  29.                             }
  30.                         } %}
  31.                     {% endblock %}
  32.                 {% elseif displayType == 'text' or
  33.                           (displayType == 'media' and not media) or
  34.                           (displayType == 'color' and not option.colorHexCode) %}
  35.                     {% block page_product_detail_configurator_option_radio_label_text %}
  36.                         {{ option.translated.name }}
  37.                     {% endblock %}
  38.                 {% endif %}
  39.             </label>
  40.         {% endblock %}
  41.     {% endblock %}