custom/static-plugins/CytexTheme/src/Resources/views/storefront/component/wishlist/button/add-note.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/component/wishlist/button/add-note.html.twig" %}
  2. {% block component_wishlist_button_add_note %}
  3.     {% if modal is not defined %}
  4.         {% set modal = true %}
  5.     {% endif %}
  6.     {% if link is not defined %}
  7.         {% set link = path('frontend.wishlist.modal.note', { 'productId': product.id  }) %}
  8.     {% endif %}
  9.     {% if text is not defined %}
  10.         {% set text = 'coe-wishlist.detail.addToList'|trans %}
  11.     {% endif %}
  12.     {% if additionalClass is not defined %}
  13.         {% set additionalClass = '' %}
  14.     {% endif %}
  15.     <button type="button"
  16.             class="btn header-actions-btn {{ additionalClass }}"
  17.             style="margin-left:0;padding-left:0;"
  18.         {% if modal %}
  19.             data-toggle="modal"
  20.             data-backdrop="static"
  21.             data-url="{{ link }}"
  22.             data-pid="{{ product.id }}"
  23.         {% else %}
  24.             onclick="window.location.href='{{ link }}'"
  25.         {% endif %}
  26.     >
  27.         <span class="cytex-coe-wishlist-button-text d-inline-block">
  28.             {{ 'coe-wishlist.detail.addToList'|trans }}
  29.         </span>
  30.         {% sw_include "@CoeWishlistSw6/storefront/component/wishlist/icon.html.twig" with {
  31.             pack: 'solid'
  32.         } %}
  33.     </button>
  34. {% endblock %}