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

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