custom/plugins/sw-asus/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_label %}
  3.     <label class="product-detail-configurator-option-label{% if isCombinableCls %} {{ isCombinableCls }}{% endif %} is-display-{{ displayType }}"
  4.            style="
  5.                 {% if  group.translated.customFields.onedot_variants_property_option_height_detail%} height: {{ group.translated.customFields.onedot_variants_property_option_height_detail }}px;{% endif %}
  6.                 {% if  group.translated.customFields.onedot_variants_property_option_width_detail%} min-width: {{ group.translated.customFields.onedot_variants_property_option_width_detail }}px;{% endif %}
  7.                "
  8.            title="{{ option.translated.name }}"
  9.            for="{{ optionIdentifier }}">
  10.         {% if displayType == 'color' and option.colorHexCode %}
  11.             <span class="mark" style="background-color: {{ option.colorHexCode }};"></span>
  12.         {% endif %}
  13.         {% if displayType == 'media' and media %}
  14.             <span class="label">{{ option.translated.name }}</span>
  15.             <img src="{{ media|sw_encode_media_url }}"
  16.                  class="product-detail-configurator-option-image"
  17.                  alt="{{ option.translated.name }}"/>
  18.             <span class="label">{{ option.translated.name }}</span>
  19.         {% elseif displayType == 'text' or (displayType == 'color') %}
  20.             <span class="label">{{ option.translated.name }}</span>
  21.         {% endif %}
  22.     </label>
  23. {% endblock %}