custom/plugins/ATNTheme/src/Resources/views/storefront/component/buy-widget/configurator.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
  2. {% block buy_widget_configurator_option_radio_label %}
  3.     <label class="product-detail-configurator-option-label{% if isCombinableCls %} {{ isCombinableCls }}{% endif %}{% if option.groupId == '47bfa4e365554d539e34fca7c0439a93' %} automatisierung {% 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 ('buy_widget_configurator_option_radio_label_media') }}
  11.         {% elseif displayType == 'text' or
  12.             (displayType == 'media' and not media) or
  13.             (displayType == 'color' and not option.colorHexCode) %}
  14.             {{ block ('buy_widget_configurator_option_radio_label_text') }}
  15.         {% endif %}
  16.     </label>
  17. {% endblock %}
  18. {% block buy_widget_configurator_option_radio_label_media %}
  19.     <span>{{ option.name }}</span>
  20.     {% if media.fileExtension == "svg" %}
  21.         {% sw_thumbnails 'configurator-option-img-thumbnails' with {
  22.             media: media,
  23.             sizes: {
  24.                 'default': '52px'
  25.             },
  26.             attributes: {
  27.                 'class': 'product-detail-configurator-option-image svg-image-wbn',
  28.                 'alt': option.translated.name,
  29.                 'title': option.translated.name,
  30.                 'data-wbn-svg-inject' : 'true'
  31.             }
  32.         } %}
  33.     {% else %}
  34.         {% sw_thumbnails 'configurator-option-img-thumbnails' with {
  35.             media: media,
  36.             sizes: {
  37.                 'default': '52px'
  38.             },
  39.             attributes: {
  40.                 'class': 'product-detail-configurator-option-image',
  41.                 'alt': option.translated.name,
  42.                 'title': option.translated.name
  43.             }
  44.         } %}
  45.     {% endif %}
  46. {% endblock %}
  47. {% block buy_widget_configurator_group_title %}
  48.     <div class="product-detail-configurator-group-title">
  49.         {{ block('buy_widget_configurator_group_title_text') }}
  50.     </div>
  51.     {% if product.customFields['custom_is_gluesystem'] == "true" %}
  52.         <div class="product-detail-configurator-group-description">
  53.             {{ block('buy_widget_configurator_group_description_text') }}
  54.         </div>
  55.     {% endif %}
  56. {% endblock %}
  57. {% block buy_widget_configurator_group_description_text %}
  58.     {{ group.customFields.custom_variants_description|raw }}
  59. {% endblock %}
  60. {% block buy_widget_configurator_group_title_text %}
  61.     {% if group.translated.customFields.wbn_attributes_tooltip %}
  62.         <abbr data-toggle="tooltip" data-placement="top"
  63.               title="{{ group.translated.customFields.wbn_attributes_tooltip | sw_sanitize }}">{{ parent() }}</abbr>
  64.     {% else %}
  65.         {{ parent() }}
  66.     {% endif %}
  67. {% endblock %}