custom/plugins/PixupWishlistSW6/src/Resources/views/wishlist/add-to-wishlist-button.html.twig line 1

Open in your IDE?
  1. {% block pixup_wishlist_add_to_wishlist %}
  2.     {% set stateMsg = remove ? "pixup-wishlist.product-detail.deleteProduct"|trans : "pixup-wishlist.product-detail.addProduct"|trans  %}
  3.     {% set removeBool = page.header.pixup.antiCacheMode || page.header.pixup.fullAjaxMode ? 'false' : (remove?"true":"false") %}
  4.     {% set plp = plp?true:false %}
  5.     {% block pixup_wishlist_add_to_wishlist_button %}
  6.     <button
  7.         onclick="pixupWishlist_changeProductWishlistStateInit(
  8.             this,
  9.             this.dataset.remove,
  10.             '{{productId}}',
  11.             )"
  12.         data-remove = "{{remove?"true":"false"}}"
  13.         name="wishlistModalButton"
  14.         class="PixupAddToWishlistBtnPDP Pixup-Wishlist-Product-{{ productId }}"
  15.         style="background-color:transparent;border:0;"
  16.         title="{{ stateMsg }}">
  17.         {% block pixup_wishlist_add_to_wishlist_button_add %}
  18.             <span class="add" style="display:{% if removeBool  == "true" %}none{% else %}inline-block{% endif %};">
  19.                 {% sw_icon 'px-heart' style{"namespace":"PixupWishlistSW6","pack":"pixup","class":"PixupAddToWishlistIcon pixupBaseIcon"} %}
  20.             </span>
  21.         {% endblock %}
  22.         {% block pixup_wishlist_add_to_wishlist_button_remove %}
  23.             <span class="remove" style="display:{% if removeBool  == "true" %}inline-block{% else %}none{% endif %};">
  24.                 {% sw_icon 'px-heart' style{"namespace":"PixupWishlistSW6","pack":"pixup","class":"PixupAddToWishlistRemoveIcon pixupBaseIcon pxOutlineWhite"} %}
  25.             </span>
  26.         {% endblock %}
  27.     </button>
  28.     {% endblock %}
  29. {% endblock %}
  30. {# Content and JS FIles needet for this twig can be found in layout/header/header.html.twig #}