vendor/frosh/product-compare/src/Resources/views/storefront/component/compare/compare-float.html.twig line 1

Open in your IDE?
  1. {% block frosh_product_compare_float_button_inner %}
  2.     {% set buttonClasses = buttonClasses ?? 'btn-primary' %}
  3.     {% set floatingButtonClasses = floatingButtonClasses ?? 'compare-float-button' %}
  4.     {% set badgeClasses = badgeClasses ?? 'badge-danger' %}
  5.     {% set compareFloatOptions = {
  6.         maximumNumberCompareProductsText: "froshProductCompare.general.maximumCompareProducts"|trans|sw_sanitize
  7.     } %}
  8.     <div data-compare-float="true" data-compare-float-options="{{ compareFloatOptions|json_encode }}">
  9.         {% block frosh_product_compare_float_button %}
  10.             <div class="{{ floatingButtonClasses }} js-compare-float-button"
  11.                  title="{{ "froshProductCompare.offcanvas.compareNow"|trans }}">
  12.                 <button
  13.                         class="btn {{ buttonClasses }}" title="{{ "froshProductCompare.offcanvas.compareNow"|trans }}">
  14.                     {% block frosh_product_compare_float_icon %}
  15.                         {% sw_icon 'bag-product' style { 'size': 'sm' } %}
  16.                     {% endblock %}
  17.                     <span class="badge {{ badgeClasses }}"></span>
  18.                 </button>
  19.             </div>
  20.         {% endblock %}
  21.         {{ sw_csrf('frontend.compare.offcanvas') }}
  22.     </div>
  23. {% endblock %}