YITH WooCommerce Wishlist - Version 3.0.6

Version Description

Released on 04 February 2020 =

  • Tweak: avoid redirect for guest users if wishlist page is set to my-account
  • Tweak: minor improvements to localization
  • Tweak: update wrong text domains
  • Tweak: changed default value for ATW icons
  • Tweak: set wishlist session cookie JIT
  • Tweak: use secure cookie for sessions, when possible (thanks to Ahmed)
  • Tweak: improved cache handling for get_default_wishlist method
  • Tweak: even if system cannot set session cookie, calculate session_id and use it for the entire execution
  • Update: Italian language
  • Update: plugin framework
  • Fix: prevent error if list doesn't exists
  • Fix: issue with wishlist_id query param
  • Fix: items query now search for product in original language
  • Fix: returning correct wishlist and user id to yith_wcwl_added_to_wishlist and yith_wcwl_removed_from_wishlist actions (thanks to danielbitzer)
  • Fix: issue with default value for yith_wcwl_positions option
  • Fix: added key name to avoid DB error during install or update procedure
  • Dev: added yith_wcwl_shortcode_share_link_url filter
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Wishlist
Version 3.0.6
Comparing to
See all releases

Code changes from version 3.0.5 to 3.0.6

Files changed (42) hide show
  1. README.md +18 -5
  2. README.txt +21 -1
  3. assets/css/admin.css +1 -1
  4. assets/css/unminified/admin.css +4 -1
  5. assets/js/admin/yith-wcwl.js +1 -1
  6. assets/js/jquery.yith-wcwl.js +1 -1
  7. assets/js/unminified/admin/yith-wcwl.js +1 -1
  8. assets/js/unminified/jquery.yith-wcwl.js +2 -2
  9. gulpfile.js +1 -0
  10. includes/class.yith-wcwl-frontend.php +2 -1
  11. includes/class.yith-wcwl-install.php +1 -1
  12. includes/class.yith-wcwl-session.php +12 -3
  13. includes/class.yith-wcwl-shortcode.php +2 -2
  14. includes/class.yith-wcwl.php +2 -2
  15. includes/data-stores/class.yith-wcwl-wishlist-data-store.php +22 -5
  16. includes/data-stores/class.yith-wcwl-wishlist-item-data-store.php +5 -0
  17. includes/functions.yith-wcwl.php +13 -10
  18. init.php +1 -1
  19. plugin-fw/assets/css/yith-fields.css +91 -87
  20. plugin-fw/assets/fonts/yith-icon.eot +0 -0
  21. plugin-fw/assets/fonts/yith-icon.svg +9 -0
  22. plugin-fw/assets/fonts/yith-icon.ttf +0 -0
  23. plugin-fw/assets/fonts/yith-icon.woff +0 -0
  24. plugin-fw/init.php +2 -2
  25. plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
  26. plugin-fw/languages/yith-plugin-fw-el.po +782 -0
  27. plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
  28. plugin-fw/languages/yith-plugin-fw-es_ES.po +650 -482
  29. plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
  30. plugin-fw/languages/yith-plugin-fw-it_IT.po +644 -481
  31. plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
  32. plugin-fw/languages/yith-plugin-fw-nl_NL.po +1140 -0
  33. plugin-fw/languages/yith-plugin-fw.pot +261 -383
  34. plugin-fw/lib/yit-plugin-gradients.php +6 -6
  35. plugin-fw/lib/yit-pointers.php +2 -2
  36. plugin-fw/templates/fields/country-select.php +1 -2
  37. plugin-fw/templates/fields/multi-colorpicker.php +3 -3
  38. plugin-fw/templates/fields/multi-select.php +2 -1
  39. plugin-fw/templates/fields/onoff.php +3 -1
  40. plugin-fw/yit-functions.php +23 -2
  41. plugin-options/add_to_wishlist-options.php +2 -2
  42. templates/wishlist-view-footer.php +2 -1
README.md CHANGED
@@ -72,12 +72,25 @@ We're also working hard to release a developer guide; please, follow our [social
72
 
73
  ## Changelog
74
 
75
- ### 3.0.5 - Released on 23 December 2019 =
76
-
77
- * New: support for WooCommerce 3.9
 
 
 
 
 
 
 
 
78
  * Update: plugin framework
79
- * Tweak: register original product id instead of translated one, when saving item in DB
80
- * Fix: customer not being redirected to cart after clicking Add to Cart button in wishlist
 
 
 
 
 
81
 
82
  ## Support
83
 
72
 
73
  ## Changelog
74
 
75
+ ### 3.0.6 Released on 04 February 2020
76
+
77
+ * Tweak: avoid redirect for guest users if wishlist page is set to my-account
78
+ * Tweak: minor improvements to localization
79
+ * Tweak: update wrong text domains
80
+ * Tweak: changed default value for ATW icons
81
+ * Tweak: set wishlist session cookie JIT
82
+ * Tweak: use secure cookie for sessions, when possible (thanks to Ahmed)
83
+ * Tweak: improved cache handling for get_default_wishlist method
84
+ * Tweak: even if system cannot set session cookie, calculate session_id and use it for the entire execution
85
+ * Update: Italian language
86
  * Update: plugin framework
87
+ * Fix: prevent error if list doesn't exists
88
+ * Fix: issue with wishlist_id query param
89
+ * Fix: items query now search for product in original language
90
+ * Fix: returning correct wishlist and user id to yith_wcwl_added_to_wishlist and yith_wcwl_removed_from_wishlist actions (thanks to danielbitzer)
91
+ * Fix: issue with default value for yith_wcwl_positions option
92
+ * Fix: added key name to avoid DB error during install or update procedure
93
+ * Dev: added yith_wcwl_shortcode_share_link_url filter
94
 
95
  ## Support
96
 
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist
5
  Requires at least: 4.0
6
  Tested up to: 5.3
7
- Stable tag: 3.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -112,6 +112,26 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h
112
 
113
  == Changelog ==
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  = 3.0.5 - Released on 23 December 2019 =
116
 
117
  * New: support for WooCommerce 3.9
4
  Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist
5
  Requires at least: 4.0
6
  Tested up to: 5.3
7
+ Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
112
 
113
  == Changelog ==
114
 
115
+ = 3.0.6 – Released on 04 February 2020 =
116
+
117
+ * Tweak: avoid redirect for guest users if wishlist page is set to my-account
118
+ * Tweak: minor improvements to localization
119
+ * Tweak: update wrong text domains
120
+ * Tweak: changed default value for ATW icons
121
+ * Tweak: set wishlist session cookie JIT
122
+ * Tweak: use secure cookie for sessions, when possible (thanks to Ahmed)
123
+ * Tweak: improved cache handling for get_default_wishlist method
124
+ * Tweak: even if system cannot set session cookie, calculate session_id and use it for the entire execution
125
+ * Update: Italian language
126
+ * Update: plugin framework
127
+ * Fix: prevent error if list doesn't exists
128
+ * Fix: issue with wishlist_id query param
129
+ * Fix: items query now search for product in original language
130
+ * Fix: returning correct wishlist and user id to yith_wcwl_added_to_wishlist and yith_wcwl_removed_from_wishlist actions (thanks to danielbitzer)
131
+ * Fix: issue with default value for yith_wcwl_positions option
132
+ * Fix: added key name to avoid DB error during install or update procedure
133
+ * Dev: added yith_wcwl_shortcode_share_link_url filter
134
+
135
  = 3.0.5 - Released on 23 December 2019 =
136
 
137
  * New: support for WooCommerce 3.9
assets/css/admin.css CHANGED
@@ -1 +1 @@
1
- #popular-filter .wp-list-table td.column-name img{max-width:40px;height:auto;float:left}#popular-filter .wp-list-table td.column-name .product-details{padding-left:60px}#popular-filter .wp-list-table td.column-actions,#popular-filter .wp-list-table th.column-actions{width:25%!important}#popular-filter .wp-list-table td.column-actions a{margin-bottom:5px;padding:0}#popular-filter .wp-list-table td.column-actions a i{margin:5px}#popular-filter .wp-list-table td.column-actions a.button-primary{padding-right:5px}#popular-filter .wp-list-table td.column-actions a,#popular-filter .wp-list-table td.column-actions a i{vertical-align:middle}#wishlist-filter .wp-list-table td.column-username img{float:left}#wishlist-filter .wp-list-table td.column-username .customer-details{padding-left:60px}.yith-plugin-ui #plugin-fw-wc .option-icon{margin-right:5px}.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_additional_fields_settings-description p,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_shop_page_settings-description p,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_yith_wfbt-description p{background:0 0;width:100%;margin:0;padding:0;font-weight:400}.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_additional_fields_settings-description p:before,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_shop_page_settings-description p:before,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_yith_wfbt-description p:before{content:''}.yith-wcwl-wizard-modal .wc-backbone-modal-main{padding-bottom:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main .wc-backbone-modal-header{border-bottom:none;padding:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main .wc-backbone-modal-header .modal-close-link{border-left:none;z-index:1}.yith-wcwl-wizard-modal .wc-backbone-modal-main article{padding:0;max-height:calc(100vh - 40px)!important}.yith-wcwl-wizard-modal .wc-backbone-modal-main article h2{font-size:1.5em;margin:.8em 0 2em;color:#007694}.yith-wcwl-wizard-modal .wc-backbone-modal-main article h4{color:#007694;margin:1.33em 0;font-size:1em;font-weight:600}.yith-wcwl-wizard-modal .wc-backbone-modal-main article p.description{font-weight:600;font-style:normal}.yith-wcwl-wizard-modal .wc-backbone-modal-main article p.placeholders{font-size:.9em;margin-top:1.33em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article code{background:0 0;padding:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main article small{font-size:.9em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article b.alert{color:#a20000}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .form-row{margin-top:1.5em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article label{color:#00a79c;font-weight:600;font-size:1.1em;margin-bottom:20px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs{display:inline-block;margin:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li{display:inline-block;margin-bottom:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li a{display:block;padding:10px 15px;text-decoration:none;font-size:1.1em;color:#404040;font-weight:600}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li a.active{position:relative;background:#fff;box-shadow:0 0 25px -4px rgba(68,138,133,.4);z-index:1;color:#00a79c}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li a:hover{color:#00a79c}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .form-row,.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab{padding:20px;position:relative;-webkit-box-shadow:0 0 25px -4px rgba(68,138,133,.4);-moz-box-shadow:0 0 25px -4px rgba(68,138,133,.4);box-shadow:0 0 25px -4px rgba(68,138,133,.4)}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab:before{content:'';display:block;background:#fff;left:0;right:0;height:20px;position:absolute;top:-1px;z-index:1}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab:not(.active){display:none}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab>textarea{width:100%;margin-top:30px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .col{padding:20px 30px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1{display:flex;width:100%}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1>.col{flex:1;width:600px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1>.col-dx{background-color:#f2f2f2;position:relative;padding-bottom:80px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 #content_html{width:100%}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview{height:500px;overflow-x:hidden;overflow-y:scroll;margin:30px 0;pointer-events:none}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview.plain{padding:0 20px;background:#fff}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview #wrapper{padding:0!important}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview #wrapper>table{width:100%!important}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions{position:absolute;left:30px;right:30px;bottom:30px;line-height:40px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions .save-promotion-draft,.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions a.back-button{color:#007694;font-weight:700}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions .save-promotion-draft{background:0 0;border:none;padding:0;cursor:pointer}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions a.continue-button{float:right;background-color:#007694;text-transform:uppercase;font-weight:600;font-size:11px;line-height:26px;height:auto;padding:5px 20px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions a.continue-button:hover{background-color:#375f6b}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2{max-width:500px;min-height:400px;position:relative}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 h2{margin-top:2em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 p{font-weight:600}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 #main_submit_button{position:absolute;bottom:30px;left:30px;right:30px;width:calc(100% - 60px);padding:5px 20px;text-transform:uppercase;font-weight:600;vertical-align:middle;line-height:30px;height:auto}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 #main_submit_button i{vertical-align:middle;margin-right:5px;font-size:22px}
1
+ #popular-filter .wp-list-table td.column-name img{max-width:40px;height:auto;float:left}#popular-filter .wp-list-table td.column-name .product-details{padding-left:60px}#popular-filter .wp-list-table td.column-actions,#popular-filter .wp-list-table th.column-actions{width:25%!important}#popular-filter .wp-list-table td.column-actions a{margin-bottom:5px;padding:0}#popular-filter .wp-list-table td.column-actions a i{margin:5px}#popular-filter .wp-list-table td.column-actions a.button-primary{padding-right:5px}#popular-filter .wp-list-table td.column-actions a,#popular-filter .wp-list-table td.column-actions a i{vertical-align:middle}#wishlist-filter .wp-list-table td.column-username img{float:left}#wishlist-filter .wp-list-table td.column-username .customer-details{padding-left:60px}.yith-plugin-ui #plugin-fw-wc .option-icon{margin-right:5px}.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_additional_fields_settings-description p,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_shop_page_settings-description p,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_yith_wfbt-description p{background:0 0;width:100%;margin:0;padding:0;font-weight:400}.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_additional_fields_settings-description p:before,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_shop_page_settings-description p:before,.yith-plugin-ui #plugin-fw-wc h2+#yith_wcwl_yith_wfbt-description p:before{content:''}.yith-wcwl-wizard-modal .wc-backbone-modal-main{padding-bottom:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main .wc-backbone-modal-header{border-bottom:none;padding:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main .wc-backbone-modal-header .modal-close-link{border-left:none;z-index:1}.yith-wcwl-wizard-modal .wc-backbone-modal-main article{padding:0;max-height:calc(100vh - 40px)!important}.yith-wcwl-wizard-modal .wc-backbone-modal-main article h2{font-size:1.5em;margin:.8em 0 2em;color:#007694}.yith-wcwl-wizard-modal .wc-backbone-modal-main article h4{color:#007694;margin:1.33em 0;font-size:1em;font-weight:600}.yith-wcwl-wizard-modal .wc-backbone-modal-main article p.description{font-weight:600;font-style:normal}.yith-wcwl-wizard-modal .wc-backbone-modal-main article p.placeholders{font-size:.9em;margin-top:1.33em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article code{background:0 0;padding:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main article small{font-size:.9em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article b.alert{color:#a20000}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .form-row{margin-top:1.5em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article label{color:#00a79c;font-weight:600;font-size:1.1em;margin-bottom:20px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs{display:inline-block;margin:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li{display:inline-block;margin-bottom:0}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li a{display:block;padding:10px 15px;text-decoration:none;font-size:1.1em;color:#404040;font-weight:600}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li a.active{position:relative;background:#fff;box-shadow:0 0 25px -4px rgba(68,138,133,.4);z-index:1;color:#00a79c}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tabs li a:hover{color:#00a79c}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .form-row,.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab{padding:20px;position:relative;-webkit-box-shadow:0 0 25px -4px rgba(68,138,133,.4);-moz-box-shadow:0 0 25px -4px rgba(68,138,133,.4);box-shadow:0 0 25px -4px rgba(68,138,133,.4)}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab:before{content:'';display:block;background:#fff;left:0;right:0;height:20px;position:absolute;top:-1px;z-index:1}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab:not(.active){display:none}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .tab>textarea{width:100%;margin-top:30px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .col{padding:20px 30px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1{display:flex;width:100%}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1>.col{flex:1;width:600px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1>.col-dx{background-color:#f2f2f2;position:relative;padding-bottom:80px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 #content_html{width:100%}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview{height:500px;overflow-x:hidden;overflow-y:scroll;margin:30px 0}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview.plain{padding:0 20px;background:#fff}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview .no-interactions{pointer-events:none}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview #wrapper{padding:0!important}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview #wrapper>table{width:100%!important}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions{position:absolute;left:30px;right:30px;bottom:30px;line-height:40px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions .save-promotion-draft,.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions a.back-button{color:#007694;font-weight:700}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions .save-promotion-draft{background:0 0;border:none;padding:0;cursor:pointer}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions a.continue-button{float:right;background-color:#007694;text-transform:uppercase;font-weight:600;font-size:11px;line-height:26px;height:auto;padding:5px 20px}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .promotion-actions a.continue-button:hover{background-color:#375f6b}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2{max-width:500px;min-height:400px;position:relative}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 h2{margin-top:2em}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 p{font-weight:600}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 #main_submit_button{position:absolute;bottom:30px;left:30px;right:30px;width:calc(100% - 60px);padding:5px 20px;text-transform:uppercase;font-weight:600;vertical-align:middle;line-height:30px;height:auto}.yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-2 #main_submit_button i{vertical-align:middle;margin-right:5px;font-size:22px}
assets/css/unminified/admin.css CHANGED
@@ -243,7 +243,6 @@
243
  overflow-x: hidden;
244
  overflow-y: scroll;
245
  margin: 30px 0;
246
- pointer-events: none;
247
  }
248
 
249
  .yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview.plain{
@@ -251,6 +250,10 @@
251
  background: #fff;
252
  }
253
 
 
 
 
 
254
  .yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview #wrapper{
255
  padding: 0!important;
256
  }
243
  overflow-x: hidden;
244
  overflow-y: scroll;
245
  margin: 30px 0;
 
246
  }
247
 
248
  .yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview.plain{
250
  background: #fff;
251
  }
252
 
253
+ .yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview .no-interactions{
254
+ pointer-events: none;
255
+ }
256
+
257
  .yith-wcwl-wizard-modal .wc-backbone-modal-main article .step-1 .email-preview #wrapper{
258
  padding: 0!important;
259
  }
assets/js/admin/yith-wcwl.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(s){s.fn.dependency=function(t,e,n,i){var o=s(this);o.on("change",function(){var c=e(o);s.each(t,function(t,e){var n=s(e);if(n.length){var i=n.closest("tr");i.length&&(c?i.show().fadeTo("slow",1):i.is(":visible")?i.fadeTo("slow",0,function(){i.hide()}):i.css("opacity",0).hide())}}),void 0!==n&&n(o,i)}).change()};function n(e,t){var c=this;c.settings={},c.modal=null,c._init=function(){c.settings=s.extend({template:e.data("template"),template_data:{},container:".yith-wcwl-wizard-modal",events:{}},t),"function"==typeof c.settings.events.init&&c.settings.events.init(e,t),c._initOpener()},c._initOpener=function(){e.on("click",function(t){var e=s(this),n=c.settings.template_data;t.preventDefault(),"function"==typeof n&&(n=n(e)),e.WCBackboneModal({template:c.settings.template,variable:n});var i=s(c.settings.container);c._initEditor(i),c._initEnhancedSelect(i),c._initTabs(i),c._initSteps(i),c._initOptions(i,n),c._initEvents(i,c.settings.events)})},c._initEditor=function(t){t.find(".with-editor").each(function(){var n=s(this),t=n.attr("id");tinymce.get(t)&&(restoreTextMode=tinymce.get(t).isHidden(),wp.editor.remove(t)),wp.editor.initialize(t,{tinymce:{wpautop:!0,init_instance_callback:function(e){e.on("Change",function(t){n.val(e.getContent()).change()})}},quicktags:!0,mediaButtons:!0})})},c._initEnhancedSelect=function(t){s(document.body).trigger("wc-enhanced-select-init")},c._initTabs=function(t){t.find(".tabs").on("click","a",function(t){var e=s(this),n=e.closest("ul"),i=n.find("a"),c=n.parent().find(".tab"),o=e.data("target"),_=s(o),a=!1;t.preventDefault(),e.hasClass("active")||(a=!0),i.attr("aria-selected","false").removeClass("active"),e.attr("aria-selected","true").addClass("active"),c.attr("aria-expanded","false").removeClass("active").hide(),_.attr("aria-expanded","true").addClass("active").show(),a&&e.trigger("tabChange")})},c._initOptions=function(i,t){s.each(t,function(t,e){var n=i.find('[name="'+t+'"]');n.length&&e!==n.val()&&(n.is("select")&&!n.find('option[value="'+e+'"]').length?n.append('<option value="'+e+'" selected="selected">'+e+" </option>"):n.val(e))})},c._initSteps=function(i){i.find(".step").hide().first().show(),i.find(".continue-button").on("click",function(t){var e=s(this).closest(".step"),n=e.next(".step");t.preventDefault(),n.length&&c._changeStep(i,e,n)}),i.find(".back-button").on("click",function(t){var e=s(this).closest(".step"),n=e.prev(".step");t.preventDefault(),n.length&&c._changeStep(i,e,n)})},c._initEvents=function(n,t){"function"==typeof c.settings.events.open&&c.settings.events.open(e,n),s.each(t,function(t,e){"init"!==t&&"open"!==t&&("tabChange"===t?n.find(".tabs"):"stepChange"===t?n.find(".step"):n.find(":input")).on(t,function(t){return e(s(this),n,t)})})},c._changeStep=function(o,_,a){_.animate({opacity:0},{duration:200,complete:function(){var t=o.find("article"),e=t.outerWidth(),n=t.outerHeight();t.outerWidth("auto"),t.outerHeight("auto"),_.hide(),a.show();var i=a.outerWidth(),c=a.outerHeight();a.hide(),_.css("opacity",1),t.outerWidth(e),t.outerHeight(n),t.animate({width:i,height:c},{duration:200,complete:function(){a.fadeIn(200)}})}}),a.trigger("stepChange")},c._init()}function i(t,e,n){var i=e.find(".email-preview"),c=e.find("#template").val();o&&o.abort(),o=s.ajax({url:ajaxurl+"?action=preview_promotion_email",data:e.find("form").serialize(),method:"POST",beforeSend:function(){i.block({message:null,overlayCSS:{background:"transparent",opacity:.6}})},complete:function(){i.unblock()},success:function(t){i.removeClass("html plain").addClass(c).html(t)}})}function t(){return{template:"yith-wcwl-promotion-wizard",template_data:function(t){var e;return e=t.hasClass("restore-draft")?t.data("draft"):s.extend(e,{product_id:t.data("product_id"),user_id:t.data("user_id")})},events:{change:i,open:function(t,e,n){e.find("#content_html-tmce").click(),i(0,e)},tabChange:function(t,e,n){e.find("#template").val(t.find(".active").data("template")),i(0,e)},stepChange:function(t,e,n){var i=t.find(".receivers-count"),c=t.find(".show-on-long-queue"),o=c.data("threshold");i.length&&s.ajax({url:ajaxurl+"?action=calculate_promotion_email_receivers",data:e.find("form").serialize(),method:"post",beforeSend:function(){i.css("opacity",.3),c.length&&c.hide()},complete:function(){i.css("opacity",1)},success:function(t){void 0!==t.label&&(i.html(t.label),c.length&&void 0!==t.count&&t.count>o&&c.show())}})}}}}var o=null;s.fn.wizard=function(t){var e=s(this);new n(e,t)},s(".create-promotion").wizard(t()),s(".restore-draft").wizard(t());function e(t){return t.is('input[type="radio"]')||(t=t.find('input[type="radio"]:checked')),"no"===t.val()}function c(t){return t.is(":checked")}var _=s("#yith_wcwl_disable_wishlist_for_unauthenticated_users"),a=s("#yith_wcwl_multi_wishlist_enable"),l=s("#yith_wcwl_enable_multi_wishlist_for_unauthenticated_users"),r=s("#yith_wcwl_modal_enable"),u=s("#yith_wcwl_loop_position"),h=s(".icon-select"),d=s('[name="yith_wcwl_add_to_cart_style"]'),w=s("#yith_wcwl_add_to_cart_icon"),m=s('[name="yith_wcwl_ask_an_estimate_style"]'),f=s("#yith_wcwl_ask_an_estimate_icon"),p=s("#yith_wcwl_enable_share"),y=s("#yith_wcwl_share_fb"),g=s("#yith_wcwl_fb_button_icon"),v=s("#yith_wcwl_share_twitter"),b=s("#yith_wcwl_tw_button_icon"),k=s("#yith_wcwl_share_pinterest"),x=s("#yith_wcwl_pr_button_icon"),C=s("#yith_wcwl_share_email"),S=s("#yith_wcwl_em_button_icon"),T=s("#yith_wcwl_share_whatsapp"),z=s("#yith_wcwl_wa_button_icon"),j=s("#yith_wcwl_show_estimate_button"),E=s("#yith_wcwl_show_additional_info_textarea"),H=s("#yith_wcwl_ask_an_estimate_fields"),O=s("#woocommerce_promotion_mail_settings\\[email_type\\]"),W=s("#woocommerce_yith_wcwl_back_in_stock_settings\\[enabled\\]"),D=s("#woocommerce_yith_wcwl_back_in_stock_settings\\[email_type\\]"),q=s("#woocommerce_yith_wcwl_on_sale_item_settings\\[enabled\\]"),B=s("#woocommerce_yith_wcwl_on_sale_item_settings\\[email_type\\]"),M=s('[id^="type_"]');u.add("select#yith_wcwl_button_position").on("change",function(){var t=s(this);"shortcode"===t.val()?t.parent().next().find(".addon").show():t.parent().next().find(".addon").hide()}).change(),M.on("change",function(){var t=s(this),e=t.val(),n=t.closest(".yith-toggle-content-row").next();"radio"===e||"select"===e?n.show().fadeTo("slow",1):n.is(":visible")?n.fadeTo("slow",0,function(){n.hide()}):n.css("opacity",0).hide()}).change(),d.on("change",function(){w.change()}),m.on("change",function(){f.change()}),h.each(function(){function t(t){return t.id?s('<span><i class="option-icon fa '+t.element.value.toLowerCase()+'" ></i> '+t.text+"</span>"):t.text}s(this).select2({templateResult:t,templateSelection:t})}),_.dependency(["#yith_wcwl_enable_multi_wishlist_for_unauthenticated_users-yes"],function(){return e(_)&&c(a)},function(){l.change()}),a.dependency(["#yith_wcwl_enable_multi_wishlist_for_unauthenticated_users-yes"],function(){return e(_)&&c(a)},function(){l.change()}),l.dependency(["#yith_wcwl_show_login_notice","#yith_wcwl_login_anchor_text"],function(){return c(a)&&e(_)&&e(l)}),r.dependency(["#yith_wcwl_show_exists_in_a_wishlist"],function(){var t="default"!==r.find(":checked").val();return t||s("#yith_wcwl_show_exists_in_a_wishlist").prop("checked",!0),t}),w.dependency(["#yith_wcwl_add_to_cart_custom_icon"],function(){return"custom"===w.val()&&"button_custom"===d.filter(":checked").val()}),f.dependency(["#yith_wcwl_ask_an_estimate_custom_icon"],function(){return"custom"===f.val()&&"button_custom"===m.filter(":checked").val()}),p.dependency(["#yith_wcwl_share_fb"],c,function(){y.change(),g.change(),v.change(),b.change(),k.change(),x.change(),C.change(),S.change(),T.change(),z.change()}),y.dependency(["#yith_wcwl_fb_button_icon","#yith_wcwl_color_fb_button_background"],function(){return c(y)&&c(p)},function(){g.change()}),g.dependency(["#yith_wcwl_fb_button_custom_icon"],function(){return c(y)&&c(p)&&"custom"===g.val()}),v.dependency(["#yith_wcwl_tw_button_icon","#yith_wcwl_color_tw_button_background"],function(){return c(v)&&c(p)},function(){b.change()}),b.dependency(["#yith_wcwl_tw_button_custom_icon"],function(){return c(v)&&c(p)&&"custom"===b.val()}),k.dependency(["#yith_wcwl_socials_image_url","#yith_wcwl_pr_button_icon","#yith_wcwl_color_pr_button_background"],function(){return c(k)&&c(p)},function(){x.change()}),x.dependency(["#yith_wcwl_pr_button_custom_icon"],function(){return c(k)&&c(p)&&"custom"===x.val()}),C.dependency(["#yith_wcwl_em_button_icon","#yith_wcwl_color_em_button_background"],function(){return c(C)&&c(p)},function(){S.change()}),S.dependency(["#yith_wcwl_em_button_custom_icon"],function(){return c(C)&&c(p)&&"custom"===S.val()}),T.dependency(["#yith_wcwl_wa_button_icon","#yith_wcwl_wa_button_custom_icon","#yith_wcwl_color_wa_button_background"],function(){return c(T)&&c(p)},function(){z.change()}),z.dependency(["#yith_wcwl_wa_button_custom_icon"],function(){return c(T)&&c(p)&&"custom"===z.val()}),v.add(k).dependency(["#yith_wcwl_socials_title","#yith_wcwl_socials_text"],function(){return(c(v)||c(k))&&c(p)}),j.dependency(["#yith_wcwl_show_additional_info_textarea"],c,function(){E.change()}),j.on("change",function(){E.change()}),E.dependency(["#yith_wcwl_additional_info_textarea_label"],function(){return c(j)&&c(E)}),E.on("change",function(){s(this).is(":checked")&&j.is(":checked")?H.removeClass("yith-disabled"):H.addClass("yith-disabled")}),O.dependency(["#woocommerce_promotion_mail_settings\\[content_html\\]"],function(){return"multipart"===O.val()||"html"===O.val()}),O.dependency(["#woocommerce_promotion_mail_settings\\[content_text\\]"],function(){return"multipart"===O.val()||"plain"===O.val()}),W.dependency(["#woocommerce_yith_wcwl_back_in_stock_settings\\[product_exclusions\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[category_exclusions\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[email_type\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[heading\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[subject\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[content_html\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[content_text\\]"],function(){return c(W)},function(){D.change()}),D.dependency(["#woocommerce_yith_wcwl_back_in_stock_settings\\[content_html\\]"],function(){return("multipart"===D.val()||"html"===D.val())&&c(W)}),D.dependency(["#woocommerce_yith_wcwl_back_in_stock_settings\\[content_text\\]"],function(){return("multipart"===D.val()||"plain"===D.val())&&c(W)}),q.dependency(["#woocommerce_yith_wcwl_on_sale_item_settings\\[product_exclusions\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[category_exclusions\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[email_type\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[heading\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[subject\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[content_html\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[content_text\\]"],function(){return c(q)},function(){B.change()}),B.dependency(["#woocommerce_yith_wcwl_on_sale_item_settings\\[content_html\\]"],function(){return("multipart"===B.val()||"html"===B.val())&&c(q)}),B.dependency(["#woocommerce_yith_wcwl_on_sale_item_settings\\[content_text\\]"],function(){return("multipart"===B.val()||"plain"===B.val())&&c(q)}),s(document).on("yith-add-box-button-toggle",function(){var e=s("#new_type"),n=s("#new_options").closest(".yith-add-box-row");e.on("change",function(){var t=e.val();"radio"===t||"select"===t?n.show().fadeTo("slow",1):n.is(":visible")?n.fadeTo("slow",0,function(){s(this).hide()}):n.css("opacity",0).hide()}).change()})});
1
+ jQuery(document).ready(function(s){s.fn.dependency=function(t,e,n,i){var o=s(this);o.on("change",function(){var c=e(o);s.each(t,function(t,e){var n=s(e);if(n.length){var i=n.closest("tr");i.length&&(c?i.show().fadeTo("slow",1):i.is(":visible")?i.fadeTo("slow",0,function(){i.hide()}):i.css("opacity",0).hide())}}),void 0!==n&&n(o,i)}).change()};function n(e,t){var c=this;c.settings={},c.modal=null,c._init=function(){c.settings=s.extend({template:e.data("template"),template_data:{},container:".yith-wcwl-wizard-modal",events:{}},t),"function"==typeof c.settings.events.init&&c.settings.events.init(e,t),c._initOpener()},c._initOpener=function(){e.on("click",function(t){var e=s(this),n=c.settings.template_data;t.preventDefault(),"function"==typeof n&&(n=n(e)),e.WCBackboneModal({template:c.settings.template,variable:n});var i=s(c.settings.container);c._initEditor(i),c._initEnhancedSelect(i),c._initTabs(i),c._initSteps(i),c._initOptions(i,n),c._initEvents(i,c.settings.events)})},c._initEditor=function(t){t.find(".with-editor").each(function(){var n=s(this),t=n.attr("id");tinymce.get(t)&&(restoreTextMode=tinymce.get(t).isHidden(),wp.editor.remove(t)),wp.editor.initialize(t,{tinymce:{wpautop:!0,init_instance_callback:function(e){e.on("Change",function(t){n.val(e.getContent()).change()})}},quicktags:!0,mediaButtons:!0})})},c._initEnhancedSelect=function(t){s(document.body).trigger("wc-enhanced-select-init")},c._initTabs=function(t){t.find(".tabs").on("click","a",function(t){var e=s(this),n=e.closest("ul"),i=n.find("a"),c=n.parent().find(".tab"),o=e.data("target"),_=s(o),a=!1;t.preventDefault(),e.hasClass("active")||(a=!0),i.attr("aria-selected","false").removeClass("active"),e.attr("aria-selected","true").addClass("active"),c.attr("aria-expanded","false").removeClass("active").hide(),_.attr("aria-expanded","true").addClass("active").show(),a&&e.trigger("tabChange")})},c._initOptions=function(i,t){s.each(t,function(t,e){var n=i.find('[name="'+t+'"]');n.length&&e!==n.val()&&(n.is("select")&&!n.find('option[value="'+e+'"]').length?n.append('<option value="'+e+'" selected="selected">'+e+" </option>"):n.val(e))})},c._initSteps=function(i){i.find(".step").hide().first().show(),i.find(".continue-button").on("click",function(t){var e=s(this).closest(".step"),n=e.next(".step");t.preventDefault(),n.length&&c._changeStep(i,e,n)}),i.find(".back-button").on("click",function(t){var e=s(this).closest(".step"),n=e.prev(".step");t.preventDefault(),n.length&&c._changeStep(i,e,n)})},c._initEvents=function(n,t){"function"==typeof c.settings.events.open&&c.settings.events.open(e,n),s.each(t,function(t,e){"init"!==t&&"open"!==t&&("tabChange"===t?n.find(".tabs"):"stepChange"===t?n.find(".step"):n.find(":input")).on(t,function(t){return e(s(this),n,t)})})},c._changeStep=function(o,_,a){_.animate({opacity:0},{duration:200,complete:function(){var t=o.find("article"),e=t.outerWidth(),n=t.outerHeight();t.outerWidth("auto"),t.outerHeight("auto"),_.hide(),a.show();var i=a.outerWidth(),c=a.outerHeight();a.hide(),_.css("opacity",1),t.outerWidth(e),t.outerHeight(n),t.animate({width:i,height:c},{duration:200,complete:function(){a.fadeIn(200)}})}}),a.trigger("stepChange")},c._init()}function i(t,e,n){var i=e.find(".email-preview"),c=e.find("#template").val();o&&o.abort(),o=s.ajax({url:ajaxurl+"?action=preview_promotion_email",data:e.find("form").serialize(),method:"POST",beforeSend:function(){i.block({message:null,overlayCSS:{background:"transparent",opacity:.6}})},complete:function(){i.unblock()},success:function(t){i.removeClass("html plain").addClass(c).find(".no-interactions").html(t)}})}function t(){return{template:"yith-wcwl-promotion-wizard",template_data:function(t){var e;return e=t.hasClass("restore-draft")?t.data("draft"):s.extend(e,{product_id:t.data("product_id"),user_id:t.data("user_id")})},events:{change:i,open:function(t,e,n){e.find("#content_html-tmce").click(),i(0,e)},tabChange:function(t,e,n){e.find("#template").val(t.find(".active").data("template")),i(0,e)},stepChange:function(t,e,n){var i=t.find(".receivers-count"),c=t.find(".show-on-long-queue"),o=c.data("threshold");i.length&&s.ajax({url:ajaxurl+"?action=calculate_promotion_email_receivers",data:e.find("form").serialize(),method:"post",beforeSend:function(){i.css("opacity",.3),c.length&&c.hide()},complete:function(){i.css("opacity",1)},success:function(t){void 0!==t.label&&(i.html(t.label),c.length&&void 0!==t.count&&t.count>o&&c.show())}})}}}}var o=null;s.fn.wizard=function(t){var e=s(this);new n(e,t)},s(".create-promotion").wizard(t()),s(".restore-draft").wizard(t());function e(t){return t.is('input[type="radio"]')||(t=t.find('input[type="radio"]:checked')),"no"===t.val()}function c(t){return t.is(":checked")}var _=s("#yith_wcwl_disable_wishlist_for_unauthenticated_users"),a=s("#yith_wcwl_multi_wishlist_enable"),l=s("#yith_wcwl_enable_multi_wishlist_for_unauthenticated_users"),r=s("#yith_wcwl_modal_enable"),u=s("#yith_wcwl_loop_position"),h=s(".icon-select"),d=s('[name="yith_wcwl_add_to_cart_style"]'),w=s("#yith_wcwl_add_to_cart_icon"),m=s('[name="yith_wcwl_ask_an_estimate_style"]'),f=s("#yith_wcwl_ask_an_estimate_icon"),p=s("#yith_wcwl_enable_share"),y=s("#yith_wcwl_share_fb"),g=s("#yith_wcwl_fb_button_icon"),v=s("#yith_wcwl_share_twitter"),b=s("#yith_wcwl_tw_button_icon"),k=s("#yith_wcwl_share_pinterest"),x=s("#yith_wcwl_pr_button_icon"),C=s("#yith_wcwl_share_email"),S=s("#yith_wcwl_em_button_icon"),T=s("#yith_wcwl_share_whatsapp"),z=s("#yith_wcwl_wa_button_icon"),j=s("#yith_wcwl_show_estimate_button"),E=s("#yith_wcwl_show_additional_info_textarea"),H=s("#yith_wcwl_ask_an_estimate_fields"),O=s("#woocommerce_promotion_mail_settings\\[email_type\\]"),W=s("#woocommerce_yith_wcwl_back_in_stock_settings\\[enabled\\]"),D=s("#woocommerce_yith_wcwl_back_in_stock_settings\\[email_type\\]"),q=s("#woocommerce_yith_wcwl_on_sale_item_settings\\[enabled\\]"),B=s("#woocommerce_yith_wcwl_on_sale_item_settings\\[email_type\\]"),M=s('[id^="type_"]');u.add("select#yith_wcwl_button_position").on("change",function(){var t=s(this);"shortcode"===t.val()?t.parent().next().find(".addon").show():t.parent().next().find(".addon").hide()}).change(),M.on("change",function(){var t=s(this),e=t.val(),n=t.closest(".yith-toggle-content-row").next();"radio"===e||"select"===e?n.show().fadeTo("slow",1):n.is(":visible")?n.fadeTo("slow",0,function(){n.hide()}):n.css("opacity",0).hide()}).change(),d.on("change",function(){w.change()}),m.on("change",function(){f.change()}),h.each(function(){function t(t){return t.id?s('<span><i class="option-icon fa '+t.element.value.toLowerCase()+'" ></i> '+t.text+"</span>"):t.text}s(this).select2({templateResult:t,templateSelection:t})}),_.dependency(["#yith_wcwl_enable_multi_wishlist_for_unauthenticated_users-yes"],function(){return e(_)&&c(a)},function(){l.change()}),a.dependency(["#yith_wcwl_enable_multi_wishlist_for_unauthenticated_users-yes"],function(){return e(_)&&c(a)},function(){l.change()}),l.dependency(["#yith_wcwl_show_login_notice","#yith_wcwl_login_anchor_text"],function(){return c(a)&&e(_)&&e(l)}),r.dependency(["#yith_wcwl_show_exists_in_a_wishlist"],function(){var t="default"!==r.find(":checked").val();return t||s("#yith_wcwl_show_exists_in_a_wishlist").prop("checked",!0),t}),w.dependency(["#yith_wcwl_add_to_cart_custom_icon"],function(){return"custom"===w.val()&&"button_custom"===d.filter(":checked").val()}),f.dependency(["#yith_wcwl_ask_an_estimate_custom_icon"],function(){return"custom"===f.val()&&"button_custom"===m.filter(":checked").val()}),p.dependency(["#yith_wcwl_share_fb"],c,function(){y.change(),g.change(),v.change(),b.change(),k.change(),x.change(),C.change(),S.change(),T.change(),z.change()}),y.dependency(["#yith_wcwl_fb_button_icon","#yith_wcwl_color_fb_button_background"],function(){return c(y)&&c(p)},function(){g.change()}),g.dependency(["#yith_wcwl_fb_button_custom_icon"],function(){return c(y)&&c(p)&&"custom"===g.val()}),v.dependency(["#yith_wcwl_tw_button_icon","#yith_wcwl_color_tw_button_background"],function(){return c(v)&&c(p)},function(){b.change()}),b.dependency(["#yith_wcwl_tw_button_custom_icon"],function(){return c(v)&&c(p)&&"custom"===b.val()}),k.dependency(["#yith_wcwl_socials_image_url","#yith_wcwl_pr_button_icon","#yith_wcwl_color_pr_button_background"],function(){return c(k)&&c(p)},function(){x.change()}),x.dependency(["#yith_wcwl_pr_button_custom_icon"],function(){return c(k)&&c(p)&&"custom"===x.val()}),C.dependency(["#yith_wcwl_em_button_icon","#yith_wcwl_color_em_button_background"],function(){return c(C)&&c(p)},function(){S.change()}),S.dependency(["#yith_wcwl_em_button_custom_icon"],function(){return c(C)&&c(p)&&"custom"===S.val()}),T.dependency(["#yith_wcwl_wa_button_icon","#yith_wcwl_wa_button_custom_icon","#yith_wcwl_color_wa_button_background"],function(){return c(T)&&c(p)},function(){z.change()}),z.dependency(["#yith_wcwl_wa_button_custom_icon"],function(){return c(T)&&c(p)&&"custom"===z.val()}),v.add(k).dependency(["#yith_wcwl_socials_title","#yith_wcwl_socials_text"],function(){return(c(v)||c(k))&&c(p)}),j.dependency(["#yith_wcwl_show_additional_info_textarea"],c,function(){E.change()}),j.on("change",function(){E.change()}),E.dependency(["#yith_wcwl_additional_info_textarea_label"],function(){return c(j)&&c(E)}),E.on("change",function(){s(this).is(":checked")&&j.is(":checked")?H.removeClass("yith-disabled"):H.addClass("yith-disabled")}),O.dependency(["#woocommerce_promotion_mail_settings\\[content_html\\]"],function(){return"multipart"===O.val()||"html"===O.val()}),O.dependency(["#woocommerce_promotion_mail_settings\\[content_text\\]"],function(){return"multipart"===O.val()||"plain"===O.val()}),W.dependency(["#woocommerce_yith_wcwl_back_in_stock_settings\\[product_exclusions\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[category_exclusions\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[email_type\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[heading\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[subject\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[content_html\\]","#woocommerce_yith_wcwl_back_in_stock_settings\\[content_text\\]"],function(){return c(W)},function(){D.change()}),D.dependency(["#woocommerce_yith_wcwl_back_in_stock_settings\\[content_html\\]"],function(){return("multipart"===D.val()||"html"===D.val())&&c(W)}),D.dependency(["#woocommerce_yith_wcwl_back_in_stock_settings\\[content_text\\]"],function(){return("multipart"===D.val()||"plain"===D.val())&&c(W)}),q.dependency(["#woocommerce_yith_wcwl_on_sale_item_settings\\[product_exclusions\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[category_exclusions\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[email_type\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[heading\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[subject\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[content_html\\]","#woocommerce_yith_wcwl_on_sale_item_settings\\[content_text\\]"],function(){return c(q)},function(){B.change()}),B.dependency(["#woocommerce_yith_wcwl_on_sale_item_settings\\[content_html\\]"],function(){return("multipart"===B.val()||"html"===B.val())&&c(q)}),B.dependency(["#woocommerce_yith_wcwl_on_sale_item_settings\\[content_text\\]"],function(){return("multipart"===B.val()||"plain"===B.val())&&c(q)}),s(document).on("yith-add-box-button-toggle",function(){var e=s("#new_type"),n=s("#new_options").closest(".yith-add-box-row");e.on("change",function(){var t=e.val();"radio"===t||"select"===t?n.show().fadeTo("slow",1):n.is(":visible")?n.fadeTo("slow",0,function(){s(this).hide()}):n.css("opacity",0).hide()}).change()})});
assets/js/jquery.yith-wcwl.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(r){function i(){void 0!==r.fn.selectBox&&r("select.selectBox").filter(":visible").not(".enhanced").selectBox().addClass("enhanced")}function e(){if(void 0!==r.prettyPhoto){var t={hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1,overlay_gallery:!1,default_width:500,changepicturecallback:function(){i(),r(".wishlist-select").change(),r(document).trigger("yith_wcwl_popup_opened",[this])},markup:'<div class="pp_pic_holder"><div class="ppt">&nbsp;</div><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content_container"><div class="pp_left"><div class="pp_right"><div class="pp_content"><div class="pp_loaderIcon"></div><div class="pp_fade"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details"><a class="pp_close" href="#">Close</a></div></div></div></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div><div class="pp_overlay yith-wcwl-overlay"></div>'};r('a[data-rel^="prettyPhoto[add_to_wishlist_"]').add('a[data-rel="prettyPhoto[ask_an_estimate]"]').add('a[data-rel="prettyPhoto[create_wishlist]"]').unbind("click").prettyPhoto(t),r('a[data-rel="prettyPhoto[move_to_another_wishlist]"]').on("click",function(){var t=r(this),i=r("#move_to_another_wishlist").find("form"),e=i.find(".row-id"),a=t.closest("[data-row-id]").data("row-id");e.length&&e.remove(),i.append('<input type="hidden" name="row_id" class="row-id" value="'+a+'"/>')}).prettyPhoto(t),new MutationObserver(function(t,i){for(var e in t){var a=t[e];"childList"===a.type&&(void 0!==a.addedNodes&&a.addedNodes.forEach(function(t){t.classList.contains("yith-wcwl-overlay")&&r("body").addClass("yith-wcwl-with-pretty-photo")}),void 0!==a.removedNodes&&a.removedNodes.forEach(function(t){t.classList.contains("yith-wcwl-overlay")&&r("body").removeClass("yith-wcwl-with-pretty-photo")}))}}).observe(document.body,{childList:!0})}}function a(){r(".wishlist_table").find('.product-checkbox input[type="checkbox"]').off("change").on("change",function(){var t=r(this);t.parent().removeClass("checked").removeClass("unchecked").addClass(t.is(":checked")?"checked":"unchecked")}).trigger("change")}function o(){r(".add_to_cart").filter("[data-icon]").not(".icon-added").each(function(){var t,i=r(this),e=i.data("icon");t=e.match(/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)?/gi)?r("<img/>",{src:e}):r("<i/>",{class:"fa "+e}),i.prepend(t).addClass("icon-added")})}function h(){i(),e(),a(),o(),d(),n(),_(),l(),c(),r(document).trigger("yith_wcwl_init_after_ajax")}function n(){yith_wcwl_l10n.enable_tooltip&&r(".yith-wcwl-add-to-wishlist").find("[data-title]").each(function(){var t=r(this);t.hasClass("tooltip-added")||(t.on("mouseenter",function(){var t,i=r(this),e=null,a=i.outerWidth(),o=0;e=r("<span>",{class:"yith-wcwl-tooltip",text:i.data("title")}),i.append(e),t=e.outerWidth()+6,e.outerWidth(t),o=(a-t)/2,e.css({left:o.toFixed(0)+"px"}).fadeIn(200),i.addClass("with-tooltip")}).on("mouseleave",function(){var t=r(this);t.find(".yith-wcwl-tooltip").fadeOut(200,function(){t.removeClass("with-tooltip").find(".yith-wcwl-tooltip").remove()})}),t.addClass("tooltip-added"))})}function d(){r(".yith-wcwl-add-button").filter(".with-dropdown").on("mouseleave",function(){var t=r(this).find(".yith-wcwl-dropdown");t.length&&t.fadeOut(200)}).children("a").on("mouseenter",function(){var t=r(this).closest(".with-dropdown"),i=t.find(".yith-wcwl-dropdown");i.length&&i.children().length&&t.find(".yith-wcwl-dropdown").fadeIn(200)})}function l(){void 0!==yith_wcwl_l10n.enable_drag_n_drop&&yith_wcwl_l10n.enable_drag_n_drop&&r(".wishlist_table").each(function(){var e=r(this),a=!1;e.sortable({items:"[data-row-id]",helper:function(t,i){return i.children().each(function(){r(this).width(r(this).width())}),i},update:function(){var t=e.find("[data-row-id]"),i=[];t.length&&(a&&a.abort(),t.each(function(){var t=r(this);i.push(t.data("row-id"))}),a=r.ajax({data:{action:yith_wcwl_l10n.actions.sort_wishlist_items,positions:i,wishlist_token:e.data("token"),page:e.data("page"),per_page:e.data("per-page")},method:"POST",url:yith_wcwl_l10n.ajax_url}))}})})}function c(){r(".copy-trigger").on("click",function(){var t=r(".copy-target");if(0<t.length)if(t.is("input"))s()?t[0].setSelectionRange(0,9999):t.select(),document.execCommand("copy");else{var i=r("<input/>",{val:t.text(),type:"text"});b("body").append(i),s()?i[0].setSelectionRange(0,9999):i.select(),document.execCommand("copy"),i.remove()}})}function _(){r(".wishlist_table").filter(".images_grid").not(".enhanced").on("click","[data-row-id] .product-thumbnail a",function(t){var i=r(this).closest("[data-row-id]"),e=i.siblings("[data-row-id]"),a=i.find(".item-details");t.preventDefault(),a.length&&(e.removeClass("show"),i.toggleClass("show"))}).on("click","[data-row-id] a.close",function(t){var i=r(this).closest("[data-row-id]"),e=i.find(".item-details");t.preventDefault(),e.length&&i.removeClass("show")}).on("click","[data-row-id] a.remove_from_wishlist",function(t){var i=r(this);return t.stopPropagation(),f(i),!1}).addClass("enhanced"),r(document).on("click",function(t){r(t.target).closest("[data-row-id]").length||r(".wishlist_table").filter(".images_grid").find(".show").removeClass("show")}).on("added_to_cart",function(){r(".wishlist_table").filter(".images_grid").find(".show").removeClass("show")})}function w(i,t,e){i.action=yith_wcwl_l10n.actions.move_to_another_wishlist_action,""!==i.wishlist_token&&""!==i.destination_wishlist_token&&""!==i.item_id&&r.ajax({beforeSend:t,url:yith_wcwl_l10n.ajax_url,data:i,dataType:"json",method:"post",success:function(t){e(t),h(),r("body").trigger("moved_to_another_wishlist",[r(this),i.item_id])}})}function f(i){var t=i.parents(".cart.wishlist_table"),e=i.parents("[data-row-id]"),a=e.data("row-id"),o=t.data("id"),n=t.data("token"),s={action:yith_wcwl_l10n.actions.remove_from_wishlist_action,remove_from_wishlist:a,wishlist_id:o,wishlist_token:n,fragments:C(a)};r.ajax({beforeSend:function(){y(t)},complete:function(){k(t)},data:s,method:"post",success:function(t){void 0!==t.fragments&&j(t.fragments),h(),r("body").trigger("removed_from_wishlist",[i,e])},url:yith_wcwl_l10n.ajax_url})}function p(t){var i=r(this),e=i.closest(".wishlist_table"),a=null;t.preventDefault(),(a=e.length?i.closest("[data-wishlist-id]").find(".wishlist-title"):i.parents(".wishlist-title")).next().show(),a.hide()}function u(t){var i=r(this);t.preventDefault(),i.parents(".hidden-title-form").hide(),i.parents(".hidden-title-form").prev().show()}function m(t){if(void 0!==r.prettyPhoto&&void 0!==r.prettyPhoto.close)if(void 0!==t){var i=r(".pp_content_container"),e=i.find(".pp_content"),a=i.find(".yith-wcwl-popup-form"),o=a.closest(".pp_pic_holder");if(a.length){var n=r("<div/>",{class:"yith-wcwl-popup-feedback"});n.append(r("<i/>",{class:"fa fa-check heading-icon"})),n.append(r("<p/>",{class:"feedback",html:t})),n.css("display","none"),e.css("height","auto"),a.after(n),a.fadeOut(200,function(){n.fadeIn()}),o.addClass("feedback"),o.css("left",r(window).innerWidth()/2-o.outerWidth()/2+"px"),setTimeout(m,3e3)}}else try{r.prettyPhoto.close()}catch(t){}}function v(t){var i=r("#yith-wcwl-popup-message"),e=r("#yith-wcwl-message");yith_wcwl_l10n.enable_notices&&(e.html(t),i.css("margin-left","-"+r(i).width()+"px").fadeIn(),window.setTimeout(function(){i.fadeOut()},2e3))}function g(n){var t=r("select.wishlist-select"),i=r("ul.yith-wcwl-dropdown");t.each(function(){var e=r(this),t=e.find("option"),i=t.filter('[value="new"]');t.not(i).remove(),r.each(n,function(t,i){r("<option>",{value:i.id,html:i.wishlist_name}).appendTo(e)}),e.append(i)}),i.each(function(){var e=r(this),t=e.find("li"),i=e.closest(".yith-wcwl-add-button").children("a.add_to_wishlist"),a=i.attr("data-product-id"),o=i.attr("data-product-type");t.remove(),r.each(n,function(t,i){r("<li>").append(r("<a>",{rel:"nofollow",html:i.wishlist_name,class:"add_to_wishlist",href:i.add_to_this_wishlist_url,"data-product-id":a,"data-product-type":o,"data-wishlist-id":i.id})).appendTo(e)})})}function y(t){void 0!==r.fn.block&&t.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"40px 40px",opacity:1}})}function k(t){void 0!==r.fn.unblock&&t.stop(!0).css("opacity","1").unblock()}function x(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var t=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}function C(t){var e={},i=r(".wishlist-fragment");return t&&("object"==typeof t?((t=r.extend({s:"",firstLoad:!1},t)).s&&(i=i.not("[data-fragment-ref]").add(i.filter('[data-fragment-ref="'+t.s+'"]'))),t.firstLoad&&(i=i.filter(".on-first-load"))):"string"!=typeof t&&"number"!=typeof t||(i=i.not("[data-fragment-ref]").add(i.filter('[data-fragment-ref="'+t+'"]')))),i.each(function(){var t=r(this),i=t.attr("class");e[i]=t.data("fragment-options")}),e}function j(t){r.each(t,function(t,i){var e="."+t.split(" ").filter(function(t){return t.length&&"exists"!==t}).join("."),a=r(e),o=r(i).filter(e);o.length||(o=r(i).find(e)),a.length&&o.length&&a.replaceWith(o)})}function s(){return navigator.userAgent.match(/ipad|iphone/i)}r(document).on("yith_wcwl_init",function(){var t=r(this),s="undefined"!=typeof wc_add_to_cart_params&&null!==wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"";t.on("click",".add_to_wishlist",function(t){var a=r(this),i=a.attr("data-product-id"),o=r(".add-to-wishlist-"+i),e={add_to_wishlist:i,product_type:a.data("product-type"),wishlist_id:a.data("wishlist-id"),action:yith_wcwl_l10n.actions.add_to_wishlist_action,fragments:C(i)};if(t.preventDefault(),jQuery(document.body).trigger("adding_to_wishlist"),yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.modal_enable){var n=a.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"),s=n.find(".wishlist-select"),d=n.find(".wishlist-name"),l=n.find(".wishlist-visibility").filter(":checked");if(e.wishlist_id=s.is(":visible")?s.val():"new",e.wishlist_name=d.val(),e.wishlist_visibility=l.val(),"new"===e.wishlist_id&&!e.wishlist_name)return d.closest("p").addClass("woocommerce-invalid"),!1;d.closest("p").removeClass("woocommerce-invalid")}if(x())return r.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:e,dataType:"json",beforeSend:function(){y(a)},complete:function(){k(a)},success:function(t){var i=t.result,e=t.message;yith_wcwl_l10n.multi_wishlist?(m(e),void 0!==t.user_wishlists&&g(t.user_wishlists)):v(e),"true"!==i&&"exists"!==i||(void 0!==t.fragments&&j(t.fragments),yith_wcwl_l10n.multi_wishlist&&!yith_wcwl_l10n.hide_add_button||o.find(".yith-wcwl-add-button").remove(),o.addClass("exists")),h(),r("body").trigger("added_to_wishlist",[a,o])}}),!1;alert(yith_wcwl_l10n.labels.cookie_disabled)}),t.on("click",".wishlist_table .remove_from_wishlist",function(t){var i=r(this);return t.preventDefault(),f(i),!1}),t.on("adding_to_cart","body",function(t,i,e){void 0!==i&&void 0!==e&&i.closest(".wishlist_table").length&&(e.remove_from_wishlist_after_add_to_cart=i.closest("[data-row-id]").data("row-id"),e.wishlist_id=i.closest(".wishlist_table").data("id"),"undefined"!=typeof wc_add_to_cart_params&&(wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart),"undefined"!=typeof yith_wccl_general&&(yith_wccl_general.cart_redirect=yith_wcwl_l10n.redirect_to_cart))}),t.on("added_to_cart","body",function(t,i,e,a){if(void 0!==a&&a.closest(".wishlist_table").length){"undefined"!=typeof wc_add_to_cart_params&&(wc_add_to_cart_params.cart_redirect_after_add=s),"undefined"!=typeof yith_wccl_general&&(yith_wccl_general.cart_redirect=s);var o=a.closest("[data-row-id]"),n=o.closest(".wishlist-fragment").data("fragment-options");a.removeClass("added"),o.find(".added_to_cart").remove(),yith_wcwl_l10n.remove_from_wishlist_after_add_to_cart&&n.is_user_owner&&o.remove()}}),t.on("added_to_cart","body",function(){var t=r(".woocommerce-message");0===t.length?r("#yith-wcwl-form").prepend(yith_wcwl_l10n.labels.added_to_cart_message):t.fadeOut(300,function(){r(this).replaceWith(yith_wcwl_l10n.labels.added_to_cart_message).fadeIn()})}),t.on("cart_page_refreshed","body",h),t.on("click",".show-title-form",p),t.on("click",".wishlist-title-with-form h2",p),t.on("click",".remove_from_all_wishlists",function(t){var i=r(this),e=i.attr("data-product-id"),a=i.data("wishlist-id"),o=i.closest(".content"),n={action:yith_wcwl_l10n.actions.remove_from_all_wishlists,prod_id:e,wishlist_id:a,fragments:C(e)};t.preventDefault(),r.ajax({beforeSend:function(){y(o)},complete:function(){k(o)},data:n,dataType:"json",method:"post",success:function(t){void 0!==t.fragments&&j(t.fragments),h()},url:yith_wcwl_l10n.ajax_url})}),t.on("click",".hide-title-form",u),t.on("change",".change-wishlist",function(){var t=r(this),i=t.parents(".cart.wishlist_table"),e=i.data("token"),a=t.parents("[data-row-id]").data("row-id");w({wishlist_token:e,destination_wishlist_token:t.val(),item_id:a,fragments:C()},function(){y(i)},function(t){void 0!==t.fragments&&j(t.fragments),k(i)})}),t.on("click",".yith-wcwl-popup-footer .move_to_wishlist",function(){var e=r(this),t=e.attr("data-product-id"),i=e.data("origin-wishlist-id"),a=e.closest("form"),o=a.find(".wishlist-select").val(),n=a.find(".wishlist-name"),s=n.val(),d=a.find(".wishlist-visibility").filter(":checked").val();if("new"===o&&!s)return n.closest("p").addClass("woocommerce-invalid"),!1;n.closest("p").removeClass("woocommerce-invalid"),w({wishlist_token:i,destination_wishlist_token:o,item_id:t,wishlist_name:s,wishlist_visibility:d,fragments:C(t)},function(){y(e)},function(t){var i=t.message;yith_wcwl_l10n.multi_wishlist?(m(i),void 0!==t.user_wishlists&&g(t.user_wishlists)):v(i),void 0!==t.fragments&&j(t.fragments),h(),k(e)})}),t.on("click",".delete_item",function(){var a=r(this),t=a.attr("data-product-id"),i=a.data("item-id"),o=r(".add-to-wishlist-"+t);return r.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:yith_wcwl_l10n.actions.delete_item_action,item_id:i,fragments:C(t)},dataType:"json",beforeSend:function(){y(a)},complete:function(){k(a)},method:"post",success:function(t){var i=t.fragments,e=t.message;yith_wcwl_l10n.multi_wishlist&&m(e),a.closest(".yith-wcwl-remove-button").length||v(e),void 0!==i&&j(i),h(),r("body").trigger("removed_from_wishlist",[a,o])}}),!1}),t.on("change",".yith-wcwl-popup-content .wishlist-select",function(){var t=r(this);"new"===t.val()?t.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").show():t.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()}),t.on("change","#bulk_add_to_cart",function(){var t=r(this),i=t.closest(".wishlist_table").find("[data-row-id]").find('input[type="checkbox"]:not(:disabled)');t.is(":checked")?i.attr("checked","checked").change():i.removeAttr("checked").change()}),t.on("submit",".wishlist-ask-an-estimate-popup",function(){var t=r(this),e=t.closest("form"),a=t.closest(".pp_content"),i=e.serialize();return r.ajax({beforeSend:function(){y(e)},complete:function(){k(e)},data:i+"&action="+yith_wcwl_l10n.actions.ask_an_estimate,dataType:"json",method:"post",success:function(t){if(void 0!==t.result&&t.result){var i=t.template;void 0!==i&&(e.replaceWith(i),a.css("height","auto"),setTimeout(m,3e3))}else void 0!==t.message&&(e.find(".woocommerce-error").remove(),e.find(".popup-description").after(r("<div>",{text:t.message,class:"woocommerce-error"})))},url:yith_wcwl_l10n.ajax_url}),!1}),t.on("click",".yith-wfbt-add-wishlist",function(t){t.preventDefault();var i=r(this),e=r("#yith-wcwl-form");r("html, body").animate({scrollTop:e.offset().top},500),function(t,e){var i=t.data("data-product-id"),a=r(document).find(".cart.wishlist_table"),o=a.data("pagination"),n=a.data("per-page"),s=a.data("id"),d=a.data("token"),l={action:yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,pagination:o,per_page:n,wishlist_id:s,wishlist_token:d,add_to_wishlist:i,product_type:t.data("product-type")};if(!x())return alert(yith_wcwl_l10n.labels.cookie_disabled);r.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:l,dataType:"html",beforeSend:function(){y(a)},complete:function(){k(a)},success:function(t){var i=r(t).find("#yith-wcwl-form");e.replaceWith(i),h()}})}(i,e)}),t.on("submit",".yith-wcwl-popup-form",function(){return!1}),t.on("yith_infs_added_elem",function(){e()}),t.on("found_variation",function(t,i){var a=r(t.target).data("product_id"),o=i.variation_id,e=r('.add_to_wishlist[data-product-id="'+a+'"]').add('.add_to_wishlist[data-original-product-id="'+a+'"]');a&&o&&e.length&&e.each(function(){var t,i=r(this),e=i.closest(".yith-wcwl-add-to-wishlist");i.attr("data-original-product-id",a),i.attr("data-product-id",o),console.log(i,i.attr("data-product-id")),e.length&&(void 0!==(t=e.data("fragment-options"))&&(t.product_id=o,e.data("fragment-options",t)),e.removeClass(function(t,i){return i.match(/add-to-wishlist-\S+/g).join(" ")}).addClass("add-to-wishlist-"+o).attr("data-fragment-ref",o))})}),t.on("reset_data",function(t){var o=r(t.target).data("product_id"),i=r('.add_to_wishlist[data-original-product-id="'+o+'"]');o&&i.length&&i.each(function(){var t,i=r(this),e=i.closest(".yith-wcwl-add-to-wishlist"),a=i.attr("data-product-id");i.attr("data-product-id",o),i.attr("data-original-product-id",""),e.length&&(void 0!==(t=e.data("fragment-options"))&&(t.product_id=o,e.data("fragment-options",t)),e.removeClass("add-to-wishlist-"+a).addClass("add-to-wishlist-"+o).attr("data-fragment-ref",o))})}),t.on("yith_wcwl_fragments_loaded",function(t){r(".variations_form").find(".variations select").last().change()}),function(){if(!yith_wcwl_l10n.enable_notices)return;if(r(".yith-wcwl-add-to-wishlist").length&&!r("#yith-wcwl-popup-message").length){var t=r("<div>").attr("id","yith-wcwl-message"),i=r("<div>").attr("id","yith-wcwl-popup-message").html(t).hide();r("body").prepend(i)}}(),n(),d(),l(),function(){var n,s;r(".wishlist_table").on("change",".product-quantity input",function(){var t=r(this),i=t.closest("[data-row-id]"),e=i.data("row-id"),a=t.closest(".wishlist_table"),o=a.data("token");clearTimeout(s),i.find(".add_to_cart").data("quantity",t.val()),s=setTimeout(function(){n&&n.abort(),n=r.ajax({beforeSend:function(){y(a)},complete:function(){k(a)},data:{product_id:e,wishlist_token:o,quantity:t.val(),action:yith_wcwl_l10n.actions.update_item_quantity},method:"POST",url:yith_wcwl_l10n.ajax_url})},1e3)})}(),_(),r(document).on("click",".show-tab",function(t){var i=r(this),e=i.closest(".yith-wcwl-popup-content"),a=i.data("tab"),o=e.find(".tab").filter("."+a);if(t.preventDefault(),!o.length)return!1;i.addClass("active").siblings(".show-tab").removeClass("active"),o.show().siblings(".tab").hide(),"create"===a?e.prepend('<input type="hidden" id="new_wishlist_selector" class="wishlist-select" value="new">'):e.find("#new_wishlist_selector").remove()}),r(document).on("change",".wishlist-select",function(t){var i=r(this),e=i.closest(".yith-wcwl-popup-content"),a=i.closest(".tab"),o=e.find(".tab.create"),n=e.find(".show-tab"),s=n.filter('[data-tab="create"]');"new"===i.val()&&o.length&&(a.hide(),o.show(),n.removeClass("active"),s.addClass("active"),i.find("option").removeProp("selected"),i.change())}),i(),a(),e(),o(),function(){var c=!1;r(window).on("resize",function(t){var i=r(".wishlist_table.responsive"),e=i.is(".mobile"),a=window.matchMedia("(max-width: 768px)"),o=i.closest("form"),n=o.attr("class"),s=o.data("fragment-options"),d={},l=!1;i.length&&(a.matches&&i&&!e?(s.is_mobile="yes",l=!0):!a.matches&&i&&e&&(s.is_mobile="no",l=!0),l&&(c&&c.abort(),d[n]=s,c=r.ajax({beforeSend:function(){y(i)},complete:function(){k(i)},data:{action:yith_wcwl_l10n.actions.load_mobile_action,fragments:d},method:"post",success:function(t){void 0!==t.fragments&&(j(t.fragments),h(),r(document).trigger("yith_wcwl_responsive_template",[e,t.fragments]))},url:yith_wcwl_l10n.ajax_url})))})}(),c(),function(){if(!yith_wcwl_l10n.enable_ajax_loading)return;var i=C({firstLoad:!0});if(!i)return;r.ajax({data:{action:yith_wcwl_l10n.actions.load_fragments,fragments:i},method:"post",success:function(t){void 0!==t.fragments&&(j(t.fragments),h(),r(document).trigger("yith_wcwl_fragments_loaded",[i,t.fragments]))},url:yith_wcwl_l10n.ajax_url})}()}).trigger("yith_wcwl_init")});
1
+ jQuery(document).ready(function(r){function i(){void 0!==r.fn.selectBox&&r("select.selectBox").filter(":visible").not(".enhanced").selectBox().addClass("enhanced")}function e(){if(void 0!==r.prettyPhoto){var t={hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1,overlay_gallery:!1,default_width:500,changepicturecallback:function(){i(),r(".wishlist-select").change(),r(document).trigger("yith_wcwl_popup_opened",[this])},markup:'<div class="pp_pic_holder"><div class="ppt">&nbsp;</div><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content_container"><div class="pp_left"><div class="pp_right"><div class="pp_content"><div class="pp_loaderIcon"></div><div class="pp_fade"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details"><a class="pp_close" href="#">Close</a></div></div></div></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div><div class="pp_overlay yith-wcwl-overlay"></div>'};r('a[data-rel^="prettyPhoto[add_to_wishlist_"]').add('a[data-rel="prettyPhoto[ask_an_estimate]"]').add('a[data-rel="prettyPhoto[create_wishlist]"]').unbind("click").prettyPhoto(t),r('a[data-rel="prettyPhoto[move_to_another_wishlist]"]').on("click",function(){var t=r(this),i=r("#move_to_another_wishlist").find("form"),e=i.find(".row-id"),a=t.closest("[data-row-id]").data("row-id");e.length&&e.remove(),i.append('<input type="hidden" name="row_id" class="row-id" value="'+a+'"/>')}).prettyPhoto(t),new MutationObserver(function(t,i){for(var e in t){var a=t[e];"childList"===a.type&&(void 0!==a.addedNodes&&a.addedNodes.forEach(function(t){t.classList.contains("yith-wcwl-overlay")&&r("body").addClass("yith-wcwl-with-pretty-photo")}),void 0!==a.removedNodes&&a.removedNodes.forEach(function(t){t.classList.contains("yith-wcwl-overlay")&&r("body").removeClass("yith-wcwl-with-pretty-photo")}))}}).observe(document.body,{childList:!0})}}function a(){r(".wishlist_table").find('.product-checkbox input[type="checkbox"]').off("change").on("change",function(){var t=r(this);t.parent().removeClass("checked").removeClass("unchecked").addClass(t.is(":checked")?"checked":"unchecked")}).trigger("change")}function o(){r(".add_to_cart").filter("[data-icon]").not(".icon-added").each(function(){var t,i=r(this),e=i.data("icon");t=e.match(/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)?/gi)?r("<img/>",{src:e}):r("<i/>",{class:"fa "+e}),i.prepend(t).addClass("icon-added")})}function h(){i(),e(),a(),o(),d(),n(),_(),l(),c(),r(document).trigger("yith_wcwl_init_after_ajax")}function n(){yith_wcwl_l10n.enable_tooltip&&r(".yith-wcwl-add-to-wishlist").find("[data-title]").each(function(){var t=r(this);t.hasClass("tooltip-added")||(t.on("mouseenter",function(){var t,i=r(this),e=null,a=i.outerWidth(),o=0;e=r("<span>",{class:"yith-wcwl-tooltip",text:i.data("title")}),i.append(e),t=e.outerWidth()+6,e.outerWidth(t),o=(a-t)/2,e.css({left:o.toFixed(0)+"px"}).fadeIn(200),i.addClass("with-tooltip")}).on("mouseleave",function(){var t=r(this);t.find(".yith-wcwl-tooltip").fadeOut(200,function(){t.removeClass("with-tooltip").find(".yith-wcwl-tooltip").remove()})}),t.addClass("tooltip-added"))})}function d(){r(".yith-wcwl-add-button").filter(".with-dropdown").on("mouseleave",function(){var t=r(this).find(".yith-wcwl-dropdown");t.length&&t.fadeOut(200)}).children("a").on("mouseenter",function(){var t=r(this).closest(".with-dropdown"),i=t.find(".yith-wcwl-dropdown");i.length&&i.children().length&&t.find(".yith-wcwl-dropdown").fadeIn(200)})}function l(){void 0!==yith_wcwl_l10n.enable_drag_n_drop&&yith_wcwl_l10n.enable_drag_n_drop&&r(".wishlist_table").each(function(){var e=r(this),a=!1;e.sortable({items:"[data-row-id]",helper:function(t,i){return i.children().each(function(){r(this).width(r(this).width())}),i},update:function(){var t=e.find("[data-row-id]"),i=[];t.length&&(a&&a.abort(),t.each(function(){var t=r(this);i.push(t.data("row-id"))}),a=r.ajax({data:{action:yith_wcwl_l10n.actions.sort_wishlist_items,positions:i,wishlist_token:e.data("token"),page:e.data("page"),per_page:e.data("per-page")},method:"POST",url:yith_wcwl_l10n.ajax_url}))}})})}function c(){r(".copy-trigger").on("click",function(){var t=r(".copy-target");if(0<t.length)if(t.is("input"))s()?t[0].setSelectionRange(0,9999):t.select(),document.execCommand("copy");else{var i=r("<input/>",{val:t.text(),type:"text"});b("body").append(i),s()?i[0].setSelectionRange(0,9999):i.select(),document.execCommand("copy"),i.remove()}})}function _(){r(".wishlist_table").filter(".images_grid").not(".enhanced").on("click","[data-row-id] .product-thumbnail a",function(t){var i=r(this).closest("[data-row-id]"),e=i.siblings("[data-row-id]"),a=i.find(".item-details");t.preventDefault(),a.length&&(e.removeClass("show"),i.toggleClass("show"))}).on("click","[data-row-id] a.close",function(t){var i=r(this).closest("[data-row-id]"),e=i.find(".item-details");t.preventDefault(),e.length&&i.removeClass("show")}).on("click","[data-row-id] a.remove_from_wishlist",function(t){var i=r(this);return t.stopPropagation(),f(i),!1}).addClass("enhanced"),r(document).on("click",function(t){r(t.target).closest("[data-row-id]").length||r(".wishlist_table").filter(".images_grid").find(".show").removeClass("show")}).on("added_to_cart",function(){r(".wishlist_table").filter(".images_grid").find(".show").removeClass("show")})}function w(i,t,e){i.action=yith_wcwl_l10n.actions.move_to_another_wishlist_action,""!==i.wishlist_token&&""!==i.destination_wishlist_token&&""!==i.item_id&&r.ajax({beforeSend:t,url:yith_wcwl_l10n.ajax_url,data:i,dataType:"json",method:"post",success:function(t){e(t),h(),r("body").trigger("moved_to_another_wishlist",[r(this),i.item_id])}})}function f(i){var t=i.parents(".cart.wishlist_table"),e=i.parents("[data-row-id]"),a=e.data("row-id"),o=t.data("id"),n=t.data("token"),s={action:yith_wcwl_l10n.actions.remove_from_wishlist_action,remove_from_wishlist:a,wishlist_id:o,wishlist_token:n,fragments:C(a)};r.ajax({beforeSend:function(){y(t)},complete:function(){k(t)},data:s,method:"post",success:function(t){void 0!==t.fragments&&j(t.fragments),h(),r("body").trigger("removed_from_wishlist",[i,e])},url:yith_wcwl_l10n.ajax_url})}function p(t){var i=r(this),e=i.closest(".wishlist_table"),a=null;t.preventDefault(),(a=e.length?i.closest("[data-wishlist-id]").find(".wishlist-title"):i.parents(".wishlist-title")).next().show(),a.hide()}function u(t){var i=r(this);t.preventDefault(),i.parents(".hidden-title-form").hide(),i.parents(".hidden-title-form").prev().show()}function m(t){if(void 0!==r.prettyPhoto&&void 0!==r.prettyPhoto.close)if(void 0!==t){var i=r(".pp_content_container"),e=i.find(".pp_content"),a=i.find(".yith-wcwl-popup-form"),o=a.closest(".pp_pic_holder");if(a.length){var n=r("<div/>",{class:"yith-wcwl-popup-feedback"});n.append(r("<i/>",{class:"fa fa-check heading-icon"})),n.append(r("<p/>",{class:"feedback",html:t})),n.css("display","none"),e.css("height","auto"),a.after(n),a.fadeOut(200,function(){n.fadeIn()}),o.addClass("feedback"),o.css("left",r(window).innerWidth()/2-o.outerWidth()/2+"px"),setTimeout(m,yith_wcwl_l10n.popup_timeout)}}else try{r.prettyPhoto.close()}catch(t){}}function v(t){var i=r("#yith-wcwl-popup-message"),e=r("#yith-wcwl-message");yith_wcwl_l10n.enable_notices&&(e.html(t),i.css("margin-left","-"+r(i).width()+"px").fadeIn(),window.setTimeout(function(){i.fadeOut()},yith_wcwl_l10n.popup_timeout))}function g(n){var t=r("select.wishlist-select"),i=r("ul.yith-wcwl-dropdown");t.each(function(){var e=r(this),t=e.find("option"),i=t.filter('[value="new"]');t.not(i).remove(),r.each(n,function(t,i){r("<option>",{value:i.id,html:i.wishlist_name}).appendTo(e)}),e.append(i)}),i.each(function(){var e=r(this),t=e.find("li"),i=e.closest(".yith-wcwl-add-button").children("a.add_to_wishlist"),a=i.attr("data-product-id"),o=i.attr("data-product-type");t.remove(),r.each(n,function(t,i){r("<li>").append(r("<a>",{rel:"nofollow",html:i.wishlist_name,class:"add_to_wishlist",href:i.add_to_this_wishlist_url,"data-product-id":a,"data-product-type":o,"data-wishlist-id":i.id})).appendTo(e)})})}function y(t){void 0!==r.fn.block&&t.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"40px 40px",opacity:1}})}function k(t){void 0!==r.fn.unblock&&t.stop(!0).css("opacity","1").unblock()}function x(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var t=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}function C(t){var e={},i=r(".wishlist-fragment");return t&&("object"==typeof t?((t=r.extend({s:"",firstLoad:!1},t)).s&&(i=i.not("[data-fragment-ref]").add(i.filter('[data-fragment-ref="'+t.s+'"]'))),t.firstLoad&&(i=i.filter(".on-first-load"))):"string"!=typeof t&&"number"!=typeof t||(i=i.not("[data-fragment-ref]").add(i.filter('[data-fragment-ref="'+t+'"]')))),i.each(function(){var t=r(this),i=t.attr("class");e[i]=t.data("fragment-options")}),e}function j(t){r.each(t,function(t,i){var e="."+t.split(" ").filter(function(t){return t.length&&"exists"!==t}).join("."),a=r(e),o=r(i).filter(e);o.length||(o=r(i).find(e)),a.length&&o.length&&a.replaceWith(o)})}function s(){return navigator.userAgent.match(/ipad|iphone/i)}r(document).on("yith_wcwl_init",function(){var t=r(this),s="undefined"!=typeof wc_add_to_cart_params&&null!==wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"";t.on("click",".add_to_wishlist",function(t){var a=r(this),i=a.attr("data-product-id"),o=r(".add-to-wishlist-"+i),e={add_to_wishlist:i,product_type:a.data("product-type"),wishlist_id:a.data("wishlist-id"),action:yith_wcwl_l10n.actions.add_to_wishlist_action,fragments:C(i)};if(t.preventDefault(),jQuery(document.body).trigger("adding_to_wishlist"),yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.modal_enable){var n=a.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"),s=n.find(".wishlist-select"),d=n.find(".wishlist-name"),l=n.find(".wishlist-visibility").filter(":checked");if(e.wishlist_id=s.is(":visible")?s.val():"new",e.wishlist_name=d.val(),e.wishlist_visibility=l.val(),"new"===e.wishlist_id&&!e.wishlist_name)return d.closest("p").addClass("woocommerce-invalid"),!1;d.closest("p").removeClass("woocommerce-invalid")}if(x())return r.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:e,dataType:"json",beforeSend:function(){y(a)},complete:function(){k(a)},success:function(t){var i=t.result,e=t.message;yith_wcwl_l10n.multi_wishlist?(m(e),void 0!==t.user_wishlists&&g(t.user_wishlists)):v(e),"true"!==i&&"exists"!==i||(void 0!==t.fragments&&j(t.fragments),yith_wcwl_l10n.multi_wishlist&&!yith_wcwl_l10n.hide_add_button||o.find(".yith-wcwl-add-button").remove(),o.addClass("exists")),h(),r("body").trigger("added_to_wishlist",[a,o])}}),!1;alert(yith_wcwl_l10n.labels.cookie_disabled)}),t.on("click",".wishlist_table .remove_from_wishlist",function(t){var i=r(this);return t.preventDefault(),f(i),!1}),t.on("adding_to_cart","body",function(t,i,e){void 0!==i&&void 0!==e&&i.closest(".wishlist_table").length&&(e.remove_from_wishlist_after_add_to_cart=i.closest("[data-row-id]").data("row-id"),e.wishlist_id=i.closest(".wishlist_table").data("id"),"undefined"!=typeof wc_add_to_cart_params&&(wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart),"undefined"!=typeof yith_wccl_general&&(yith_wccl_general.cart_redirect=yith_wcwl_l10n.redirect_to_cart))}),t.on("added_to_cart","body",function(t,i,e,a){if(void 0!==a&&a.closest(".wishlist_table").length){"undefined"!=typeof wc_add_to_cart_params&&(wc_add_to_cart_params.cart_redirect_after_add=s),"undefined"!=typeof yith_wccl_general&&(yith_wccl_general.cart_redirect=s);var o=a.closest("[data-row-id]"),n=o.closest(".wishlist-fragment").data("fragment-options");a.removeClass("added"),o.find(".added_to_cart").remove(),yith_wcwl_l10n.remove_from_wishlist_after_add_to_cart&&n.is_user_owner&&o.remove()}}),t.on("added_to_cart","body",function(){var t=r(".woocommerce-message");0===t.length?r("#yith-wcwl-form").prepend(yith_wcwl_l10n.labels.added_to_cart_message):t.fadeOut(300,function(){r(this).replaceWith(yith_wcwl_l10n.labels.added_to_cart_message).fadeIn()})}),t.on("cart_page_refreshed","body",h),t.on("click",".show-title-form",p),t.on("click",".wishlist-title-with-form h2",p),t.on("click",".remove_from_all_wishlists",function(t){var i=r(this),e=i.attr("data-product-id"),a=i.data("wishlist-id"),o=i.closest(".content"),n={action:yith_wcwl_l10n.actions.remove_from_all_wishlists,prod_id:e,wishlist_id:a,fragments:C(e)};t.preventDefault(),r.ajax({beforeSend:function(){y(o)},complete:function(){k(o)},data:n,dataType:"json",method:"post",success:function(t){void 0!==t.fragments&&j(t.fragments),h()},url:yith_wcwl_l10n.ajax_url})}),t.on("click",".hide-title-form",u),t.on("change",".change-wishlist",function(){var t=r(this),i=t.parents(".cart.wishlist_table"),e=i.data("token"),a=t.parents("[data-row-id]").data("row-id");w({wishlist_token:e,destination_wishlist_token:t.val(),item_id:a,fragments:C()},function(){y(i)},function(t){void 0!==t.fragments&&j(t.fragments),k(i)})}),t.on("click",".yith-wcwl-popup-footer .move_to_wishlist",function(){var e=r(this),t=e.attr("data-product-id"),i=e.data("origin-wishlist-id"),a=e.closest("form"),o=a.find(".wishlist-select").val(),n=a.find(".wishlist-name"),s=n.val(),d=a.find(".wishlist-visibility").filter(":checked").val();if("new"===o&&!s)return n.closest("p").addClass("woocommerce-invalid"),!1;n.closest("p").removeClass("woocommerce-invalid"),w({wishlist_token:i,destination_wishlist_token:o,item_id:t,wishlist_name:s,wishlist_visibility:d,fragments:C(t)},function(){y(e)},function(t){var i=t.message;yith_wcwl_l10n.multi_wishlist?(m(i),void 0!==t.user_wishlists&&g(t.user_wishlists)):v(i),void 0!==t.fragments&&j(t.fragments),h(),k(e)})}),t.on("click",".delete_item",function(){var a=r(this),t=a.attr("data-product-id"),i=a.data("item-id"),o=r(".add-to-wishlist-"+t);return r.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:yith_wcwl_l10n.actions.delete_item_action,item_id:i,fragments:C(t)},dataType:"json",beforeSend:function(){y(a)},complete:function(){k(a)},method:"post",success:function(t){var i=t.fragments,e=t.message;yith_wcwl_l10n.multi_wishlist&&m(e),a.closest(".yith-wcwl-remove-button").length||v(e),void 0!==i&&j(i),h(),r("body").trigger("removed_from_wishlist",[a,o])}}),!1}),t.on("change",".yith-wcwl-popup-content .wishlist-select",function(){var t=r(this);"new"===t.val()?t.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").show():t.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()}),t.on("change","#bulk_add_to_cart",function(){var t=r(this),i=t.closest(".wishlist_table").find("[data-row-id]").find('input[type="checkbox"]:not(:disabled)');t.is(":checked")?i.attr("checked","checked").change():i.removeAttr("checked").change()}),t.on("submit",".wishlist-ask-an-estimate-popup",function(){var t=r(this),e=t.closest("form"),a=t.closest(".pp_content"),i=e.serialize();return r.ajax({beforeSend:function(){y(e)},complete:function(){k(e)},data:i+"&action="+yith_wcwl_l10n.actions.ask_an_estimate,dataType:"json",method:"post",success:function(t){if(void 0!==t.result&&t.result){var i=t.template;void 0!==i&&(e.replaceWith(i),a.css("height","auto"),setTimeout(m,3e3))}else void 0!==t.message&&(e.find(".woocommerce-error").remove(),e.find(".popup-description").after(r("<div>",{text:t.message,class:"woocommerce-error"})))},url:yith_wcwl_l10n.ajax_url}),!1}),t.on("click",".yith-wfbt-add-wishlist",function(t){t.preventDefault();var i=r(this),e=r("#yith-wcwl-form");r("html, body").animate({scrollTop:e.offset().top},500),function(t,e){var i=t.data("data-product-id"),a=r(document).find(".cart.wishlist_table"),o=a.data("pagination"),n=a.data("per-page"),s=a.data("id"),d=a.data("token"),l={action:yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,pagination:o,per_page:n,wishlist_id:s,wishlist_token:d,add_to_wishlist:i,product_type:t.data("product-type")};if(!x())return alert(yith_wcwl_l10n.labels.cookie_disabled);r.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:l,dataType:"html",beforeSend:function(){y(a)},complete:function(){k(a)},success:function(t){var i=r(t).find("#yith-wcwl-form");e.replaceWith(i),h()}})}(i,e)}),t.on("submit",".yith-wcwl-popup-form",function(){return!1}),t.on("yith_infs_added_elem",function(){e()}),t.on("found_variation",function(t,i){var a=r(t.target).data("product_id"),o=i.variation_id,e=r('.add_to_wishlist[data-product-id="'+a+'"]').add('.add_to_wishlist[data-original-product-id="'+a+'"]');a&&o&&e.length&&e.each(function(){var t,i=r(this),e=i.closest(".yith-wcwl-add-to-wishlist");i.attr("data-original-product-id",a),i.attr("data-product-id",o),console.log(i,i.attr("data-product-id")),e.length&&(void 0!==(t=e.data("fragment-options"))&&(t.product_id=o,e.data("fragment-options",t)),e.removeClass(function(t,i){return i.match(/add-to-wishlist-\S+/g).join(" ")}).addClass("add-to-wishlist-"+o).attr("data-fragment-ref",o))})}),t.on("reset_data",function(t){var o=r(t.target).data("product_id"),i=r('.add_to_wishlist[data-original-product-id="'+o+'"]');o&&i.length&&i.each(function(){var t,i=r(this),e=i.closest(".yith-wcwl-add-to-wishlist"),a=i.attr("data-product-id");i.attr("data-product-id",o),i.attr("data-original-product-id",""),e.length&&(void 0!==(t=e.data("fragment-options"))&&(t.product_id=o,e.data("fragment-options",t)),e.removeClass("add-to-wishlist-"+a).addClass("add-to-wishlist-"+o).attr("data-fragment-ref",o))})}),t.on("yith_wcwl_fragments_loaded",function(t){r(".variations_form").find(".variations select").last().change()}),function(){if(!yith_wcwl_l10n.enable_notices)return;if(r(".yith-wcwl-add-to-wishlist").length&&!r("#yith-wcwl-popup-message").length){var t=r("<div>").attr("id","yith-wcwl-message"),i=r("<div>").attr("id","yith-wcwl-popup-message").html(t).hide();r("body").prepend(i)}}(),n(),d(),l(),function(){var n,s;r(".wishlist_table").on("change",".product-quantity input",function(){var t=r(this),i=t.closest("[data-row-id]"),e=i.data("row-id"),a=t.closest(".wishlist_table"),o=a.data("token");clearTimeout(s),i.find(".add_to_cart").data("quantity",t.val()),s=setTimeout(function(){n&&n.abort(),n=r.ajax({beforeSend:function(){y(a)},complete:function(){k(a)},data:{product_id:e,wishlist_token:o,quantity:t.val(),action:yith_wcwl_l10n.actions.update_item_quantity},method:"POST",url:yith_wcwl_l10n.ajax_url})},1e3)})}(),_(),r(document).on("click",".show-tab",function(t){var i=r(this),e=i.closest(".yith-wcwl-popup-content"),a=i.data("tab"),o=e.find(".tab").filter("."+a);if(t.preventDefault(),!o.length)return!1;i.addClass("active").siblings(".show-tab").removeClass("active"),o.show().siblings(".tab").hide(),"create"===a?e.prepend('<input type="hidden" id="new_wishlist_selector" class="wishlist-select" value="new">'):e.find("#new_wishlist_selector").remove()}),r(document).on("change",".wishlist-select",function(t){var i=r(this),e=i.closest(".yith-wcwl-popup-content"),a=i.closest(".tab"),o=e.find(".tab.create"),n=e.find(".show-tab"),s=n.filter('[data-tab="create"]');"new"===i.val()&&o.length&&(a.hide(),o.show(),n.removeClass("active"),s.addClass("active"),i.find("option").removeProp("selected"),i.change())}),i(),a(),e(),o(),function(){var c=!1;r(window).on("resize",function(t){var i=r(".wishlist_table.responsive"),e=i.is(".mobile"),a=window.matchMedia("(max-width: 768px)"),o=i.closest("form"),n=o.attr("class"),s=o.data("fragment-options"),d={},l=!1;i.length&&(a.matches&&i&&!e?(s.is_mobile="yes",l=!0):!a.matches&&i&&e&&(s.is_mobile="no",l=!0),l&&(c&&c.abort(),d[n]=s,c=r.ajax({beforeSend:function(){y(i)},complete:function(){k(i)},data:{action:yith_wcwl_l10n.actions.load_mobile_action,fragments:d},method:"post",success:function(t){void 0!==t.fragments&&(j(t.fragments),h(),r(document).trigger("yith_wcwl_responsive_template",[e,t.fragments]))},url:yith_wcwl_l10n.ajax_url})))})}(),c(),function(){if(!yith_wcwl_l10n.enable_ajax_loading)return;var i=C({firstLoad:!0});if(!i)return;r.ajax({data:{action:yith_wcwl_l10n.actions.load_fragments,fragments:i},method:"post",success:function(t){void 0!==t.fragments&&(j(t.fragments),h(),r(document).trigger("yith_wcwl_fragments_loaded",[i,t.fragments]))},url:yith_wcwl_l10n.ajax_url})}()}).trigger("yith_wcwl_init")});
assets/js/unminified/admin/yith-wcwl.js CHANGED
@@ -308,7 +308,7 @@ jQuery( document ).ready( function( $ ) {
308
  preview.unblock();
309
  },
310
  success: function( data ){
311
- preview.removeClass( 'html plain' ).addClass( template ).html( data );
312
  }
313
  } );
314
  },
308
  preview.unblock();
309
  },
310
  success: function( data ){
311
+ preview.removeClass( 'html plain' ).addClass( template ).find('.no-interactions').html( data );
312
  }
313
  } );
314
  },
assets/js/unminified/jquery.yith-wcwl.js CHANGED
@@ -1322,7 +1322,7 @@ jQuery( document ).ready( function( $ ){
1322
  popup.addClass( 'feedback' );
1323
  popup.css( 'left', ( ( $( window ).innerWidth() / 2 ) - ( popup.outerWidth() / 2 ) ) + 'px' );
1324
 
1325
- setTimeout( close_pretty_photo, 3000 );
1326
  }
1327
  }
1328
  else{
@@ -1353,7 +1353,7 @@ jQuery( document ).ready( function( $ ){
1353
  msgPopup.css( 'margin-left', '-' + $( msgPopup ).width() + 'px' ).fadeIn();
1354
  window.setTimeout( function() {
1355
  msgPopup.fadeOut();
1356
- }, 2000 );
1357
  }
1358
 
1359
  /**
1322
  popup.addClass( 'feedback' );
1323
  popup.css( 'left', ( ( $( window ).innerWidth() / 2 ) - ( popup.outerWidth() / 2 ) ) + 'px' );
1324
 
1325
+ setTimeout( close_pretty_photo, yith_wcwl_l10n.popup_timeout );
1326
  }
1327
  }
1328
  else{
1353
  msgPopup.css( 'margin-left', '-' + $( msgPopup ).width() + 'px' ).fadeIn();
1354
  window.setTimeout( function() {
1355
  msgPopup.fadeOut();
1356
+ }, yith_wcwl_l10n.popup_timeout );
1357
  }
1358
 
1359
  /**
gulpfile.js CHANGED
@@ -71,6 +71,7 @@ var updateMo = function () {
71
 
72
  exports.minify_js = gulp.series(minify_main_js, minify_admin_js);
73
  exports.minify = gulp.series(minify_css, minify_themes_css);
 
74
  exports.localize = gulp.series(updatePot, updatePo, updateMo);
75
  exports.deploy = gulp.series(minify_css, minify_themes_css, minify_main_js, minify_admin_js, updatePot, updatePo, updateMo);
76
  exports.default = gulp.series(minify_css, minify_themes_css, minify_main_js, minify_admin_js);
71
 
72
  exports.minify_js = gulp.series(minify_main_js, minify_admin_js);
73
  exports.minify = gulp.series(minify_css, minify_themes_css);
74
+ exports.uppot = gulp.series(updatePot);
75
  exports.localize = gulp.series(updatePot, updatePo, updateMo);
76
  exports.deploy = gulp.series(minify_css, minify_themes_css, minify_main_js, minify_admin_js, updatePot, updatePo, updateMo);
77
  exports.default = gulp.series(minify_css, minify_themes_css, minify_main_js, minify_admin_js);
includes/class.yith-wcwl-frontend.php CHANGED
@@ -33,7 +33,7 @@ if ( ! class_exists( 'YITH_WCWL_Frontend' ) ) {
33
  * @var string
34
  * @since 1.0.0
35
  */
36
- public $version = '3.0.5';
37
 
38
  /**
39
  * Plugin database version
@@ -136,6 +136,7 @@ if ( ! class_exists( 'YITH_WCWL_Frontend' ) ) {
136
  */
137
  public function add_button() {
138
  $positions = apply_filters( 'yith_wcwl_positions', array(
 
139
  'add-to-cart' => array( 'hook' => 'woocommerce_single_product_summary', 'priority' => 31 ),
140
  'thumbnails' => array( 'hook' => 'woocommerce_product_thumbnails', 'priority' => 21 ),
141
  'summary' => array( 'hook' => 'woocommerce_after_single_product_summary', 'priority' => 11 )
33
  * @var string
34
  * @since 1.0.0
35
  */
36
+ public $version = '3.0.6';
37
 
38
  /**
39
  * Plugin database version
136
  */
137
  public function add_button() {
138
  $positions = apply_filters( 'yith_wcwl_positions', array(
139
+ 'after_add_to_cart' => array( 'hook' => 'woocommerce_single_product_summary', 'priority' => 31 ),
140
  'add-to-cart' => array( 'hook' => 'woocommerce_single_product_summary', 'priority' => 31 ),
141
  'thumbnails' => array( 'hook' => 'woocommerce_product_thumbnails', 'priority' => 21 ),
142
  'summary' => array( 'hook' => 'woocommerce_after_single_product_summary', 'priority' => 11 )
includes/class.yith-wcwl-install.php CHANGED
@@ -322,7 +322,7 @@ if ( !class_exists( 'YITH_WCWL_Install' ) ) {
322
  dateadded timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
323
  on_sale tinyint NOT NULL DEFAULT 0,
324
  PRIMARY KEY ( ID ),
325
- KEY ( prod_id )
326
  ) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
327
 
328
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
322
  dateadded timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
323
  on_sale tinyint NOT NULL DEFAULT 0,
324
  PRIMARY KEY ( ID ),
325
+ KEY prod_id ( prod_id )
326
  ) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
327
 
328
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
includes/class.yith-wcwl-session.php CHANGED
@@ -68,7 +68,7 @@ if ( ! class_exists( 'YITH_WCWL_Session' ) ) {
68
  * Construct session class
69
  */
70
  public function __construct() {
71
- add_action( 'init', array( $this, 'init_session_cookie' ), 0 );
72
  }
73
 
74
  /**
@@ -98,7 +98,7 @@ if ( ! class_exists( 'YITH_WCWL_Session' ) ) {
98
  }
99
  } else {
100
  $this->set_session_expiration();
101
- $this->_session_id = $this->generate_session_id();
102
  }
103
 
104
  if( ! $this->_has_cookie ) {
@@ -125,7 +125,7 @@ if ( ! class_exists( 'YITH_WCWL_Session' ) ) {
125
  'session_expiring' => $this->_session_expiring,
126
  'cookie_hash' => $hash
127
  );
128
- yith_setcookie( $this->get_session_cookie_name(), $cookie_value, $this->_session_expiration );
129
 
130
  // cookie has been set
131
  $this->_has_cookie = true;
@@ -160,6 +160,15 @@ if ( ! class_exists( 'YITH_WCWL_Session' ) ) {
160
  return $cookie_value;
161
  }
162
 
 
 
 
 
 
 
 
 
 
163
  /**
164
  * Returns name for the session cookie
165
  *
68
  * Construct session class
69
  */
70
  public function __construct() {
71
+ // add_action( 'init', array( $this, 'init_session_cookie' ), 0 );
72
  }
73
 
74
  /**
98
  }
99
  } else {
100
  $this->set_session_expiration();
101
+ $this->_session_id = $this->_session_id ? $this->_session_id : $this->generate_session_id();
102
  }
103
 
104
  if( ! $this->_has_cookie ) {
125
  'session_expiring' => $this->_session_expiring,
126
  'cookie_hash' => $hash
127
  );
128
+ yith_setcookie( $this->get_session_cookie_name(), $cookie_value, $this->_session_expiration, $this->use_secure_cookie(), true );
129
 
130
  // cookie has been set
131
  $this->_has_cookie = true;
160
  return $cookie_value;
161
  }
162
 
163
+ /**
164
+ * Returns true if system should use HTTPS only cookies
165
+ *
166
+ * @return bool
167
+ */
168
+ public function use_secure_cookie() {
169
+ return apply_filters( 'yith_wcwl_session_use_secure_cookie', wc_site_is_https() && is_ssl() );
170
+ }
171
+
172
  /**
173
  * Returns name for the session cookie
174
  *
includes/class.yith-wcwl-shortcode.php CHANGED
@@ -154,7 +154,7 @@ if( ! class_exists( 'YITH_WCWL_Shortcode' ) ) {
154
  $atts = shortcode_atts( array(
155
  'per_page' => 5,
156
  'pagination' => 'no',
157
- 'wishlist_id' => false,
158
  'action_params' => get_query_var( YITH_WCWL()->wishlist_param, false ),
159
  'no_interactions' => 'no',
160
  'layout' => ''
@@ -347,7 +347,7 @@ if( ! class_exists( 'YITH_WCWL_Shortcode' ) ) {
347
 
348
  if( ! $no_interactions && ( $share_facebook_enabled || $share_twitter_enabled || $share_pinterest_enabled || $share_email_enabled || $share_whatsapp_enabled || $share_url_enabled ) ){
349
  $share_title = apply_filters( 'yith_wcwl_socials_share_title', __( 'Share on:', 'yith-woocommerce-wishlist' ) );
350
- $share_link_url = $wishlist->get_url();
351
  $share_links_title = apply_filters( 'plugin_text', urlencode( get_option( 'yith_wcwl_socials_title' ) ) );
352
  $share_summary = urlencode( str_replace( '%wishlist_url%', $share_link_url, get_option( 'yith_wcwl_socials_text' ) ) );
353
 
154
  $atts = shortcode_atts( array(
155
  'per_page' => 5,
156
  'pagination' => 'no',
157
+ 'wishlist_id' => get_query_var( 'wishlist_id', false ),
158
  'action_params' => get_query_var( YITH_WCWL()->wishlist_param, false ),
159
  'no_interactions' => 'no',
160
  'layout' => ''
347
 
348
  if( ! $no_interactions && ( $share_facebook_enabled || $share_twitter_enabled || $share_pinterest_enabled || $share_email_enabled || $share_whatsapp_enabled || $share_url_enabled ) ){
349
  $share_title = apply_filters( 'yith_wcwl_socials_share_title', __( 'Share on:', 'yith-woocommerce-wishlist' ) );
350
+ $share_link_url = apply_filters('yith_wcwl_shortcode_share_link_url',$wishlist->get_url(),$wishlist);
351
  $share_links_title = apply_filters( 'plugin_text', urlencode( get_option( 'yith_wcwl_socials_title' ) ) );
352
  $share_summary = urlencode( str_replace( '%wishlist_url%', $share_link_url, get_option( 'yith_wcwl_socials_text' ) ) );
353
 
includes/class.yith-wcwl.php CHANGED
@@ -195,7 +195,7 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
195
  wp_cache_delete( 'wishlist-user-total-count-' . $user_id, 'wishlists' );
196
  }
197
 
198
- do_action( 'yith_wcwl_added_to_wishlist', $prod_id, $wishlist_id, $user_id );
199
  }
200
 
201
  /**
@@ -243,7 +243,7 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
243
  wp_cache_delete( 'wishlist-user-total-count-' . $user_id );
244
  }
245
 
246
- do_action( 'yith_wcwl_removed_from_wishlist', $prod_id, $wishlist_id, $user_id );
247
  }
248
 
249
  /**
195
  wp_cache_delete( 'wishlist-user-total-count-' . $user_id, 'wishlists' );
196
  }
197
 
198
+ do_action( 'yith_wcwl_added_to_wishlist', $prod_id, $item->get_wishlist_id(), $item->get_user_id() );
199
  }
200
 
201
  /**
243
  wp_cache_delete( 'wishlist-user-total-count-' . $user_id );
244
  }
245
 
246
+ do_action( 'yith_wcwl_removed_from_wishlist', $prod_id, $wishlist->get_id(), $wishlist->get_user_id() );
247
  }
248
 
249
  /**
includes/data-stores/class.yith-wcwl-wishlist-data-store.php CHANGED
@@ -727,22 +727,22 @@ if ( ! class_exists( 'YITH_WCWL_Wishlist_Data_Store' ) ) {
727
  if( ! empty( $id ) && is_int( $id ) ){
728
  $cache_key = 'wishlist-default-' . $id;
729
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
730
- $wishlist_id = $wishlist_id ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE user_id = %d AND is_default = 1", $id ) );
731
  }
732
  elseif( ! empty( $id ) && is_string( $id ) ){
733
  $cache_key = 'wishlist-default-' . $id;
734
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
735
- $wishlist_id = $wishlist_id ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE session_id = %s AND expiration > NOW() AND is_default = 1", $id ) );
736
  }
737
  elseif( $user_id = get_current_user_id() ){
738
  $cache_key = 'wishlist-default-' . $user_id;
739
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
740
- $wishlist_id = $wishlist_id ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE user_id = %d AND is_default = 1", $user_id ) );
741
  }
742
  elseif( $session_id = YITH_WCWL_Session()->get_session_id() ){
743
  $cache_key = 'wishlist-default-' . $session_id;
744
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
745
- $wishlist_id = $wishlist_id ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE session_id = %s AND expiration > NOW() AND is_default = 1", $session_id ) );
746
  }
747
 
748
  if( $wishlist_id ){
@@ -753,9 +753,26 @@ if ( ! class_exists( 'YITH_WCWL_Wishlist_Data_Store' ) ) {
753
  return YITH_WCWL_Wishlist_Factory::get_wishlist( $wishlist_id );
754
  }
755
  elseif( 'edit' == $context ){
756
- return $this->generate_default_wishlist( $id );
 
 
 
 
 
 
757
  }
758
  else{
 
 
 
 
 
 
 
 
 
 
 
759
  return false;
760
  }
761
  }
727
  if( ! empty( $id ) && is_int( $id ) ){
728
  $cache_key = 'wishlist-default-' . $id;
729
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
730
+ $wishlist_id = $wishlist_id !== false ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE user_id = %d AND is_default = 1", $id ) );
731
  }
732
  elseif( ! empty( $id ) && is_string( $id ) ){
733
  $cache_key = 'wishlist-default-' . $id;
734
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
735
+ $wishlist_id = $wishlist_id !== false ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE session_id = %s AND expiration > NOW() AND is_default = 1", $id ) );
736
  }
737
  elseif( $user_id = get_current_user_id() ){
738
  $cache_key = 'wishlist-default-' . $user_id;
739
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
740
+ $wishlist_id = $wishlist_id !== false ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE user_id = %d AND is_default = 1", $user_id ) );
741
  }
742
  elseif( $session_id = YITH_WCWL_Session()->get_session_id() ){
743
  $cache_key = 'wishlist-default-' . $session_id;
744
  $wishlist_id = wp_cache_get( $cache_key, 'wishlists' );
745
+ $wishlist_id = $wishlist_id !== false ? $wishlist_id : $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->yith_wcwl_wishlists} WHERE session_id = %s AND expiration > NOW() AND is_default = 1", $session_id ) );
746
  }
747
 
748
  if( $wishlist_id ){
753
  return YITH_WCWL_Wishlist_Factory::get_wishlist( $wishlist_id );
754
  }
755
  elseif( 'edit' == $context ){
756
+ $wishlist = $this->generate_default_wishlist( $id );
757
+
758
+ if( $cache_key ) {
759
+ wp_cache_set( $cache_key, $wishlist->get_id(), 'wishlists' );
760
+ }
761
+
762
+ return $wishlist;
763
  }
764
  else{
765
+ /**
766
+ * If no default wishlist was found, register null as cache value
767
+ * This will be used until someone tries to edit the list (entering previous elseif),
768
+ * causing a new default wishlist to be automatically generated and stored in cache, replacing null
769
+ *
770
+ * @since 3.0.6
771
+ */
772
+ if( $cache_key ) {
773
+ wp_cache_set( $cache_key, null, 'wishlists' );
774
+ }
775
+
776
  return false;
777
  }
778
  }
includes/data-stores/class.yith-wcwl-wishlist-item-data-store.php CHANGED
@@ -259,6 +259,11 @@ if ( ! class_exists( 'YITH_WCWL_Wishlist_Item_Data_Store' ) ) {
259
  }
260
 
261
  if( ! empty( $product_id ) ){
 
 
 
 
 
262
  $sql .= " AND i.`prod_id` = %d";
263
  $sql_args[] = $product_id;
264
  }
259
  }
260
 
261
  if( ! empty( $product_id ) ){
262
+ if( defined('ICL_SITEPRESS_VERSION') ) {
263
+ global $sitepress;
264
+ $product_id = yit_wpml_object_id( $product_id, 'product', true, $sitepress->get_default_language() );
265
+ }
266
+
267
  $sql .= " AND i.`prod_id` = %d";
268
  $sql_args[] = $product_id;
269
  }
includes/functions.yith-wcwl.php CHANGED
@@ -264,10 +264,12 @@ if( !function_exists( 'yith_setcookie' ) ) {
264
  * @param string $name
265
  * @param mixed $value
266
  * @param int $time
 
 
267
  * @return bool
268
  * @since 1.0.0
269
  */
270
- function yith_setcookie( $name, $value = array(), $time = null ) {
271
  if( ! apply_filters( 'yith_wcwl_set_cookie', true ) || empty( $name ) ){
272
  return false;
273
  }
@@ -278,7 +280,7 @@ if( !function_exists( 'yith_setcookie' ) ) {
278
  $expiration = apply_filters( 'yith_wcwl_cookie_expiration_time', $time ); // Default 30 days
279
 
280
  $_COOKIE[ $name ] = $value;
281
- wc_setcookie( $name, $value, $expiration );
282
 
283
  return true;
284
  }
@@ -418,15 +420,15 @@ if( !function_exists( 'yith_wcwl_get_plugin_icons' ) ){
418
  * Return array of available icons
419
  *
420
  * @param $none_label string Label to use for none option
 
421
  *
422
  * @return array Array of available icons, in class => name format
423
  */
424
- function yith_wcwl_get_plugin_icons( $none_label = '' ){
425
  $icons = json_decode( file_get_contents( YITH_WCWL_DIR . 'assets/js/admin/yith-wcwl-icons.json' ), true );
426
 
427
- if( $none_label ){
428
- $icons['none'] = $none_label;
429
- }
430
 
431
  return $icons;
432
  }
@@ -512,6 +514,7 @@ if( !function_exists( 'yith_wcwl_get_privacy_label' ) ){
512
  * @since 3.0.0
513
  */
514
  function yith_wcwl_get_privacy_label( $privacy, $extended = false ){
 
515
  switch( $privacy ){
516
  case 1:
517
  $privacy_label = 'shared';
@@ -519,7 +522,7 @@ if( !function_exists( 'yith_wcwl_get_privacy_label' ) ){
519
 
520
  if( $extended ){
521
  $privacy_text = '<b>' . $privacy_text . '</b> - ';
522
- $privacy_text .= __( 'Anyone can search for and see this list', 'yith-woocommerce-wishlist' );
523
  }
524
 
525
  break;
@@ -529,7 +532,7 @@ if( !function_exists( 'yith_wcwl_get_privacy_label' ) ){
529
 
530
  if( $extended ){
531
  $privacy_text = '<b>' . $privacy_text . '</b> - ';
532
- $privacy_text .= __( 'Only people with a link to this list can see it', 'yith-woocommerce-wishlist' );
533
  }
534
 
535
  break;
@@ -539,8 +542,8 @@ if( !function_exists( 'yith_wcwl_get_privacy_label' ) ){
539
 
540
  if( $extended ){
541
  $privacy_text = '<b>' . $privacy_text . '</b> - ';
542
- $privacy_text .= __( 'Only you can see this list', 'yith-woocommerce-wishlist' );
543
- }
544
 
545
  break;
546
  }
264
  * @param string $name
265
  * @param mixed $value
266
  * @param int $time
267
+ * @param bool $secure
268
+ * @param bool $httponly
269
  * @return bool
270
  * @since 1.0.0
271
  */
272
+ function yith_setcookie( $name, $value = array(), $time = null, $secure = false, $httponly = false ) {
273
  if( ! apply_filters( 'yith_wcwl_set_cookie', true ) || empty( $name ) ){
274
  return false;
275
  }
280
  $expiration = apply_filters( 'yith_wcwl_cookie_expiration_time', $time ); // Default 30 days
281
 
282
  $_COOKIE[ $name ] = $value;
283
+ wc_setcookie( $name, $value, $expiration, $secure, $httponly );
284
 
285
  return true;
286
  }
420
  * Return array of available icons
421
  *
422
  * @param $none_label string Label to use for none option
423
+ * @param $custom_label string Label to use for custom option
424
  *
425
  * @return array Array of available icons, in class => name format
426
  */
427
+ function yith_wcwl_get_plugin_icons( $none_label = '', $custom_label = '' ){
428
  $icons = json_decode( file_get_contents( YITH_WCWL_DIR . 'assets/js/admin/yith-wcwl-icons.json' ), true );
429
 
430
+ $icons['none'] = $none_label ? $none_label : __( 'None', 'yith-woocommerce-wishlist' );
431
+ $icons['custom'] = $custom_label ? $custom_label : __( 'Custom', 'yith-woocommerce-wishlist' );
 
432
 
433
  return $icons;
434
  }
514
  * @since 3.0.0
515
  */
516
  function yith_wcwl_get_privacy_label( $privacy, $extended = false ){
517
+
518
  switch( $privacy ){
519
  case 1:
520
  $privacy_label = 'shared';
522
 
523
  if( $extended ){
524
  $privacy_text = '<b>' . $privacy_text . '</b> - ';
525
+ $privacy_text .= __( 'Only people with a link to this list can see it', 'yith-woocommerce-wishlist' );
526
  }
527
 
528
  break;
532
 
533
  if( $extended ){
534
  $privacy_text = '<b>' . $privacy_text . '</b> - ';
535
+ $privacy_text .= __( 'Only you can see this list', 'yith-woocommerce-wishlist' );
536
  }
537
 
538
  break;
542
 
543
  if( $extended ){
544
  $privacy_text = '<b>' . $privacy_text . '</b> - ';
545
+ $privacy_text .= __( 'Anyone can search for and see this list', 'yith-woocommerce-wishlist' );
546
+ }
547
 
548
  break;
549
  }
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Wishlist
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
5
  * Description: <code><strong>YITH WooCommerce Wishlist</strong></code> gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce on <strong>YITH</strong></a>
6
- * Version: 3.0.5
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-wishlist
3
  * Plugin Name: YITH WooCommerce Wishlist
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
5
  * Description: <code><strong>YITH WooCommerce Wishlist</strong></code> gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce on <strong>YITH</strong></a>
6
+ * Version: 3.0.6
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-wishlist
plugin-fw/assets/css/yith-fields.css CHANGED
@@ -455,11 +455,11 @@ YITH UI
455
  ****************/
456
  @font-face {
457
  font-family : 'yith-icon';
458
- src : url('../fonts/yith-icon.eot?7ik896');
459
- src : url('../fonts/yith-icon.eot?7ik896#iefix') format('embedded-opentype'),
460
- url('../fonts/yith-icon.ttf?7ik896') format('truetype'),
461
- url('../fonts/yith-icon.woff?7ik896') format('woff'),
462
- url('../fonts/yith-icon.svg?7ik896#yith-icon') format('svg');
463
  font-weight : normal;
464
  font-style : normal;
465
  }
@@ -479,138 +479,142 @@ YITH UI
479
  -moz-osx-font-smoothing : grayscale;
480
  }
481
 
482
- .yith-icon-reply:before {
483
- content: "\e91a";
 
 
 
 
 
 
 
484
  color: #757575;
485
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
486
  .yith-icon-calendar_add:before {
487
- content : "\e913";
488
- color : #757575;
489
  }
490
-
491
  .yith-icon-calendar_money:before {
492
- content : "\e914";
493
- color : #757575;
494
  }
495
-
496
  .yith-icon-calendar2:before {
497
- content : "\e915";
498
- color : #757575;
499
  }
500
-
501
  .yith-icon-people:before {
502
- content : "\e916";
503
- color : #757575;
504
  }
505
-
506
  .yith-icon-shield_money:before {
507
- content : "\e917";
508
- color : #757575;
509
  }
510
-
511
  .yith-icon-time_check:before {
512
- content : "\e918";
513
- color : #757575;
514
  }
515
-
516
  .yith-icon-world_settings:before {
517
- content : "\e919";
518
- color : #757575;
519
  }
520
-
521
  .yith-icon-arrow_eye_closed:before {
522
- content : "\e912";
523
- color : #757575;
524
  }
525
-
526
  .yith-icon-arrow_eye:before {
527
- content : "\e911";
528
- color : #757575;
529
  }
530
-
531
  .yith-icon-reset:before {
532
- content : "\e910";
533
- color : #757575;
534
  }
535
-
536
  .yith-icon-drag:before {
537
- content : "\e90f";
538
- color : #757575;
539
  }
540
-
541
  .yith-icon-trash:before {
542
- content : "\e90d";
543
- color : #757575;
544
  }
545
-
546
  .yith-icon-info:before {
547
- content : "\e90e";
548
- color : #757575;
549
  }
550
-
551
  .yith-icon-arrow_down:before {
552
- content : "\e900";
553
- color : #757575;
554
  }
555
-
556
  .yith-icon-arrow_left:before {
557
- content : "\e901";
558
- color : #757575;
559
  }
560
-
561
  .yith-icon-arrow_right:before {
562
- content : "\e902";
563
- color : #757575;
564
  }
565
-
566
  .yith-icon-arrow_up:before {
567
- content : "\e903";
568
- color : #757575;
569
  }
570
-
571
  .yith-icon-calendar:before {
572
- content : "\e904";
573
- color : #757575;
574
  }
575
-
576
  .yith-icon-check:before {
577
- content : "\e905";
578
- color : #757575;
579
  }
580
-
581
  .yith-icon-close:before {
582
- content : "\e906";
583
- color : #757575;
584
  }
585
-
586
  .yith-icon-edit:before {
587
- content : "\e907";
588
- color : #757575;
589
  }
590
-
591
  .yith-icon-magnifier:before {
592
- content : "\e908";
593
- color : #757575;
594
  }
595
-
596
  .yith-icon-pencil:before {
597
- content : "\e909";
598
- color : #757575;
599
  }
600
-
601
  .yith-icon-plus:before {
602
- content : "\e90a";
603
- color : #757575;
604
  }
605
-
606
  .yith-icon-update:before {
607
- content : "\e90b";
608
- color : #757575;
609
  }
610
-
611
  .yith-icon-upload:before {
612
- content : "\e90c";
613
- color : #757575;
 
 
 
614
  }
615
 
616
  .yith-plugin-fw-banner {
@@ -796,7 +800,7 @@ YITH UI
796
  background : #f1f1f1;
797
  font-size : 14px;
798
  font-weight : 700;
799
- width : 40%;
800
  display : block;
801
  padding : 15px;
802
  margin-bottom : 0;
@@ -1401,7 +1405,7 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
1401
  }
1402
 
1403
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
1404
- content : 'OFF';
1405
  width : 14px;
1406
  height : 14px;
1407
  font-size : 13px;
@@ -1427,7 +1431,7 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
1427
 
1428
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
1429
  .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
1430
- content : 'ON';
1431
  color : #98aa36;
1432
  width : 14px;
1433
  height : 14px;
455
  ****************/
456
  @font-face {
457
  font-family : 'yith-icon';
458
+ src : url('../fonts/yith-icon.eot?g6bfgy');
459
+ src : url('../fonts/yith-icon.eot?g6bfgy#iefix') format('embedded-opentype'),
460
+ url('../fonts/yith-icon.ttf?g6bfgy') format('truetype'),
461
+ url('../fonts/yith-icon.woff?g6bfgy') format('woff'),
462
+ url('../fonts/yith-icon.svg?g6bfgy#yith-icon') format('svg');
463
  font-weight : normal;
464
  font-style : normal;
465
  }
479
  -moz-osx-font-smoothing : grayscale;
480
  }
481
 
482
+ .yith-icon-paypal-svgrepo-com:before {
483
+ content: "\e91b";
484
+ }
485
+ .yith-icon-check-circle:before {
486
+ content: "\e921";
487
+ color: #757575;
488
+ }
489
+ .yith-icon-info-squared:before {
490
+ content: "\e922";
491
  color: #757575;
492
  }
493
+ .yith-icon-warning-triangle:before {
494
+ content: "\e923";
495
+ color: #757575;
496
+ }
497
+ .yith-icon-bank:before {
498
+ content: "\e91c";
499
+ }
500
+ .yith-icon-accounting:before {
501
+ content: "\e91d";
502
+ }
503
+ .yith-icon-bank-check:before {
504
+ content: "\e91e";
505
+ }
506
+ .yith-icon-cash:before {
507
+ content: "\e91f";
508
+ }
509
+ .yith-icon-credit-card:before {
510
+ content: "\e920";
511
+ }
512
  .yith-icon-calendar_add:before {
513
+ content: "\e913";
514
+ color: #757575;
515
  }
 
516
  .yith-icon-calendar_money:before {
517
+ content: "\e914";
518
+ color: #757575;
519
  }
 
520
  .yith-icon-calendar2:before {
521
+ content: "\e915";
522
+ color: #757575;
523
  }
 
524
  .yith-icon-people:before {
525
+ content: "\e916";
526
+ color: #757575;
527
  }
 
528
  .yith-icon-shield_money:before {
529
+ content: "\e917";
530
+ color: #757575;
531
  }
 
532
  .yith-icon-time_check:before {
533
+ content: "\e918";
534
+ color: #757575;
535
  }
 
536
  .yith-icon-world_settings:before {
537
+ content: "\e919";
538
+ color: #757575;
539
  }
 
540
  .yith-icon-arrow_eye_closed:before {
541
+ content: "\e912";
542
+ color: #757575;
543
  }
 
544
  .yith-icon-arrow_eye:before {
545
+ content: "\e911";
546
+ color: #757575;
547
  }
 
548
  .yith-icon-reset:before {
549
+ content: "\e910";
550
+ color: #757575;
551
  }
 
552
  .yith-icon-drag:before {
553
+ content: "\e90f";
554
+ color: #757575;
555
  }
 
556
  .yith-icon-trash:before {
557
+ content: "\e90d";
558
+ color: #757575;
559
  }
 
560
  .yith-icon-info:before {
561
+ content: "\e90e";
562
+ color: #757575;
563
  }
 
564
  .yith-icon-arrow_down:before {
565
+ content: "\e900";
566
+ color: #757575;
567
  }
 
568
  .yith-icon-arrow_left:before {
569
+ content: "\e901";
570
+ color: #757575;
571
  }
 
572
  .yith-icon-arrow_right:before {
573
+ content: "\e902";
574
+ color: #757575;
575
  }
 
576
  .yith-icon-arrow_up:before {
577
+ content: "\e903";
578
+ color: #757575;
579
  }
 
580
  .yith-icon-calendar:before {
581
+ content: "\e904";
582
+ color: #757575;
583
  }
 
584
  .yith-icon-check:before {
585
+ content: "\e905";
586
+ color: #757575;
587
  }
 
588
  .yith-icon-close:before {
589
+ content: "\e906";
590
+ color: #757575;
591
  }
 
592
  .yith-icon-edit:before {
593
+ content: "\e907";
594
+ color: #757575;
595
  }
 
596
  .yith-icon-magnifier:before {
597
+ content: "\e908";
598
+ color: #757575;
599
  }
 
600
  .yith-icon-pencil:before {
601
+ content: "\e909";
602
+ color: #757575;
603
  }
 
604
  .yith-icon-plus:before {
605
+ content: "\e90a";
606
+ color: #757575;
607
  }
 
608
  .yith-icon-update:before {
609
+ content: "\e90b";
610
+ color: #757575;
611
  }
 
612
  .yith-icon-upload:before {
613
+ content: "\e90c";
614
+ color: #757575;
615
+ }
616
+ .yith-icon-reply:before {
617
+ content: "\e91a";
618
  }
619
 
620
  .yith-plugin-fw-banner {
800
  background : #f1f1f1;
801
  font-size : 14px;
802
  font-weight : 700;
803
+ width : 50%;
804
  display : block;
805
  padding : 15px;
806
  margin-bottom : 0;
1405
  }
1406
 
1407
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
1408
+ content : attr(data-text-off);
1409
  width : 14px;
1410
  height : 14px;
1411
  font-size : 13px;
1431
 
1432
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
1433
  .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
1434
+ content : attr(data-text-on);
1435
  color : #98aa36;
1436
  width : 14px;
1437
  height : 14px;
plugin-fw/assets/fonts/yith-icon.eot CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.svg CHANGED
@@ -34,4 +34,13 @@
34
  <glyph unicode="&#xe918;" glyph-name="time_check" d="M86.528 448.341c-0.341-235.008 189.952-425.643 424.96-425.984s425.643 189.952 425.984 424.96c0.171 83.968-24.576 166.059-71.168 236.032l-60.075-63.488c22.528-39.765 37.035-83.627 42.325-129.195h-80.384v-84.651h80.384c-19.627-154.795-141.483-276.651-296.277-296.277v84.651h-84.651v-84.651c-154.795 19.456-276.821 141.483-296.277 296.277h84.651v84.651h-84.651c18.432 155.307 140.971 277.845 296.277 296.277v-82.603h84.651v81.749c46.251-5.803 90.795-21.163 130.731-44.885l61.44 61.44c-68.779 46.080-149.675 70.827-232.448 71.168-234.837-0.341-425.301-190.635-425.472-425.472zM414.549 605.355l-59.563-59.733 157.013-157.013 410.624 410.965-59.733 59.733-350.891-350.891z" />
35
  <glyph unicode="&#xe919;" glyph-name="world_settings" d="M833.707 597.333l48.981 81.92-139.435 139.435-81.92-48.981c-8.875 4.267-18.091 7.851-27.648 11.435l-23.040 92.672h-98.645c-235.179-0.171-425.643-190.635-425.643-425.813s190.464-425.643 425.643-425.643h98.645l23.040 92.672c9.557 3.584 18.773 7.168 27.648 11.435l81.92-48.981 139.435 139.435-48.981 81.92c3.925 8.875 7.851 18.091 11.435 27.648l92.672 23.040v197.12l-92.672 23.040c-3.584 9.557-7.168 20.139-11.435 27.648zM319.659 448c0.171 35.669 3.243 71.339 9.216 106.496h147.627v-212.821h-147.627c-5.973 34.987-9.045 70.656-9.216 106.325zM476.501 795.989v-170.667h-129.877c28.16 86.699 75.264 150.869 129.877 170.667zM476.501 270.677v-171.008c-54.613 19.797-101.888 84.139-129.877 171.008h129.877zM547.499 547.669c55.125-20.309 83.456-81.579 63.147-136.704-10.752-29.184-33.792-52.224-63.147-63.147v199.851zM323.925 748.203c-22.869-38.4-40.277-79.701-51.712-122.709h-67.072c29.013 49.835 69.803 91.989 118.784 122.709zM173.568 554.496h83.797c-11.435-70.485-11.435-142.336 0-212.821h-83.797c-21.845 69.12-21.845 143.531 0 212.821zM205.141 270.677h67.072c11.435-43.179 29.013-84.651 51.712-123.051-48.981 30.72-89.771 73.045-118.784 123.051zM866.816 404.651l-77.312-19.456-5.632-19.115c-5.632-18.091-12.8-35.669-21.675-52.565l-9.557-17.749 40.789-68.096-61.099-61.44-68.437 41.301-17.749-9.557c-16.725-8.875-34.133-16.043-52.224-21.675l-19.456-5.632-19.115-77.312h-7.851v180.907c96.085 19.456 158.037 113.152 138.581 209.067-14.165 69.803-68.779 124.416-138.581 138.581v180.907h7.851l19.115-77.312 19.456-5.632c18.091-5.973 35.669-13.824 52.224-23.381l17.749-9.557 68.437 40.789 61.099-61.099-40.96-66.731 9.557-17.749c8.875-16.555 16.213-34.133 21.675-52.224l5.632-19.456 77.312-19.115 0.171-86.699z" />
36
  <glyph unicode="&#xe91a;" glyph-name="reply" d="M426 554.667q208-30 321-159t149-311q-154 218-470 218v-174l-298 298 298 298v-170z" />
 
 
 
 
 
 
 
 
 
37
  </font></defs></svg>
34
  <glyph unicode="&#xe918;" glyph-name="time_check" d="M86.528 448.341c-0.341-235.008 189.952-425.643 424.96-425.984s425.643 189.952 425.984 424.96c0.171 83.968-24.576 166.059-71.168 236.032l-60.075-63.488c22.528-39.765 37.035-83.627 42.325-129.195h-80.384v-84.651h80.384c-19.627-154.795-141.483-276.651-296.277-296.277v84.651h-84.651v-84.651c-154.795 19.456-276.821 141.483-296.277 296.277h84.651v84.651h-84.651c18.432 155.307 140.971 277.845 296.277 296.277v-82.603h84.651v81.749c46.251-5.803 90.795-21.163 130.731-44.885l61.44 61.44c-68.779 46.080-149.675 70.827-232.448 71.168-234.837-0.341-425.301-190.635-425.472-425.472zM414.549 605.355l-59.563-59.733 157.013-157.013 410.624 410.965-59.733 59.733-350.891-350.891z" />
35
  <glyph unicode="&#xe919;" glyph-name="world_settings" d="M833.707 597.333l48.981 81.92-139.435 139.435-81.92-48.981c-8.875 4.267-18.091 7.851-27.648 11.435l-23.040 92.672h-98.645c-235.179-0.171-425.643-190.635-425.643-425.813s190.464-425.643 425.643-425.643h98.645l23.040 92.672c9.557 3.584 18.773 7.168 27.648 11.435l81.92-48.981 139.435 139.435-48.981 81.92c3.925 8.875 7.851 18.091 11.435 27.648l92.672 23.040v197.12l-92.672 23.040c-3.584 9.557-7.168 20.139-11.435 27.648zM319.659 448c0.171 35.669 3.243 71.339 9.216 106.496h147.627v-212.821h-147.627c-5.973 34.987-9.045 70.656-9.216 106.325zM476.501 795.989v-170.667h-129.877c28.16 86.699 75.264 150.869 129.877 170.667zM476.501 270.677v-171.008c-54.613 19.797-101.888 84.139-129.877 171.008h129.877zM547.499 547.669c55.125-20.309 83.456-81.579 63.147-136.704-10.752-29.184-33.792-52.224-63.147-63.147v199.851zM323.925 748.203c-22.869-38.4-40.277-79.701-51.712-122.709h-67.072c29.013 49.835 69.803 91.989 118.784 122.709zM173.568 554.496h83.797c-11.435-70.485-11.435-142.336 0-212.821h-83.797c-21.845 69.12-21.845 143.531 0 212.821zM205.141 270.677h67.072c11.435-43.179 29.013-84.651 51.712-123.051-48.981 30.72-89.771 73.045-118.784 123.051zM866.816 404.651l-77.312-19.456-5.632-19.115c-5.632-18.091-12.8-35.669-21.675-52.565l-9.557-17.749 40.789-68.096-61.099-61.44-68.437 41.301-17.749-9.557c-16.725-8.875-34.133-16.043-52.224-21.675l-19.456-5.632-19.115-77.312h-7.851v180.907c96.085 19.456 158.037 113.152 138.581 209.067-14.165 69.803-68.779 124.416-138.581 138.581v180.907h7.851l19.115-77.312 19.456-5.632c18.091-5.973 35.669-13.824 52.224-23.381l17.749-9.557 68.437 40.789 61.099-61.099-40.96-66.731 9.557-17.749c8.875-16.555 16.213-34.133 21.675-52.224l5.632-19.456 77.312-19.115 0.171-86.699z" />
36
  <glyph unicode="&#xe91a;" glyph-name="reply" d="M426 554.667q208-30 321-159t149-311q-154 218-470 218v-174l-298 298 298 298v-170z" />
37
+ <glyph unicode="&#xe91b;" glyph-name="paypal-svgrepo-com" d="M948.695 781.407c41.592-76.275 27.867-166.22 11.486-219.376-88.641-289.544-488.607-273.795-546.47-273.795-57.795 0-71.254-53.893-71.254-53.893l-43.213-188.526c-11.779-66.175-71.793-62.877-71.793-62.877s-78.009 0-130.188 0c-3.273 0-6.328 0.225-9.134 0.631-0.645-12.117 1.079-47.541 44.401-47.541 52.139 0 130.147 0 130.147 0s60.013-3.366 71.834 62.806l43.165 188.519c0 0 13.507 53.897 71.301 53.897 57.767 0 457.829-15.746 546.514 273.808 19.787 64.717 35.874 183.635-46.797 266.347zM259.046 86.911l43.206 188.533c0 0 13.421 53.801 71.301 53.801 57.747 0 457.781-15.664 546.429 273.819 32.437 105.838 54.958 356.92-348.956 356.92h-291.749c0 0-60.641 2.816-75.606-61.659l-190.628-822.715c0 0-8.185-51.555 43.974-51.555 52.207 0 130.233 0 130.233 0s60.013-3.393 71.796 62.857zM369 565.482l38.741 167.179c0 0 12.339 45.462 52.207 52.193 39.827 6.755 107.667-1.201 125.12-4.495 113.299-21.279 89.201-128.478 89.201-128.478-22.433-165.476-280.007-142.514-280.007-142.514-40.383 14.602-25.262 56.115-25.262 56.115z" />
38
+ <glyph unicode="&#xe91c;" glyph-name="bank" d="M511.488 599.723c-8.875 0-16.213 7.168-16.213 16.213 0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363c0-15.189 10.411-27.989 24.576-31.744v-6.315c0-4.608 3.755-8.363 8.363-8.363s8.363 3.755 8.363 8.363v6.315c14.165 3.755 24.576 16.384 24.576 31.744 0 18.091-14.848 32.939-32.939 32.939-8.875 0-16.213 7.168-16.213 16.213 0 8.875 7.168 16.213 16.213 16.213 8.533 0 15.531-6.656 16.213-15.019 0.341-4.608 4.437-8.021 8.875-7.851 4.608 0.341 8.192 4.267 7.851 8.875-1.024 14.336-11.093 25.941-24.576 29.525v6.315c0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363v-6.315c-13.995-3.755-24.576-16.555-24.576-31.744 0-18.091 14.848-32.939 32.939-32.939 8.875 0 16.213-7.168 16.213-16.213s-7.339-16.213-16.213-16.213zM862.72 508.587c0 0.512-0.171 1.195-0.341 1.707s-0.171 1.024-0.341 1.365c-0.171 0.512-0.512 0.853-0.853 1.195-0.341 0.512-0.683 1.024-1.024 1.365-0.171 0.171-0.171 0.171-0.171 0.341l-342.699 283.648c-3.072 2.56-7.68 2.56-10.752 0l-342.187-283.477c-0.171-0.171-0.171-0.171-0.171-0.341-0.512-0.341-0.683-0.853-1.024-1.365-0.341-0.341-0.683-0.853-0.853-1.195-0.171-0.512-0.341-1.024-0.341-1.365-0.171-0.512-0.341-1.195-0.341-1.707 0-0.171 0-0.171 0-0.341v-66.56c0-4.608 3.755-8.363 8.363-8.363h85.504v-258.048h-85.845c-4.608 0-8.363-3.755-8.363-8.363v-55.467c0-1.365 0.341-2.56 0.853-3.584-0.512-1.024-0.853-2.219-0.853-3.584 0-4.608 3.755-8.363 8.363-8.363h678.571c4.608 0 8.363 3.755 8.363 8.363v62.635c0 4.608-3.755 8.363-8.363 8.363h-79.872v257.877h86.016c4.608 0 8.363 3.755 8.363 8.363v66.56c0 0.171 0 0.171 0 0.341zM178.005 450.048v49.835h667.989v-49.835h-667.989zM839.851 158.549v-45.909h-661.845v45.909h661.845zM482.816 175.275v258.048h62.123v-258.048h-62.123zM512 780.971l319.147-264.363h-638.293l319.147 264.363zM271.872 433.323h194.048v-258.048h-115.029v228.352c0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363v-228.352h-62.123v258.048zM751.616 175.275h-189.952v258.048h110.933v-227.499c0-4.608 3.755-8.363 8.363-8.363s8.363 3.755 8.363 8.363v227.499h62.123v-258.048z" />
39
+ <glyph unicode="&#xe91d;" glyph-name="accounting" d="M862.72 432.128c0 0.512-0.171 1.024-0.341 1.536s-0.171 0.853-0.512 1.365c-0.171 0.341-0.512 0.853-0.853 1.195s-0.683 0.853-1.024 1.195c-0.171 0.171-0.171 0.171-0.341 0.341l-30.891 23.893c-2.56 2.048-6.315 2.219-9.045 0.341l-31.061-21.163-33.792 21.163c0 0 0 0 0 0h-0.171c-0.171 0.171-0.512 0.171-0.853 0.341-0.683 0.341-1.195 0.683-2.048 0.683-0.512 0-1.024 0-1.365 0-0.512 0-1.024 0-1.536 0-0.683-0.171-1.365-0.512-1.877-0.853-0.171-0.171-0.512-0.171-0.683-0.341v0c0 0 0 0 0 0l-5.973-4.096-29.184-19.797c-3.413-2.389-4.437-7.168-2.048-10.581 1.536-2.219 3.925-3.413 6.315-3.413 1.536 0 2.901 0.512 4.267 1.365l31.232 21.163 33.963-21.333c2.56-1.707 5.803-1.536 8.363 0.171l30.549 20.821 23.552-18.261v-152.747c0-43.861-35.669-79.701-79.701-79.701-43.861 0-79.701 35.669-79.701 79.701v407.723c0 47.957-35.84 87.723-82.261 94.037-1.024 0.512-2.219 1.024-3.584 1.024h-297.813c-52.395 0-94.891-42.667-94.891-94.891v-27.819h-13.995c-18.773 0-33.963-15.189-33.963-33.963v-468.821c0-18.773 15.189-33.963 33.963-33.963h341.504c18.773 0 33.963 15.189 33.963 33.963v468.651c0 18.773-15.189 33.963-33.963 33.963h-13.995v27.819c0 42.325 33.28 76.971 75.093 79.36 41.813-2.389 75.093-37.035 75.093-79.36v-407.723c0-33.28 17.408-62.635 43.52-79.701h-114.517c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h166.059c52.395 0 94.891 42.667 94.891 94.891v156.501c-0.341 0.341-0.341 0.512-0.341 0.683zM507.563 682.837v-81.749c0-4.267 3.413-7.68 7.68-7.68s7.68 3.413 7.68 7.68v38.571h13.995c10.411 0 18.773-8.363 18.773-18.773v-468.821c0-10.24-8.363-18.773-18.773-18.773h-341.675c-10.24 0-18.773 8.363-18.773 18.773v468.992c0 10.24 8.363 18.773 18.773 18.773h13.995v-38.571c0-4.267 3.413-7.68 7.68-7.68h248.832c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68h-241.152v74.069c0 43.861 35.669 79.701 79.701 79.701h246.784c-26.283-17.237-43.52-46.421-43.52-79.872zM209.237 558.251v-85.333c0-4.267 3.413-7.68 7.68-7.68h298.155c4.267 0 7.68 3.413 7.68 7.68v85.333c0 4.267-3.413 7.68-7.68 7.68h-298.155c-4.096 0-7.68-3.413-7.68-7.68zM224.597 550.571h282.965v-70.144h-282.965v70.144zM290.304 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68-0.171 4.267-3.584 7.68-7.68 7.68zM290.304 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.584 7.68-7.68 7.68zM290.304 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68-0.171 4.267-3.584 7.68-7.68 7.68z" />
40
+ <glyph unicode="&#xe91e;" glyph-name="bank-check" d="M862.72 645.803c-0.171 1.877-1.195 3.755-2.731 4.949l-96.768 75.776c-3.243 2.56-7.851 1.877-10.411-1.195l-274.091-349.184c-0.853-1.024-1.365-2.389-1.536-3.584l-14.677-118.955c-0.341-2.56 0.683-5.12 2.731-6.656 1.365-1.024 2.901-1.536 4.608-1.536 0.853 0 1.707 0.171 2.731 0.512l111.445 43.008c1.195 0.512 2.389 1.195 3.072 2.389l153.259 195.243v-303.957h-564.395l0.512 337.408 347.989-1.536c0 0 0 0 0 0 4.096 0 7.339 3.243 7.339 7.339s-3.243 7.339-7.339 7.339l-355.328 1.536c-2.219-0.341-3.755-0.683-5.291-2.219-1.365-1.365-2.219-3.243-2.219-5.291l-0.512-351.915c0-3.584 2.56-6.315 5.973-6.997 0.853-0.341 1.877-0.683 2.901-0.683h577.707c4.096 0 7.339 3.243 7.339 7.339v330.24l106.155 135.168c1.195 1.536 1.707 3.584 1.536 5.461zM587.776 315.904l-56.491 44.203c-3.243 2.56-7.851 1.877-10.411-1.195-2.56-3.243-1.877-7.851 1.195-10.411l56.491-44.203-1.877-2.389-98.133-37.888 12.971 104.619 222.208 283.136 61.099-47.957c1.365-1.024 2.901-1.536 4.608-1.536 2.219 0 4.267 1.024 5.803 2.901 2.56 3.243 1.877 7.851-1.195 10.411l-61.099 47.787 37.035 47.104 85.163-66.731-257.365-327.851zM466.261 443.051c0 4.096-3.243 7.339-7.339 7.339h-206.507c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h206.507c3.925 0 7.339 3.243 7.339 7.339zM395.605 351.403c0 4.096-3.243 7.339-7.339 7.339h-136.021c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h136.021c4.096 0 7.339 3.243 7.339 7.339zM252.245 267.264c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h81.92c4.096 0 7.339 3.243 7.339 7.339s-3.243 7.339-7.339 7.339h-81.92z" />
41
+ <glyph unicode="&#xe91f;" glyph-name="cash" d="M387.072 268.629c1.024-0.853 2.389-1.195 3.755-1.195 0.853 0 1.707 0.171 2.56 0.512l138.752 59.733c3.243 1.365 4.779 5.291 3.413 8.533s-5.291 4.779-8.533 3.413l-135.339-58.368-218.795 151.552c-2.901 2.048-6.997 1.365-9.045-1.707-2.048-2.901-1.365-6.997 1.707-9.045l221.525-153.429zM852.48 474.453l-131.584-55.125c-3.243-1.365-4.949-5.12-3.413-8.533 1.024-2.56 3.413-3.925 5.973-3.925 0.853 0 1.707 0.171 2.56 0.512l131.584 55.125c3.243 1.365 4.949 5.12 3.413 8.533-1.365 3.243-5.291 4.779-8.533 3.413zM851.285 425.643l-153.771-64.341 2.219 83.285 0.683 0.341c0.341 0.171 0.512 0.171 0.853 0.341l157.696 66.048c2.219 0.853 3.755 2.901 3.925 5.291s-0.853 4.608-2.731 5.973l-221.696 153.6c-1.877 1.195-4.096 1.536-6.144 0.683l-464.213-194.389c-0.171 0-0.341-0.171-0.512-0.341-0.341-0.171-0.683-0.512-1.024-0.683-0.341-0.341-0.683-0.512-1.024-0.853-0.171-0.171-0.341-0.171-0.341-0.341-0.171-0.171-0.171-0.341-0.341-0.683s-0.341-0.853-0.512-1.195c-0.171-0.341-0.171-0.853-0.171-1.195s0-0.853 0-1.195c0-0.512 0.171-0.853 0.341-1.365 0-0.171 0-0.512 0.171-0.683 0-0.171 0.171-0.341 0.341-0.512 0.171-0.341 0.512-0.683 0.683-1.024 0.341-0.341 0.512-0.683 0.853-1.024 0.171-0.171 0.171-0.341 0.341-0.341l221.696-153.6c0 0 0 0 0 0 0.341-0.341 0.853-0.512 1.195-0.683 0.171 0 0.341-0.171 0.512-0.171 0.512-0.171 1.024-0.171 1.365-0.171 0.171 0 0.341 0 0.341 0v0c0 0 0 0 0 0 0.853 0 1.707 0.171 2.56 0.512l158.379 66.389-2.219-83.285-160.427-67.243-218.795 151.723c-2.901 2.048-6.997 1.365-9.045-1.707-2.048-2.901-1.365-6.997 1.707-9.045l221.696-153.6c1.195-0.853 2.389-1.195 3.755-1.195 0.853 0 1.707 0.171 2.56 0.512l464.213 194.389c3.243 1.365 4.949 5.12 3.413 8.533-1.536 3.072-5.291 4.608-8.533 3.243zM633.685 663.381l209.067-144.896-144.213-60.416-209.067 144.896 144.213 60.416zM392.704 330.069l-209.067 144.896 155.819 65.195 209.067-144.896-155.819-65.195zM566.101 395.264c0 0.171-0.171 0.341-0.171 0.683 0 0.512-0.171 0.853-0.171 1.365-0.171 0.341-0.171 0.853-0.512 1.195-0.171 0.341-0.341 0.683-0.683 1.024s-0.512 0.683-0.853 1.024c-0.171 0.171-0.341 0.341-0.512 0.512l-209.749 145.408 121.515 50.859 211.456-146.603-2.389-94.891-120.32-50.347 2.389 89.771zM391.168 437.76c-1.877 4.779-7.339 7.168-12.117 5.291s-7.168-7.339-5.291-12.117c1.877-4.779 7.339-7.168 12.117-5.291s7.168 7.339 5.291 12.117zM674.133 551.083c4.779 1.877 7.168 7.339 5.291 12.117s-7.339 7.168-12.117 5.291c-4.779-1.877-7.168-7.339-5.291-12.117 1.877-4.949 7.339-7.168 12.117-5.291z" />
42
+ <glyph unicode="&#xe920;" glyph-name="credit-card" d="M813.909 620.544h-645.12c-4.096 0-7.509-3.413-7.509-7.509v-376.832c0-4.096 3.413-7.509 7.509-7.509h645.12c4.096 0 7.509 3.413 7.509 7.509v376.832c0 4.096-3.243 7.509-7.509 7.509zM806.4 243.712h-630.101v361.813h630.101v-361.813zM717.141 378.197c-10.24 0-19.627-3.243-27.477-8.533-8.021 5.461-17.408 8.533-27.307 8.533-26.795 0-48.811-21.845-48.811-48.811s21.845-48.811 48.811-48.811c9.899 0 19.285 3.072 27.307 8.533 7.851-5.461 17.237-8.533 27.477-8.533 26.795 0 48.811 21.845 48.811 48.811s-22.016 48.811-48.811 48.811zM628.736 329.557c0 18.603 15.019 33.621 33.621 33.621 5.803 0 11.264-1.536 16.213-4.267-6.315-8.192-10.069-18.261-10.069-29.355s3.925-21.163 10.069-29.355c-4.949-2.731-10.411-4.267-16.213-4.267-18.603 0-33.621 15.019-33.621 33.621zM717.141 295.936c-18.603 0-33.621 15.019-33.621 33.621s15.019 33.621 33.621 33.621c18.603 0 33.621-15.019 33.621-33.621s-15.019-33.621-33.621-33.621zM224.427 472.064h117.589c4.096 0 7.509 3.413 7.509 7.509v80.555c0 4.096-3.413 7.509-7.509 7.509h-117.589c-4.096 0-7.509-3.413-7.509-7.509v-80.555c0-4.096 3.243-7.509 7.509-7.509zM231.936 552.619h102.571v-65.365h-102.571v65.365zM224.427 417.109h533.845c4.096 0 7.509 3.413 7.509 7.509s-3.413 7.509-7.509 7.509h-533.845c-4.096 0-7.509-3.413-7.509-7.509s3.243-7.509 7.509-7.509zM855.211 667.307h-628.736c-4.096 0-7.509-3.413-7.509-7.509s3.413-7.509 7.509-7.509h621.227v-359.765c0-4.096 3.413-7.509 7.509-7.509s7.509 3.413 7.509 7.509v367.275c0 4.096-3.413 7.509-7.509 7.509z" />
43
+ <glyph unicode="&#xe921;" glyph-name="check-circle" d="M483.499 298.667c-7.509 0-14.848 3.072-20.139 8.363l-99.499 99.669c-11.093 11.093-11.093 29.184 0 40.277s29.184 11.093 40.277 0l77.141-77.141 179.2 224.085c9.728 12.288 27.648 14.336 39.936 4.437 12.288-9.728 14.336-27.648 4.437-39.936l-199.168-249.173c-5.12-6.315-12.629-10.24-20.651-10.581-0.512 0-1.024 0-1.536 0zM512 35.499c-227.499 0-412.501 185.003-412.501 412.501s185.003 412.501 412.501 412.501 412.501-185.003 412.501-412.501-185.003-412.501-412.501-412.501zM512 803.499c-196.096 0-355.499-159.403-355.499-355.499s159.403-355.499 355.499-355.499 355.499 159.573 355.499 355.499-159.403 355.499-355.499 355.499z" />
44
+ <glyph unicode="&#xe922;" glyph-name="info-squared" d="M853.333 35.499h-682.667c-39.253 0-71.168 31.915-71.168 71.168v682.667c0 39.253 31.915 71.168 71.168 71.168h682.667c39.253 0 71.168-31.915 71.168-71.168v-682.667c0-39.253-31.915-71.168-71.168-71.168zM170.667 803.499c-7.851 0-14.165-6.315-14.165-14.165v-682.667c0-7.851 6.315-14.165 14.165-14.165h682.667c7.851 0 14.165 6.315 14.165 14.165v682.667c0 7.851-6.315 14.165-14.165 14.165h-682.667zM504.832 561.835c-19.627 0-35.499 15.872-35.499 35.499s15.872 35.499 35.499 35.499 35.499-15.872 35.499-35.499-15.872-35.499-35.499-35.499zM568.832 291.499h-28.501v199.168c0 15.701-12.8 28.501-28.501 28.501h-28.501c-15.701 0-28.501-12.8-28.501-28.501s12.8-28.501 28.501-28.501v-170.667h-28.501c-15.701 0-28.501-12.8-28.501-28.501s12.8-28.501 28.501-28.501h113.835c15.701 0 28.501 12.8 28.501 28.501s-12.629 28.501-28.331 28.501z" />
45
+ <glyph unicode="&#xe923;" glyph-name="warning-triangle" d="M504.832 789.333l384-682.667h-768l384 682.667zM504.832 846.165v0c-20.48 0-39.424-11.093-49.664-29.013l-384-682.667c-9.899-17.579-9.728-39.083 0.512-56.661 10.24-17.408 28.843-28.16 49.152-28.16h768c20.139 0 38.912 10.752 49.152 28.16s10.411 39.083 0.512 56.661l-384 682.667c-10.069 17.92-29.013 29.013-49.664 29.013v0zM504.832 276.48c23.552 0 42.667-19.115 42.667-42.667s-19.115-42.667-42.667-42.667-42.667 19.115-42.667 42.667 19.115 42.667 42.667 42.667zM497.835 334.165c-15.701 0-28.501 12.8-28.501 28.501v227.499c0 15.701 12.8 28.501 28.501 28.501s28.501-12.8 28.501-28.501v-227.499c-0.171-15.701-12.8-28.501-28.501-28.501z" />
46
  </font></defs></svg>
plugin-fw/assets/fonts/yith-icon.ttf CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.woff CHANGED
Binary file
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 3.4.8
5
  * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
- * @version 3.4.8
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 3.4.10
5
  * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
+ * @version 3.4.10
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
plugin-fw/languages/yith-plugin-fw-el.mo ADDED
Binary file
plugin-fw/languages/yith-plugin-fw-el.po ADDED
@@ -0,0 +1,782 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2015 YIThemes
2
+ # This file is distributed under the same license as the YITH Plugin Starter package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
+ "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2020-01-10 13:40+0100\n"
8
+ "PO-Revision-Date: 2020-01-31 16:11+0000\n"
9
+ "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 2.2.1\n"
14
+ "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
15
+ "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
16
+ "esc_html_x:1,2c;_x;_ex\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "X-Poedit-SourceCharset: UTF-8\n"
19
+ "X-Poedit-Basepath: ..\n"
20
+ "X-Textdomain-Support: yes\n"
21
+ "Last-Translator: \n"
22
+ "Language: el_GR\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+
25
+ #: lib/privacy/yit-privacy.php:24
26
+ msgctxt "Privacy Policy Guide Title"
27
+ msgid "YITH Plugins"
28
+ msgstr "Πρόσθετα YITH"
29
+
30
+ #: lib/privacy/yit-privacy.php:59
31
+ msgctxt "Privacy Policy Content"
32
+ msgid ""
33
+ "This sample language includes the basics around what personal data your "
34
+ "store may be collecting, storing and sharing, as well as who may have access "
35
+ "to that data. Depending on what settings are enabled and which additional "
36
+ "plugins are used, the specific information shared by your store will vary. "
37
+ "We recommend consulting with a lawyer when deciding what information to "
38
+ "disclose on your privacy policy."
39
+ msgstr ""
40
+ "Αυτό το δείγμα γλώσσας περιλαμβάνει τα βασικά στοιχεία γύρω από το τι "
41
+ "προσωπικά δεδομένα το κατάστημά σας μπορεί να συλλέγει, την αποθήκευση και "
42
+ "την κοινή χρήση, καθώς και ποιοι μπορεί να έχουν πρόσβαση σε αυτά τα "
43
+ "δεδομένα. Ανάλογα με τις ρυθμίσεις που είναι ενεργοποιημένες και ποια "
44
+ "επιπλέον πρόσθετα χρησιμοποιούνται, οι συγκεκριμένες πληροφορίες που "
45
+ "κοινοποιούνται από το κατάστημά σας θα ποικίλλουν. Συνιστούμε τη διαβούλευση "
46
+ "με έναν δικηγόρο, όταν αποφασίζετε ποιες πληροφορίες να αποκαλύπτετε στην "
47
+ "πολιτική απορρήτου σας."
48
+
49
+ #: lib/privacy/yit-privacy.php:63
50
+ msgctxt "Privacy Policy Content"
51
+ msgid "What we collect and store"
52
+ msgstr "Τι συλλέγουμε και αποθηκεύουμε"
53
+
54
+ #: lib/privacy/yit-privacy.php:66
55
+ msgctxt "Privacy Policy Content"
56
+ msgid "Who on our team has access"
57
+ msgstr "Ποιος στην ομάδα μας έχει πρόσβαση"
58
+
59
+ #: lib/privacy/yit-privacy.php:69
60
+ msgctxt "Privacy Policy Content"
61
+ msgid "What we share with others"
62
+ msgstr "Τι μοιραζόμαστε με τους άλλους"
63
+
64
+ #: lib/privacy/yit-privacy.php:72
65
+ msgctxt "Privacy Policy Content"
66
+ msgid "Payments"
67
+ msgstr "Πληρωμές"
68
+
69
+ #: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
70
+ #: lib/yit-cpt-unlimited.php:721 lib/yit-cpt-unlimited.php:1636
71
+ #, php-format
72
+ msgid "Add %s"
73
+ msgstr "Προσθήκη %s"
74
+
75
+ #: lib/yit-cpt-unlimited.php:463 lib/yit-cpt-unlimited.php:577
76
+ #, php-format
77
+ msgid "Add New %s"
78
+ msgstr "Προσθήκη Νέου %s"
79
+
80
+ #: lib/yit-cpt-unlimited.php:464 lib/yit-cpt-unlimited.php:578
81
+ #: lib/yit-cpt-unlimited.php:1269 lib/yit-cpt-unlimited.php:1306
82
+ #, php-format
83
+ msgid "Edit %s"
84
+ msgstr "Επεξεργασία %s"
85
+
86
+ #: lib/yit-cpt-unlimited.php:465 lib/yit-cpt-unlimited.php:579
87
+ #, php-format
88
+ msgid "New %s"
89
+ msgstr "Νέο %s"
90
+
91
+ #: lib/yit-cpt-unlimited.php:466 lib/yit-cpt-unlimited.php:580
92
+ #, php-format
93
+ msgid "All %s"
94
+ msgstr "Όλα %s"
95
+
96
+ #: lib/yit-cpt-unlimited.php:467 lib/yit-cpt-unlimited.php:581
97
+ #: lib/yit-cpt-unlimited.php:1253 lib/yit-cpt-unlimited.php:1307
98
+ #, php-format
99
+ msgid "View %s"
100
+ msgstr "Προβολή %s"
101
+
102
+ #: lib/yit-cpt-unlimited.php:468 lib/yit-cpt-unlimited.php:582
103
+ #, php-format
104
+ msgid "Search %s"
105
+ msgstr "Αναζήτηση %s"
106
+
107
+ #: lib/yit-cpt-unlimited.php:469 lib/yit-cpt-unlimited.php:583
108
+ #, php-format
109
+ msgid "No %s found"
110
+ msgstr "Δεν βρέθηκε %s"
111
+
112
+ #: lib/yit-cpt-unlimited.php:470 lib/yit-cpt-unlimited.php:584
113
+ #, php-format
114
+ msgid "No %s found in Trash"
115
+ msgstr "Δεν βρέθηκε %s στον Κάδο Ανακύκλωσης"
116
+
117
+ #: lib/yit-cpt-unlimited.php:627
118
+ #, php-format
119
+ msgctxt "taxonomy general name"
120
+ msgid "%s Categories"
121
+ msgstr "Κατηγορίες %s"
122
+
123
+ #: lib/yit-cpt-unlimited.php:628
124
+ msgctxt "taxonomy singular name"
125
+ msgid "Category"
126
+ msgstr "Κατηγορία"
127
+
128
+ #: lib/yit-cpt-unlimited.php:629 templates/fields/ajax-terms.php:56
129
+ msgid "Search Categories"
130
+ msgstr "Αναζήτηση Κατηγοριών"
131
+
132
+ #: lib/yit-cpt-unlimited.php:630
133
+ msgid "All Categories"
134
+ msgstr "Όλες οι Κατηγορίες"
135
+
136
+ #: lib/yit-cpt-unlimited.php:631
137
+ msgid "Parent Category"
138
+ msgstr "Γονική Κατηγορία"
139
+
140
+ #: lib/yit-cpt-unlimited.php:632
141
+ msgid "Parent Category:"
142
+ msgstr "Γονική Κατηγορία:"
143
+
144
+ #: lib/yit-cpt-unlimited.php:633
145
+ msgid "Edit Category"
146
+ msgstr "Επεξεργασία Kατηγορίας"
147
+
148
+ #: lib/yit-cpt-unlimited.php:634
149
+ msgid "Update Category"
150
+ msgstr "Ενημέρωση Κατηγορίας"
151
+
152
+ #: lib/yit-cpt-unlimited.php:635
153
+ msgid "Add New Category"
154
+ msgstr "Προσθήκη Νέας Κατηγορίας"
155
+
156
+ #: lib/yit-cpt-unlimited.php:636
157
+ msgid "New Category Name"
158
+ msgstr "Όνομα Νέας Κατηγορίας"
159
+
160
+ #: lib/yit-cpt-unlimited.php:637
161
+ msgid "Category"
162
+ msgstr "Κατηγορία"
163
+
164
+ #: lib/yit-cpt-unlimited.php:726
165
+ msgid "Categories"
166
+ msgstr "Κατηγορίες"
167
+
168
+ #: lib/yit-cpt-unlimited.php:1044
169
+ #, php-format
170
+ msgid "%s Settings"
171
+ msgstr "Ρυθμίσεις %s"
172
+
173
+ #: lib/yit-cpt-unlimited.php:1050 lib/yit-cpt-unlimited.php:1198
174
+ #: lib/yit-cpt-unlimited.php:1204 lib/yit-plugin-panel.php:80
175
+ msgid "Settings"
176
+ msgstr "Ρυθμίσεις"
177
+
178
+ #: lib/yit-cpt-unlimited.php:1053
179
+ msgid "Type"
180
+ msgstr "Τύπος"
181
+
182
+ #: lib/yit-cpt-unlimited.php:1054
183
+ #, php-format
184
+ msgid "Layout for this %s"
185
+ msgstr "Διάταξη για %s"
186
+
187
+ #: lib/yit-cpt-unlimited.php:1060
188
+ msgid "Rewrite"
189
+ msgstr "Επανεγγραφή"
190
+
191
+ #: lib/yit-cpt-unlimited.php:1061
192
+ msgid ""
193
+ "Univocal identification name in the URL for each product (slug from post if "
194
+ "empty)"
195
+ msgstr ""
196
+ "Μονοσήμαντο όνομα ταυτοποίησης URL για κάθε προϊόν (slug από άρθρο αν είναι "
197
+ "κενό)"
198
+
199
+ #: lib/yit-cpt-unlimited.php:1066
200
+ msgid "Label in Singular"
201
+ msgstr "Επιγραφή σε Ενικό"
202
+
203
+ #: lib/yit-cpt-unlimited.php:1067
204
+ msgid "Set a label in singular (title of portfolio if empty)"
205
+ msgstr "Ορίστε μια επιγραφή στον ενικό (τίτλος πορτφόλιο αν είναι κενό)"
206
+
207
+ #: lib/yit-cpt-unlimited.php:1072
208
+ msgid "Label in Plural"
209
+ msgstr "Επιγραφή σε Πληθυντικό"
210
+
211
+ #: lib/yit-cpt-unlimited.php:1073
212
+ msgid "Set a label in plural (title of portfolio if empty)"
213
+ msgstr "Ορίστε μια επιγραφή στον πληθυντικό (τίτλος πορτφόλιο αν είναι κενό)"
214
+
215
+ #: lib/yit-cpt-unlimited.php:1078
216
+ msgid "Taxonomy"
217
+ msgstr "Ταξινομία"
218
+
219
+ #: lib/yit-cpt-unlimited.php:1079
220
+ msgid ""
221
+ "If you want to use categories in the portfolio, set a name for taxonomy. "
222
+ "Name should be a slug (must not contain capital letters nor spaces) and must "
223
+ "not be more than 32 characters long (database structure restriction)."
224
+ msgstr ""
225
+ "Αν θέλετε να χρησιμοποιήσετε κατηγορίες στο πορτφόλιο, ορίστε ένα όνομα για "
226
+ "την ταξινομία. Το όνομα πρέπει να είναι slug (δεν πρέπει να περιλαμβάνει "
227
+ "κεφαλαία γράμματα ή κενά) και δεν πρέπει να είναι μεγαλύτερο από 32 "
228
+ "χαρακτήρες (περιορισμός δομής βάσης δεδομένων)."
229
+
230
+ #: lib/yit-cpt-unlimited.php:1084
231
+ msgid "Taxonomy Rewrite"
232
+ msgstr "Επανεγγραφή Ταξινομίας"
233
+
234
+ #: lib/yit-cpt-unlimited.php:1085
235
+ msgid "Set univocal name for each category page URL."
236
+ msgstr "Ορίστε μονοσήμαντο όνομα για κάθε URL σελίδας κατηγορίας."
237
+
238
+ #: lib/yit-cpt-unlimited.php:1090
239
+ msgid "Single layout"
240
+ msgstr "Μονή διάταξη"
241
+
242
+ #: lib/yit-cpt-unlimited.php:1091
243
+ msgid "Layout for single page of this portfolio"
244
+ msgstr "Διάταξη μονής σελίδας του πορτφόλιο"
245
+
246
+ #: lib/yit-cpt-unlimited.php:1132
247
+ msgid "layout settings"
248
+ msgstr "ρυθμίσεις διάταξης"
249
+
250
+ #: lib/yit-cpt-unlimited.php:1224 lib/yit-cpt-unlimited.php:1237
251
+ msgid "Quick links"
252
+ msgstr "Γρήγορα λινκ"
253
+
254
+ #: lib/yit-cpt-unlimited.php:1477
255
+ #, php-format
256
+ msgid "Show frontend of the %s"
257
+ msgstr "Προβολή εμφάνισης του %s"
258
+
259
+ #: lib/yit-cpt-unlimited.php:1484 templates/fields/customtabs.php:46
260
+ #: templates/fields/customtabs.php:89
261
+ msgid "Name"
262
+ msgstr "Όνομα"
263
+
264
+ #: lib/yit-cpt-unlimited.php:1635
265
+ #, php-format
266
+ msgid "Add %s from images"
267
+ msgstr "Προσθήκη %s από εικόνες"
268
+
269
+ #: lib/yit-cpt-unlimited.php:1638
270
+ msgid "Upload multiple files"
271
+ msgstr "Ανέβασμα πολλαπλών αρχείων"
272
+
273
+ #: lib/yit-plugin-panel-wc.php:397
274
+ msgid "The changes you have made will be lost if you leave this page."
275
+ msgstr ""
276
+ "Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα."
277
+
278
+ #: lib/yit-plugin-panel.php:79
279
+ msgid "Plugin Settings"
280
+ msgstr "Ρυθμίσεις Προσθέτου"
281
+
282
+ #: lib/yit-plugin-panel.php:424 lib/yit-plugin-panel.php:427
283
+ msgid "How to install premium version"
284
+ msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
285
+
286
+ #: lib/yit-plugin-panel.php:571 lib/yit-plugin-subpanel.php:151
287
+ #: templates/panel/woocommerce/woocommerce-form.php:14
288
+ msgid "Save Changes"
289
+ msgstr "Αποθήκευση Αλλαγών"
290
+
291
+ #: lib/yit-plugin-panel.php:574 lib/yit-plugin-subpanel.php:154
292
+ #: templates/panel/woocommerce/woocommerce-form.php:17
293
+ msgid ""
294
+ "If you continue with this action, you will reset all options in this page."
295
+ msgstr ""
296
+ "Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
297
+ "σελίδα."
298
+
299
+ #: lib/yit-plugin-panel.php:576 lib/yit-plugin-subpanel.php:156
300
+ msgid "Reset to default"
301
+ msgstr "Επαναφορά σε προεπιλεγμένο"
302
+
303
+ #: lib/yit-plugin-panel.php:577 lib/yit-plugin-subpanel.php:157
304
+ #: templates/panel/woocommerce/woocommerce-form.php:21
305
+ msgid "Are you sure?"
306
+ msgstr "Είστε σίγουρος;"
307
+
308
+ #: lib/yit-plugin-panel.php:775
309
+ msgid ""
310
+ "The element you have entered already exists. Please, enter another name."
311
+ msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα. "
312
+
313
+ #: lib/yit-plugin-panel.php:776
314
+ msgid "Settings saved"
315
+ msgstr "Ρυθμίσεις αποθηκεύτηκαν"
316
+
317
+ #: lib/yit-plugin-panel.php:777
318
+ msgid "Settings reset"
319
+ msgstr "Επαναφορά ρυθμίσεων"
320
+
321
+ #: lib/yit-plugin-panel.php:778
322
+ msgid "Element deleted correctly."
323
+ msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
324
+
325
+ #: lib/yit-plugin-panel.php:779 lib/yit-plugin-panel.php:780
326
+ msgid "Element updated correctly."
327
+ msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
328
+
329
+ #: lib/yit-plugin-panel.php:781
330
+ msgid "Database imported correctly."
331
+ msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
332
+
333
+ #: lib/yit-plugin-panel.php:782
334
+ msgid "An error has occurred during import. Please try again."
335
+ msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
336
+
337
+ #: lib/yit-plugin-panel.php:783
338
+ msgid "The added file is not valid."
339
+ msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
340
+
341
+ #: lib/yit-plugin-panel.php:784
342
+ msgid "Sorry, import is disabled."
343
+ msgstr ""
344
+
345
+ #: lib/yit-plugin-panel.php:785
346
+ msgid "Sorting successful."
347
+ msgstr ""
348
+
349
+ #: lib/yit-plugin-panel.php:1233
350
+ msgid "We need your support"
351
+ msgstr ""
352
+
353
+ #: lib/yit-plugin-panel.php:1234
354
+ msgid "to keep updating and improving the plugin. Please,"
355
+ msgstr ""
356
+
357
+ #: lib/yit-plugin-panel.php:1236
358
+ msgid "help us by leaving a five-star rating"
359
+ msgstr ""
360
+
361
+ #: lib/yit-plugin-panel.php:1237
362
+ msgid ":) Thanks!"
363
+ msgstr ""
364
+
365
+ #: lib/yit-pointers.php:70
366
+ msgid "Plugins Activated"
367
+ msgstr ""
368
+
369
+ #: lib/yit-pointers.php:71
370
+ msgid ""
371
+ "From now on, you can find all plugin options in YITH Plugins menu.\n"
372
+ " Plugin customization settings will be "
373
+ "available as a new entry in YITH Plugins menu."
374
+ msgstr ""
375
+
376
+ #: lib/yit-pointers.php:73 lib/yit-pointers.php:89
377
+ msgid "Discover all our plugins available on:"
378
+ msgstr ""
379
+
380
+ #: lib/yit-pointers.php:74 lib/yit-pointers.php:90
381
+ msgid "and"
382
+ msgstr ""
383
+
384
+ #: lib/yit-pointers.php:84
385
+ msgid "Plugins Upgraded"
386
+ msgstr ""
387
+
388
+ #: lib/yit-pointers.php:85
389
+ msgid ""
390
+ "From now on, you can find the option panel of YITH plugins in YITH Plugins "
391
+ "menu.\n"
392
+ " Every time one of our plugins is added, "
393
+ "a new entry will be added to this menu.\n"
394
+ " For example, after the update, plugin "
395
+ "options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax "
396
+ "Search, etc.)\n"
397
+ " will be moved from previous location to "
398
+ "YITH Plugins tab."
399
+ msgstr ""
400
+
401
+ #: lib/yith-dashboard.php:40
402
+ msgid "YITH Latest Updates"
403
+ msgstr ""
404
+
405
+ #: lib/yith-dashboard.php:41
406
+ msgid "Latest news from YITH Blog"
407
+ msgstr ""
408
+
409
+ #: lib/yith-dashboard.php:65
410
+ msgid "RSS Error:"
411
+ msgstr ""
412
+
413
+ #: lib/yith-dashboard.php:71
414
+ msgid ""
415
+ "An error has occurred, which probably means the feed is down. Try again "
416
+ "later."
417
+ msgstr ""
418
+
419
+ #: lib/yith-dashboard.php:99
420
+ msgctxt "Plugin FW"
421
+ msgid "View Changelog"
422
+ msgstr ""
423
+
424
+ #: lib/yith-dashboard.php:100
425
+ msgctxt "Plugin FW"
426
+ msgid "Latest update released on"
427
+ msgstr ""
428
+
429
+ #: lib/yith-dashboard.php:143
430
+ msgctxt "Button label"
431
+ msgid "Close"
432
+ msgstr ""
433
+
434
+ #: lib/yith-gutenberg.php:134
435
+ msgctxt "[gutenberg]: Category Name"
436
+ msgid "YITH"
437
+ msgstr ""
438
+
439
+ #: lib/yith-system-status.php:97 lib/yith-system-status.php:98
440
+ msgid "System Status"
441
+ msgstr ""
442
+
443
+ #: lib/yith-system-status.php:104
444
+ msgid "WordPress Version"
445
+ msgstr ""
446
+
447
+ #: lib/yith-system-status.php:105
448
+ msgid "WooCommerce Version"
449
+ msgstr ""
450
+