custom/plugins/MaxiaListingVariants6/src/Resources/views/storefront/plugins/maxia_listing_variants/expand-button.html.twig line 1

Open in your IDE?
  1. {% block plugins_maxia_listing_variants_configurator_expand_button %}
  2.     {% set tagName = variantsConfig.quickBuyActive ? 'div' : 'a' %}
  3.     <{{ tagName }} class="product-detail-configurator-option"
  4.     {% if not variantsConfig.quickBuyActive %}
  5.         href="{{ seoUrl('frontend.detail.page', {'productId': variant.productId}) }}"
  6.     {% endif %}
  7.     >
  8.     {% block plugins_maxia_listing_variants_configurator_expand_button_inner %}
  9.         <div class="product-detail-configurator-option-input is-combinable"></div>
  10.         <div class="{% block plugins_maxia_listing_variants_configurator_expand_button_classes %}{% apply spaceless %}
  11.                    {% if displayType == 'list' %}maxia-variants-list-label{% else %}product-detail-configurator-option-label{% endif %}
  12.                    {% if displayType == 'color' and baseConfig.showColorCircles %} is-circle{% endif %}
  13.                    is-expand-button
  14.                    is-display-{{ displayType }}
  15.                {% endapply %}{% endblock %}"
  16.              title="{{ "maxia-listing-variants.expand-button.plain-title"|trans({'%remainingEntries%': remainingEntries}) }}"
  17.                 {% if variantsConfig.quickBuyActive %}
  18.                     data-maxia-listing-quickbuy-button="true"
  19.                 {% endif %}
  20.         >
  21.             {% block plugins_maxia_listing_variants_configurator_expand_button_text_wrapper %}
  22.                 {% if displayType == 'list' %}
  23.                     {% block plugins_maxia_listing_variants_configurator_expand_button_text_list %}
  24.                         <div class="maxia-variants-list-text">
  25.                             {{ "maxia-listing-variants.expand-button.long-title"|trans({'%remainingEntries%': remainingEntries})|raw }}
  26.                         </div>
  27.                     {% endblock %}
  28.                 {% else %}
  29.                     {% block plugins_maxia_listing_variants_configurator_expand_button_text %}
  30.                         {{ "maxia-listing-variants.expand-button.title"|trans({'%remainingEntries%': remainingEntries})|raw }}
  31.                     {% endblock %}
  32.                 {% endif %}
  33.             {% endblock %}
  34.         </div>
  35.     {% endblock %}
  36.     </{{ tagName }}>
  37. {% endblock %}