Version Description
Released: May, 28 - 2018 =
New: WooCommerce 3.4 compatibility
New: WordPress 4.9.6 compatibility
New: updated plugin framework
New: GDPR compliance
Tweak: replaced create_function with a proper class method, to improve compatibility with PHP 7.2 and avoid warnings
Fix: js error when switching from Premium version to Free
Fix: preventing add_rewrite_rule when WPML is active, to avoid possible Internal Server Error (thanks to Adri & Bruno)
Fix: icon replacement not working on variable Add to Cart
Fix: preventing warning "Illegal string offset" when get_availability() returns empty string instead of array
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Wishlist |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- README.txt +26 -7
- assets/js/jquery.yith-wcwl.js +18 -18
- assets/js/unminified/jquery.yith-wcwl.js +2 -2
- includes/class.yith-wcwl-admin-init.php +8 -1
- includes/class.yith-wcwl-init.php +14 -4
- includes/class.yith-wcwl-install.php +3 -2
- includes/class.yith-wcwl-privacy.php +316 -0
- includes/class.yith-wcwl-ui.php +223 -223
- includes/class.yith-wcwl.php +18 -2
- init.php +2 -2
- languages/yith-woocommerce-wishlist.pot +905 -905
- plugin-fw/assets/css/yit-plugin-panel.css +2 -66
- plugin-fw/assets/css/yith-fields.css +42 -12
- plugin-fw/assets/js/multisite-updater.js +75 -79
- plugin-fw/assets/js/multisite-updater.min.js +7 -4
- plugin-fw/assets/js/yit-plugin-panel.js +0 -31
- plugin-fw/assets/js/yit-plugin-panel.min.js +7 -5
- plugin-fw/init.php +2 -2
- plugin-fw/lib/privacy/yit-privacy-plugin-abstract.php +29 -0
- plugin-fw/lib/privacy/yit-privacy.php +79 -0
- plugin-fw/lib/yit-metabox.php +5 -1
- plugin-fw/lib/yit-plugin-panel-wc.php +5 -2
- plugin-fw/lib/yit-plugin-panel.php +13 -18
- plugin-fw/lib/yit-plugin-subpanel.php +0 -1
- plugin-fw/lib/yit-upgrade.php +76 -36
- plugin-fw/lib/yit-video.php +3 -1
- plugin-fw/licence/lib/yit-licence.php +2 -2
- plugin-fw/licence/lib/yit-plugin-licence.php +1 -1
- plugin-fw/templates/fields/onoff.php +6 -1
- plugin-fw/templates/fields/radio.php +33 -0
- plugin-fw/templates/panel/videobox.php +0 -83
- plugin-fw/templates/privacy/html-policy-content.php +37 -0
- plugin-fw/templates/upgrade/changelog.php +51 -0
- plugin-fw/templates/upgrade/error.php +147 -0
- plugin-fw/yit-plugin.php +2 -0
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- templates/wishlist-view.php +2 -2
README.txt
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
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: 4.9.
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
YITH WooCommerce Wishlist add all Wishlist features to your website. Needs WooCommerce to work.
|
12 |
-
WooCommerce 3.
|
13 |
|
14 |
|
15 |
== Description ==
|
@@ -109,6 +109,18 @@ you should ask theme developers to update custom templates and replace the old t
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= 2.2.1 - Released: Jan, 31 - 2018 =
|
113 |
|
114 |
* New: tested with WooCommerce 3.3.0
|
@@ -452,7 +464,14 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
|
|
452 |
|
453 |
== Upgrade notice ==
|
454 |
|
455 |
-
= 2.2.
|
456 |
-
|
457 |
-
* New:
|
458 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
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: 4.9.6
|
7 |
+
Stable tag: 2.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
YITH WooCommerce Wishlist add all Wishlist features to your website. Needs WooCommerce to work.
|
12 |
+
WooCommerce 3.4.x compatible.
|
13 |
|
14 |
|
15 |
== Description ==
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 2.2.2 - Released: May, 28 - 2018 =
|
113 |
+
|
114 |
+
* New: WooCommerce 3.4 compatibility
|
115 |
+
* New: WordPress 4.9.6 compatibility
|
116 |
+
* New: updated plugin framework
|
117 |
+
* New: GDPR compliance
|
118 |
+
* Tweak: replaced create_function with a proper class method, to improve compatibility with PHP 7.2 and avoid warnings
|
119 |
+
* Fix: js error when switching from Premium version to Free
|
120 |
+
* Fix: preventing add_rewrite_rule when WPML is active, to avoid possible Internal Server Error (thanks to Adri & Bruno)
|
121 |
+
* Fix: icon replacement not working on variable Add to Cart
|
122 |
+
* Fix: preventing warning "Illegal string offset" when get_availability() returns empty string instead of array
|
123 |
+
|
124 |
= 2.2.1 - Released: Jan, 31 - 2018 =
|
125 |
|
126 |
* New: tested with WooCommerce 3.3.0
|
464 |
|
465 |
== Upgrade notice ==
|
466 |
|
467 |
+
= 2.2.2 - Released: May, 28 - 2018 =
|
468 |
+
|
469 |
+
* New: WooCommerce 3.4 compatibility
|
470 |
+
* New: WordPress 4.9.6 compatibility
|
471 |
+
* New: updated plugin framework
|
472 |
+
* New: GDPR compliance
|
473 |
+
* Tweak: replaced create_function with a proper class method, to improve compatibility with PHP 7.2 and avoid warnings
|
474 |
+
* Fix: js error when switching from Premium version to Free
|
475 |
+
* Fix: preventing add_rewrite_rule when WPML is active, to avoid possible Internal Server Error (thanks to Adri & Bruno)
|
476 |
+
* Fix: icon replacement not working on variable Add to Cart
|
477 |
+
* Fix: preventing warning "Illegal string offset" when get_availability() returns empty string instead of array
|
assets/js/jquery.yith-wcwl.js
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
jQuery(document).ready(function(b){function n(){k.off("change");k=b('.wishlist_table tbody input[type="checkbox"]');"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox();p();l()}function u(){var a=b(".woocommerce-message");0==a.length?b("#yith-wcwl-form").prepend(yith_wcwl_l10n.labels.added_to_cart_message):a.fadeOut(300,function(){b(this).replaceWith(yith_wcwl_l10n.labels.added_to_cart_message).fadeIn()})}function v(a){var c=a.data("product-id"),d=b(".add-to-wishlist-"+c);c={add_to_wishlist:c,
|
2 |
product_type:a.data("product-type"),action:yith_wcwl_l10n.actions.add_to_wishlist_action};if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in){var e=a.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"),f=e.find(".wishlist-select"),g=e.find(".wishlist-name");e=e.find(".wishlist-visibility");c.wishlist_id=f.val();c.wishlist_name=g.val();c.wishlist_visibility=e.val()}r()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:c,dataType:"json",beforeSend:function(){a.siblings(".ajax-loading").css("visibility",
|
3 |
-
|
4 |
-
|
5 |
-
d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",c.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",c.wishlist_url)):"exists"==f?((!yith_wcwl_l10n.multi_wishlist||!yith_wcwl_l10n.is_user_logged_in||yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&yith_wcwl_l10n.hide_add_button)&&
|
6 |
-
d.find(".yith-wcwl-wishlistexistsbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",c.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",c.wishlist_url)):(d.find(".yith-wcwl-add-button").show().removeClass("hide").addClass("show"),d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide"));
|
7 |
-
|
8 |
-
c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();n();b("body").trigger("removed_from_wishlist",[a,g])})}function y(a,c){var d=a.data("product-id"),e=b(document).find(".cart.wishlist_table"),
|
9 |
-
h=e.data("id"),m=e.data("token");d={action:yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,pagination:f,per_page:g,wishlist_id:h,wishlist_token:m,add_to_wishlist:d,product_type:a.data("product-type")};r()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:d,dataType:"html",beforeSend:function(){"undefined"!=typeof b.fn.block&&e.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+
|
10 |
-
|
11 |
-
""!=h&&("undefined"!=typeof b.fn.block&&c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();n();b("body").trigger("moved_to_another_wishlist",[a,f])}))}function t(a){var c=
|
12 |
-
c.parents(".wishlist-title").hide()}function A(a){var c=b(this);a.preventDefault();c.parents(".hidden-title-form").hide();c.parents(".hidden-title-form").prev().show()}function r(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var a=-1!=document.cookie.indexOf("cookietest=");document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return a}function B(){if(0!=b(".yith-wcwl-add-to-wishlist").length&&
|
13 |
-
"yith-wcwl-message");a=b("<div>").attr("id","yith-wcwl-popup-message").html(a).hide();b("body").prepend(a)}}function p(){k.on("change",function(){var a="",c=b(this).parents(".cart.wishlist_table"),d=c.data("id");c=c.data("token");var e=document.URL;k.filter(":checked").each(function(){var d=b(this);a+=0!=a.length?",":"";a+=d.parents("[data-row-id]").data("row-id")});e=q(e,"wishlist_products_to_add_to_cart",a);e=q(e,"wishlist_token",
|
14 |
-
function l(){"undefined"!=typeof b.prettyPhoto&&b('a[data-rel^="prettyPhoto[add_to_wishlist_"]').add('a[data-rel="prettyPhoto[ask_an_estimate]"]').unbind("click").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1})}function q(a,b,d){d=b+"="+d;a=a.replace(new RegExp("(&|\\?)"+b+"=[^&]*"),"$1"+d);-1<a.indexOf(b+"=")||(a=-1<a.indexOf("?")?a+("&"+d):a+("?"+d));return a}
|
15 |
-
|
16 |
-
|
17 |
-
"body",n);a.on("click",".show-title-form",t);a.on("click",".wishlist-title-with-form h2",t);a.on("click",".hide-title-form",A);a.on("change",".change-wishlist",function(a){a=b(this);z(a);return!1});a.on("change",".yith-wcwl-popup-content .wishlist-select",function(a){a=b(this);"new"==a.val()?a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").css("display","table-row"):a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()});
|
18 |
-
c.attr("checked","checked").change():c.removeAttr("checked").change()});a.on("click","#custom_add_to_cart",function(a){var d=b(this),f=d.parents(".cart.wishlist_table");yith_wcwl_l10n.ajax_add_to_cart_enabled&&(a.preventDefault(),"undefined"!=typeof b.fn.block&&f.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),
|
19 |
-
|
20 |
-
|
1 |
jQuery(document).ready(function(b){function n(){k.off("change");k=b('.wishlist_table tbody input[type="checkbox"]');"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox();p();l()}function u(){var a=b(".woocommerce-message");0==a.length?b("#yith-wcwl-form").prepend(yith_wcwl_l10n.labels.added_to_cart_message):a.fadeOut(300,function(){b(this).replaceWith(yith_wcwl_l10n.labels.added_to_cart_message).fadeIn()})}function v(a){var c=a.data("product-id"),d=b(".add-to-wishlist-"+c);c={add_to_wishlist:c,
|
2 |
product_type:a.data("product-type"),action:yith_wcwl_l10n.actions.add_to_wishlist_action};if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in){var e=a.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"),f=e.find(".wishlist-select"),g=e.find(".wishlist-name");e=e.find(".wishlist-visibility");c.wishlist_id=f.val();c.wishlist_name=g.val();c.wishlist_visibility=e.val()}r()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:c,dataType:"json",beforeSend:function(){a.siblings(".ajax-loading").css("visibility",
|
3 |
+
"visible")},complete:function(){a.siblings(".ajax-loading").css("visibility","hidden")},success:function(c){var e=b("#yith-wcwl-popup-message"),f=c.result,g=c.message;if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in){var h=b("select.wishlist-select");yith_wcwl_l10n.multi_wishlist&&"undefined"!=typeof b.prettyPhoto&&"undefined"!=typeof b.prettyPhoto.close&&b.prettyPhoto.close();h.each(function(a){a=b(this);var d=a.find("option");d=d.slice(1,d.length-1);d.remove();if("undefined"!=
|
4 |
+
typeof c.user_wishlists)for(d in d=0,c.user_wishlists)"1"!=c.user_wishlists[d].is_default&&b("<option>").val(c.user_wishlists[d].ID).html(c.user_wishlists[d].wishlist_name).insertBefore(a.find("option:last-child"))})}b("#yith-wcwl-message").html(g);e.css("margin-left","-"+b(e).width()+"px").fadeIn();window.setTimeout(function(){e.fadeOut()},2E3);"true"==f?((!yith_wcwl_l10n.multi_wishlist||!yith_wcwl_l10n.is_user_logged_in||yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&yith_wcwl_l10n.hide_add_button)&&
|
5 |
+
d.find(".yith-wcwl-add-button").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",c.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",c.wishlist_url)):"exists"==f?((!yith_wcwl_l10n.multi_wishlist||!yith_wcwl_l10n.is_user_logged_in||yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&yith_wcwl_l10n.hide_add_button)&&
|
6 |
+
d.find(".yith-wcwl-add-button").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistexistsbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",c.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",c.wishlist_url)):(d.find(".yith-wcwl-add-button").show().removeClass("hide").addClass("show"),d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide"));
|
7 |
+
b("body").trigger("added_to_wishlist",[a,d])}}):alert(yith_wcwl_l10n.labels.cookie_disabled)}function x(a){var c=a.parents(".cart.wishlist_table"),d=c.data("pagination"),e=c.data("per-page"),f=c.data("page"),g=a.parents("[data-row-id]");c.find(".pagination-row");var h=g.data("row-id"),m=c.data("id"),w=c.data("token");d={action:yith_wcwl_l10n.actions.remove_from_wishlist_action,remove_from_wishlist:h,pagination:d,per_page:e,current_page:f,wishlist_id:m,wishlist_token:w};b("#yith-wcwl-message").html(" ");
|
8 |
+
"undefined"!=typeof b.fn.block&&c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();n();b("body").trigger("removed_from_wishlist",[a,g])})}function y(a,c){var d=a.data("product-id"),e=b(document).find(".cart.wishlist_table"),
|
9 |
+
f=e.data("pagination"),g=e.data("per-page"),h=e.data("id"),m=e.data("token");d={action:yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,pagination:f,per_page:g,wishlist_id:h,wishlist_token:m,add_to_wishlist:d,product_type:a.data("product-type")};r()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:d,dataType:"html",beforeSend:function(){"undefined"!=typeof b.fn.block&&e.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+
|
10 |
+
") no-repeat center",backgroundSize:"16px 16px",opacity:.6}})},success:function(a){a=b(a).find("#yith-wcwl-form");c.replaceWith(a);n()}}):alert(yith_wcwl_l10n.labels.cookie_disabled)}function z(a){var c=a.parents(".cart.wishlist_table"),d=c.data("token"),e=c.data("id"),f=a.parents("[data-row-id]"),g=f.data("row-id"),h=a.val(),m=c.data("pagination"),k=c.data("per-page"),l=c.data("page");d={action:yith_wcwl_l10n.actions.move_to_another_wishlist_action,wishlist_token:d,wishlist_id:e,destination_wishlist_token:h,
|
11 |
+
item_id:g,pagination:m,per_page:k,current_page:l};""!=h&&("undefined"!=typeof b.fn.block&&c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();n();b("body").trigger("moved_to_another_wishlist",[a,f])}))}function t(a){var c=
|
12 |
+
b(this);a.preventDefault();c.parents(".wishlist-title").next().show();c.parents(".wishlist-title").hide()}function A(a){var c=b(this);a.preventDefault();c.parents(".hidden-title-form").hide();c.parents(".hidden-title-form").prev().show()}function r(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var a=-1!=document.cookie.indexOf("cookietest=");document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return a}function B(){if(0!=b(".yith-wcwl-add-to-wishlist").length&&
|
13 |
+
0==b("#yith-wcwl-popup-message").length){var a=b("<div>").attr("id","yith-wcwl-message");a=b("<div>").attr("id","yith-wcwl-popup-message").html(a).hide();b("body").prepend(a)}}function p(){k.on("change",function(){var a="",c=b(this).parents(".cart.wishlist_table"),d=c.data("id");c=c.data("token");var e=document.URL;k.filter(":checked").each(function(){var d=b(this);a+=0!=a.length?",":"";a+=d.parents("[data-row-id]").data("row-id")});e=q(e,"wishlist_products_to_add_to_cart",a);e=q(e,"wishlist_token",
|
14 |
+
c);e=q(e,"wishlist_id",d);b("#custom_add_to_cart").attr("href",e)})}function l(){"undefined"!=typeof b.prettyPhoto&&b('a[data-rel^="prettyPhoto[add_to_wishlist_"]').add('a[data-rel="prettyPhoto[ask_an_estimate]"]').unbind("click").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1})}function q(a,b,d){d=b+"="+d;a=a.replace(new RegExp("(&|\\?)"+b+"=[^&]*"),"$1"+d);-1<a.indexOf(b+"=")||(a=-1<a.indexOf("?")?a+("&"+d):a+("?"+d));return a}
|
15 |
+
var C="undefined"!==typeof wc_add_to_cart_params&&null!==wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"",k=b('.wishlist_table tbody input[type="checkbox"]:not(:disabled)');b(document).on("yith_wcwl_init",function(){var a=b(this),c=b('.wishlist_table tbody input[type="checkbox"]:not(:disabled)');a.on("click",".add_to_wishlist",function(a){var d=b(this);a.preventDefault();v(d);return!1});a.on("click",".remove_from_wishlist",function(a){var d=b(this);a.preventDefault();x(d);return!1});
|
16 |
+
a.on("adding_to_cart","body",function(a,b,c){"undefined"!=typeof b&&"undefined"!=typeof c&&0!=b.closest(".wishlist_table").length&&(c.remove_from_wishlist_after_add_to_cart=b.closest("[data-row-id]").data("row-id"),c.wishlist_id=b.closest(".wishlist_table").data("id"),wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart)});a.on("added_to_cart","body",function(a){wc_add_to_cart_params.cart_redirect_after_add=C;a=b(".wishlist_table");a.find(".added").removeClass("added");a.find(".added_to_cart").remove()});
|
17 |
+
a.on("added_to_cart","body",u);a.on("cart_page_refreshed","body",n);a.on("click",".show-title-form",t);a.on("click",".wishlist-title-with-form h2",t);a.on("click",".hide-title-form",A);a.on("change",".change-wishlist",function(a){a=b(this);z(a);return!1});a.on("change",".yith-wcwl-popup-content .wishlist-select",function(a){a=b(this);"new"==a.val()?a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").css("display","table-row"):a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()});
|
18 |
+
a.on("change","#bulk_add_to_cart",function(){b(this).is(":checked")?c.attr("checked","checked").change():c.removeAttr("checked").change()});a.on("click","#custom_add_to_cart",function(a){var d=b(this),f=d.parents(".cart.wishlist_table");yith_wcwl_l10n.ajax_add_to_cart_enabled&&(a.preventDefault(),"undefined"!=typeof b.fn.block&&f.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),
|
19 |
+
b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+d.attr("href")+" #yith-wcwl-form",{action:yith_wcwl_l10n.actions.bulk_add_to_cart_action},function(){"undefined"!=typeof b.fn.unblock&&f.stop(!0).css("opacity","1").unblock();c.off("change");c=b('.wishlist_table tbody input[type="checkbox"]');"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox();p();l()}))});a.on("click",".yith-wfbt-add-wishlist",function(a){a.preventDefault();a=b(this);var c=b("#yith-wcwl-form");b("html, body").animate({scrollTop:c.offset().top},
|
20 |
+
500);y(a,c)});B();p();l()}).trigger("yith_wcwl_init");b(document).on("yith_infs_added_elem",function(){l()});"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox()});
|
assets/js/unminified/jquery.yith-wcwl.js
CHANGED
@@ -242,7 +242,7 @@ jQuery( document ).ready( function( $ ){
|
|
242 |
|
243 |
if( yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in ) {
|
244 |
var wishlist_select = $( 'select.wishlist-select' );
|
245 |
-
if( typeof $.prettyPhoto != 'undefined' && typeof $.prettyPhoto.close != 'undefined' ) {
|
246 |
$.prettyPhoto.close();
|
247 |
}
|
248 |
|
@@ -518,7 +518,7 @@ jQuery( document ).ready( function( $ ){
|
|
518 |
function add_wishlist_popup() {
|
519 |
if( $('.yith-wcwl-add-to-wishlist').length != 0 && $( '#yith-wcwl-popup-message' ).length == 0 ) {
|
520 |
var message_div = $( '<div>' )
|
521 |
-
|
522 |
popup_div = $( '<div>' )
|
523 |
.attr( 'id', 'yith-wcwl-popup-message' )
|
524 |
.html( message_div )
|
242 |
|
243 |
if( yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in ) {
|
244 |
var wishlist_select = $( 'select.wishlist-select' );
|
245 |
+
if( yith_wcwl_l10n.multi_wishlist && typeof $.prettyPhoto != 'undefined' && typeof $.prettyPhoto.close != 'undefined' ) {
|
246 |
$.prettyPhoto.close();
|
247 |
}
|
248 |
|
518 |
function add_wishlist_popup() {
|
519 |
if( $('.yith-wcwl-add-to-wishlist').length != 0 && $( '#yith-wcwl-popup-message' ).length == 0 ) {
|
520 |
var message_div = $( '<div>' )
|
521 |
+
.attr( 'id', 'yith-wcwl-message' ),
|
522 |
popup_div = $( '<div>' )
|
523 |
.attr( 'id', 'yith-wcwl-popup-message' )
|
524 |
.html( message_div )
|
includes/class.yith-wcwl-admin-init.php
CHANGED
@@ -177,7 +177,7 @@ if ( ! class_exists( 'YITH_WCWL_Admin_Init' ) ) {
|
|
177 |
public function install() {
|
178 |
$stored_db_version = get_option( 'yith_wcwl_db_version' );
|
179 |
|
180 |
-
if( $stored_db_version
|
181 |
add_action( 'init', array( YITH_WCWL_Install(), 'update' ) );
|
182 |
add_action( 'init', 'flush_rewrite_rules' );
|
183 |
YITH_WCWL_Install()->default_options( $this->options );
|
@@ -186,6 +186,13 @@ if ( ! class_exists( 'YITH_WCWL_Admin_Init' ) ) {
|
|
186 |
do_action( 'yith_wcwl_installed' );
|
187 |
do_action( 'yith_wcwl_updated' );
|
188 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
elseif ( YITH_WCWL_Init()->db_version != $stored_db_version || ! YITH_WCWL_Install()->is_installed() ) {
|
190 |
add_action( 'init', array( YITH_WCWL_Install(), 'init' ) );
|
191 |
add_action( 'init', 'flush_rewrite_rules' );
|
177 |
public function install() {
|
178 |
$stored_db_version = get_option( 'yith_wcwl_db_version' );
|
179 |
|
180 |
+
if( version_compare( $stored_db_version, '1.0.0', '<=' ) ){
|
181 |
add_action( 'init', array( YITH_WCWL_Install(), 'update' ) );
|
182 |
add_action( 'init', 'flush_rewrite_rules' );
|
183 |
YITH_WCWL_Install()->default_options( $this->options );
|
186 |
do_action( 'yith_wcwl_installed' );
|
187 |
do_action( 'yith_wcwl_updated' );
|
188 |
}
|
189 |
+
elseif( version_compare( $stored_db_version, '2.0.0', '<=' ) ){
|
190 |
+
add_action( 'init', array( YITH_WCWL_Install(), 'update' ) );
|
191 |
+
|
192 |
+
// Plugin installed
|
193 |
+
do_action( 'yith_wcwl_installed' );
|
194 |
+
do_action( 'yith_wcwl_updated' );
|
195 |
+
}
|
196 |
elseif ( YITH_WCWL_Init()->db_version != $stored_db_version || ! YITH_WCWL_Install()->is_installed() ) {
|
197 |
add_action( 'init', array( YITH_WCWL_Install(), 'init' ) );
|
198 |
add_action( 'init', 'flush_rewrite_rules' );
|
includes/class.yith-wcwl-init.php
CHANGED
@@ -49,7 +49,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
|
|
49 |
* @var string
|
50 |
* @since 1.0.0
|
51 |
*/
|
52 |
-
public $version = '2.2.
|
53 |
|
54 |
/**
|
55 |
* Plugin database version
|
@@ -57,7 +57,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
|
|
57 |
* @var string
|
58 |
* @since 1.0.0
|
59 |
*/
|
60 |
-
public $db_version = '2.
|
61 |
|
62 |
/**
|
63 |
* Positions of the button "Add to Wishlist"
|
@@ -239,12 +239,22 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
|
|
239 |
$position = empty( $position ) ? 'add-to-cart' : $position;
|
240 |
|
241 |
if ( $position != 'shortcode' ) {
|
242 |
-
add_action( $this->_positions[$position]['hook'],
|
243 |
}
|
244 |
|
245 |
// Free the memory. Like it needs a lot of memory... but this is rock!
|
246 |
}
|
247 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
/**
|
249 |
* Add specific body class when the Wishlist page is opened
|
250 |
*
|
@@ -365,7 +375,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
|
|
365 |
$yith_wcwl_l10n = array(
|
366 |
'ajax_url' => admin_url( 'admin-ajax.php', 'relative' ),
|
367 |
'redirect_to_cart' => get_option( 'yith_wcwl_redirect_cart' ),
|
368 |
-
'multi_wishlist' => get_option( 'yith_wcwl_multi_wishlist_enable' ) == 'yes' ? true : false,
|
369 |
'hide_add_button' => apply_filters( 'yith_wcwl_hide_add_button', true ),
|
370 |
'is_user_logged_in' => is_user_logged_in(),
|
371 |
'ajax_loader_url' => YITH_WCWL_URL . 'assets/images/ajax-loader.gif',
|
49 |
* @var string
|
50 |
* @since 1.0.0
|
51 |
*/
|
52 |
+
public $version = '2.2.2';
|
53 |
|
54 |
/**
|
55 |
* Plugin database version
|
57 |
* @var string
|
58 |
* @since 1.0.0
|
59 |
*/
|
60 |
+
public $db_version = '2.2.0';
|
61 |
|
62 |
/**
|
63 |
* Positions of the button "Add to Wishlist"
|
239 |
$position = empty( $position ) ? 'add-to-cart' : $position;
|
240 |
|
241 |
if ( $position != 'shortcode' ) {
|
242 |
+
add_action( $this->_positions[$position]['hook'], array( $this, 'print_button' ), $this->_positions[$position]['priority'] );
|
243 |
}
|
244 |
|
245 |
// Free the memory. Like it needs a lot of memory... but this is rock!
|
246 |
}
|
247 |
|
248 |
+
/**
|
249 |
+
* Print "Add to Wishlist" shortcode
|
250 |
+
*
|
251 |
+
* @return void
|
252 |
+
* @since 2.2.2
|
253 |
+
*/
|
254 |
+
public function print_button() {
|
255 |
+
echo do_shortcode( "[yith_wcwl_add_to_wishlist]" );
|
256 |
+
}
|
257 |
+
|
258 |
/**
|
259 |
* Add specific body class when the Wishlist page is opened
|
260 |
*
|
375 |
$yith_wcwl_l10n = array(
|
376 |
'ajax_url' => admin_url( 'admin-ajax.php', 'relative' ),
|
377 |
'redirect_to_cart' => get_option( 'yith_wcwl_redirect_cart' ),
|
378 |
+
'multi_wishlist' => defined( 'YITH_WCWL_PREMIUM' ) && get_option( 'yith_wcwl_multi_wishlist_enable' ) == 'yes' ? true : false,
|
379 |
'hide_add_button' => apply_filters( 'yith_wcwl_hide_add_button', true ),
|
380 |
'is_user_logged_in' => is_user_logged_in(),
|
381 |
'ajax_loader_url' => YITH_WCWL_URL . 'assets/images/ajax-loader.gif',
|
includes/class.yith-wcwl-install.php
CHANGED
@@ -162,7 +162,7 @@ if ( !class_exists( 'YITH_WCWL_Install' ) ) {
|
|
162 |
private function _add_wishlists_table() {
|
163 |
global $wpdb;
|
164 |
|
165 |
-
if( ! $this->is_installed() ){
|
166 |
$sql = "CREATE TABLE {$this->_table_wishlists} (
|
167 |
ID INT( 11 ) NOT NULL AUTO_INCREMENT,
|
168 |
user_id INT( 11 ) NOT NULL,
|
@@ -171,6 +171,7 @@ if ( !class_exists( 'YITH_WCWL_Install' ) ) {
|
|
171 |
wishlist_token VARCHAR( 64 ) NOT NULL UNIQUE,
|
172 |
wishlist_privacy TINYINT( 1 ) NOT NULL DEFAULT 0,
|
173 |
is_default TINYINT( 1 ) NOT NULL DEFAULT 0,
|
|
|
174 |
PRIMARY KEY ( ID ),
|
175 |
KEY ( wishlist_slug )
|
176 |
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
|
@@ -192,7 +193,7 @@ if ( !class_exists( 'YITH_WCWL_Install' ) ) {
|
|
192 |
private function _add_items_table() {
|
193 |
global $wpdb;
|
194 |
|
195 |
-
if( ! $this->is_installed() || get_option( 'yith_wcwl_db_version' )
|
196 |
$sql = "CREATE TABLE {$this->_table_items} (
|
197 |
ID int( 11 ) NOT NULL AUTO_INCREMENT,
|
198 |
prod_id int( 11 ) NOT NULL,
|
162 |
private function _add_wishlists_table() {
|
163 |
global $wpdb;
|
164 |
|
165 |
+
if( ! $this->is_installed() || version_compare( get_option( 'yith_wcwl_db_version' ), '2.2.0', '<' ) ){
|
166 |
$sql = "CREATE TABLE {$this->_table_wishlists} (
|
167 |
ID INT( 11 ) NOT NULL AUTO_INCREMENT,
|
168 |
user_id INT( 11 ) NOT NULL,
|
171 |
wishlist_token VARCHAR( 64 ) NOT NULL UNIQUE,
|
172 |
wishlist_privacy TINYINT( 1 ) NOT NULL DEFAULT 0,
|
173 |
is_default TINYINT( 1 ) NOT NULL DEFAULT 0,
|
174 |
+
dateadded timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
|
175 |
PRIMARY KEY ( ID ),
|
176 |
KEY ( wishlist_slug )
|
177 |
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
|
193 |
private function _add_items_table() {
|
194 |
global $wpdb;
|
195 |
|
196 |
+
if( ! $this->is_installed() || version_compare( get_option( 'yith_wcwl_db_version' ), '2.0.0', '<' ) ) {
|
197 |
$sql = "CREATE TABLE {$this->_table_items} (
|
198 |
ID int( 11 ) NOT NULL AUTO_INCREMENT,
|
199 |
prod_id int( 11 ) NOT NULL,
|
includes/class.yith-wcwl-privacy.php
ADDED
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Privacy class; added to let customer export personal data
|
4 |
+
*
|
5 |
+
* @author Your Inspiration Themes
|
6 |
+
* @package YITH WooCommerce Wishlist
|
7 |
+
* @version 2.2.2
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'YITH_WCWL' ) ) {
|
11 |
+
exit;
|
12 |
+
} // Exit if accessed directly
|
13 |
+
|
14 |
+
if( ! class_exists( 'YITH_WCWL_Privacy' ) ) {
|
15 |
+
/**
|
16 |
+
* YITH WCWL Exporter
|
17 |
+
*
|
18 |
+
* @since 2.2.2
|
19 |
+
*/
|
20 |
+
class YITH_WCWL_Privacy extends YITH_Privacy_Plugin_Abstract {
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Constructor method
|
24 |
+
*
|
25 |
+
* @return \YITH_WCWL_Privacy
|
26 |
+
* @since 2.2.2
|
27 |
+
*/
|
28 |
+
public function __construct() {
|
29 |
+
|
30 |
+
parent::__construct( _x( 'YITH WooCommerce Wishlist', 'Privacy Policy Content', 'yith-woocommerce-wishlist' ) );
|
31 |
+
|
32 |
+
// set up wishlist data exporter
|
33 |
+
add_filter( 'wp_privacy_personal_data_exporters', array( $this, 'register_exporter' ) );
|
34 |
+
|
35 |
+
// set up wishlist data eraser
|
36 |
+
add_filter( 'wp_privacy_personal_data_erasers', array( $this, 'register_eraser' ) );
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Retrieves privacy example text for wishlist plugin
|
41 |
+
*
|
42 |
+
* @return string Privacy message
|
43 |
+
* @since 2.2.2
|
44 |
+
*/
|
45 |
+
public function get_privacy_message( $section ) {
|
46 |
+
$content = '';
|
47 |
+
|
48 |
+
switch( $section ){
|
49 |
+
case 'collect_and_store':
|
50 |
+
$content = '<p>' . __( 'While you visit our site, we’ll track:', 'yith-woocommerce-wishlist' ) . '</p>' .
|
51 |
+
'<ul>' .
|
52 |
+
'<li>' . __( 'Products you’ve added to the wishlist: we’ll use this to show you and other users your favourite products, and to create targeted email campaigns.', 'yith-woocommerce-wishlist' ) . '</li>' .
|
53 |
+
'<li>' . __( 'Wishlists you’ve created: we’ll keep track of the wishlists you create, and make them visible to the store’s staff', 'yith-woocommerce-wishlist' ) . '</li>' .
|
54 |
+
'</ul>' .
|
55 |
+
'<p>' . __( 'We’ll also use cookies to keep track of wishlist contents while you’re browsing our site.', 'yith-woocommerce-wishlist' ) . '</p>';
|
56 |
+
break;
|
57 |
+
case 'has_access':
|
58 |
+
$content = '<p>' . __( 'Members of our team have access to the information you provide us. For example, both Administrators and Shop Managers can access:', 'yith-woocommerce-wishlist' ) . '</p>' .
|
59 |
+
'<ul>' .
|
60 |
+
'<li>' . __( 'Wishlist details, such as products added, date of addition, name and privacy settings of your wishlists', 'yith-woocommerce-wishlist' ) . '</li>' .
|
61 |
+
'</ul>' .
|
62 |
+
'<p>' . __( 'Our team members have access to this information to offer you better deals for the products you love.', 'yith-woocommerce-wishlist' ) . '</p>';
|
63 |
+
break;
|
64 |
+
case 'share':
|
65 |
+
case 'payments':
|
66 |
+
default:
|
67 |
+
break;
|
68 |
+
}
|
69 |
+
|
70 |
+
return apply_filters( 'yith_wcwl_privacy_policy_content', $content, $section );
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Register exporters for wishlist plugin
|
75 |
+
*
|
76 |
+
* @param $exporters array Array of currently registered exporters
|
77 |
+
* @return array Array of filtered exporters
|
78 |
+
* @since 2.2.2
|
79 |
+
*/
|
80 |
+
public function register_exporter( $exporters ) {
|
81 |
+
$exporters['yith_wcwl_exporter'] = array(
|
82 |
+
'exporter_friendly_name' => __( 'Customer Wishlists', 'yith-woocommerce-wishlist' ),
|
83 |
+
'callback' => array( $this, 'wishlist_data_exporter' )
|
84 |
+
);
|
85 |
+
|
86 |
+
return $exporters;
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Register eraser for wishlist plugin
|
91 |
+
*
|
92 |
+
* @param $erasers array Array of currently registered erasers
|
93 |
+
* @return array Array of filtered erasers
|
94 |
+
* @since 2.2.2
|
95 |
+
*/
|
96 |
+
public function register_eraser( $erasers ) {
|
97 |
+
$erasers['yith_wcwl_eraser'] = array(
|
98 |
+
'eraser_friendly_name' => __( 'Customer Wishlists', 'yith-woocommerce-wishlist' ),
|
99 |
+
'callback' => array( $this, 'wishlist_data_eraser' )
|
100 |
+
);
|
101 |
+
|
102 |
+
return $erasers;
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Export user wishlists (only available for authenticated users' wishlist)
|
107 |
+
*
|
108 |
+
* @param $email_address string Email of the users that requested export
|
109 |
+
* @param $page int Current page processed
|
110 |
+
* @return array Array of data to export
|
111 |
+
* @since 2.2.2
|
112 |
+
*/
|
113 |
+
public function wishlist_data_exporter( $email_address, $page ) {
|
114 |
+
$done = true;
|
115 |
+
$page = (int) $page;
|
116 |
+
$offset = 10 * ( $page -1 );
|
117 |
+
$user = get_user_by( 'email', $email_address ); // Check if user has an ID in the DB to load stored personal data.
|
118 |
+
$data_to_export = array();
|
119 |
+
|
120 |
+
if ( $user instanceof WP_User ) {
|
121 |
+
$wishlists = YITH_WCWL()->get_wishlists( array(
|
122 |
+
'limit' => 10,
|
123 |
+
'offset' => $offset,
|
124 |
+
'user_id' => $user->ID,
|
125 |
+
'orderby' => 'ID',
|
126 |
+
'order' => 'ASC'
|
127 |
+
) );
|
128 |
+
|
129 |
+
if ( 0 < count( $wishlists ) ) {
|
130 |
+
foreach ( $wishlists as $wishlist ) {
|
131 |
+
$data_to_export[] = array(
|
132 |
+
'group_id' => 'yith_wcwl_wishlist',
|
133 |
+
'group_label' => __( 'Wishlists', 'yith-woocommerce-wishlist' ),
|
134 |
+
'item_id' => 'wishlist-' . $wishlist['ID'],
|
135 |
+
'data' => $this->get_wishlist_personal_data( $wishlist ),
|
136 |
+
);
|
137 |
+
}
|
138 |
+
$done = 10 > count( $wishlists );
|
139 |
+
} else {
|
140 |
+
$done = true;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
return array(
|
145 |
+
'data' => $data_to_export,
|
146 |
+
'done' => $done,
|
147 |
+
);
|
148 |
+
}
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Deletes user wishlists (only available for authenticated users' wishlist)
|
152 |
+
*
|
153 |
+
* @param $email_address string Email of the users that requested export
|
154 |
+
* @param $page int Current page processed
|
155 |
+
* @return array Result of the operation
|
156 |
+
* @since 2.2.2
|
157 |
+
*/
|
158 |
+
public function wishlist_data_eraser( $email_address, $page ) {
|
159 |
+
global $wpdb;
|
160 |
+
|
161 |
+
$page = (int) $page;
|
162 |
+
$offset = 10 * ( $page -1 );
|
163 |
+
$user = get_user_by( 'email', $email_address ); // Check if user has an ID in the DB to load stored personal data.
|
164 |
+
$response = array(
|
165 |
+
'items_removed' => false,
|
166 |
+
'items_retained' => false,
|
167 |
+
'messages' => array(),
|
168 |
+
'done' => true,
|
169 |
+
);
|
170 |
+
|
171 |
+
if ( ! $user instanceof WP_User ) {
|
172 |
+
return $response;
|
173 |
+
}
|
174 |
+
|
175 |
+
if( defined( 'YITH_WCWL_PREMIUM' ) ) {
|
176 |
+
|
177 |
+
$wishlists = YITH_WCWL()->get_wishlists( array(
|
178 |
+
'limit' => 10,
|
179 |
+
'offset' => $offset,
|
180 |
+
'user_id' => $user->ID,
|
181 |
+
'orderby' => 'ID',
|
182 |
+
'order' => 'ASC'
|
183 |
+
) );
|
184 |
+
|
185 |
+
if ( 0 < count( $wishlists ) ) {
|
186 |
+
foreach ( $wishlists as $wishlist ) {
|
187 |
+
if ( apply_filters( 'yith_wcwl_privacy_erase_wishlist_personal_data', true, $wishlist ) ) {
|
188 |
+
do_action( 'yith_wcwl_privacy_before_remove_wishlist_personal_data', $wishlist );
|
189 |
+
|
190 |
+
YITH_WCWL_Premium()->remove_wishlist( $wishlist['ID'] );
|
191 |
+
|
192 |
+
do_action( 'yith_wcwl_privacy_remove_wishlist_personal_data', $wishlist );
|
193 |
+
|
194 |
+
/* Translators: %s Order number. */
|
195 |
+
$response['messages'][] = sprintf( __( 'Removed wishlist %s.', 'yith-woocommerce-wishlist' ), $wishlist['wishlist_token'] );
|
196 |
+
$response['items_removed'] = true;
|
197 |
+
} else {
|
198 |
+
/* Translators: %s Order number. */
|
199 |
+
$response['messages'][] = sprintf( __( 'Wishlist %s has been retained.', 'yith-woocommerce-wishlist' ), $wishlist['wishlist_token'] );
|
200 |
+
$response['items_retained'] = true;
|
201 |
+
}
|
202 |
+
}
|
203 |
+
$response['done'] = 10 > count( $wishlists );
|
204 |
+
} else {
|
205 |
+
$response['done'] = true;
|
206 |
+
}
|
207 |
+
} else {
|
208 |
+
$count = $wpdb->delete( $wpdb->yith_wcwl_items, array( 'user_id' => $user->ID ) );
|
209 |
+
|
210 |
+
$response['messages'][] = __( 'Removed default user\'s wishlist', 'yith-woocommerce-wishlist' );
|
211 |
+
$response['items_removed'] = $count;
|
212 |
+
$response['done'] = true;
|
213 |
+
}
|
214 |
+
|
215 |
+
return $response;
|
216 |
+
}
|
217 |
+
|
218 |
+
/**
|
219 |
+
* Retrieves data to export for each user's wishlist
|
220 |
+
*
|
221 |
+
* @param $wishlist array Wishlist processed
|
222 |
+
* @return array Data to export
|
223 |
+
* @since 2.2.2
|
224 |
+
*/
|
225 |
+
protected function get_wishlist_personal_data( $wishlist ) {
|
226 |
+
$personal_data = array();
|
227 |
+
$props_to_export = apply_filters( 'yith_wcwl_privacy_export_wishlist_personal_data_props', array(
|
228 |
+
'wishlist_token' => __( 'Token', 'yith-woocommerce-wishlist' ),
|
229 |
+
'wishlist_url' => __( 'Wishlist url', 'yith-woocommerce-wishlist' ),
|
230 |
+
'wishlist_name' => __( 'Title', 'yith-woocommerce-wishlist' ),
|
231 |
+
'dateadded' => _x( 'Created on', 'date wishlist was created', 'yith-woocommerce-wishlist' ),
|
232 |
+
'wishlist_privacy' => __( 'Visibility', 'yith-woocommerce-wishlist' ),
|
233 |
+
'items' => __( 'Items Added', 'yith-woocommerce-wishlist' ),
|
234 |
+
), $wishlist );
|
235 |
+
|
236 |
+
foreach ( $props_to_export as $prop => $name ) {
|
237 |
+
$value = '';
|
238 |
+
|
239 |
+
switch ( $prop ) {
|
240 |
+
case 'items':
|
241 |
+
$item_names = array();
|
242 |
+
$items = YITH_WCWL()->get_products( array(
|
243 |
+
'wishlist_id' => $wishlist['ID']
|
244 |
+
) );
|
245 |
+
|
246 |
+
foreach ( $items as $item ) {
|
247 |
+
$product = wc_get_product( $item['prod_id'] );
|
248 |
+
|
249 |
+
if( ! $product ){
|
250 |
+
continue;
|
251 |
+
}
|
252 |
+
|
253 |
+
$item_name = $product->get_name() . ' x ' . $item['quantity'];
|
254 |
+
|
255 |
+
if( $item['dateadded'] ){
|
256 |
+
$item_name .= ' (on: ' . date_i18n( 'd F Y', strtotime( $item['dateadded'] ) ) . ')';
|
257 |
+
}
|
258 |
+
|
259 |
+
$item_names[] = $item_name;
|
260 |
+
}
|
261 |
+
|
262 |
+
$value = implode( ', ', $item_names );
|
263 |
+
break;
|
264 |
+
case 'wishlist_url':
|
265 |
+
$wishlist_url = YITH_WCWL()->get_wishlist_url( 'view/' . $wishlist['wishlist_token'] );
|
266 |
+
|
267 |
+
$value = sprintf( '<a href="%1$s">%1$s</a>', $wishlist_url );
|
268 |
+
break;
|
269 |
+
case 'wishlist_name':
|
270 |
+
$wishlist_name = $wishlist['wishlist_name'];
|
271 |
+
|
272 |
+
$value = $wishlist_name ? $wishlist_name : get_option( 'yith_wcwl_wishlist_title' );
|
273 |
+
break;
|
274 |
+
case 'dateadded':
|
275 |
+
$date = $wishlist['dateadded'];
|
276 |
+
|
277 |
+
$value = date_i18n( 'd F Y', strtotime( $date ) );
|
278 |
+
break;
|
279 |
+
case 'wishlist_privacy':
|
280 |
+
$privacy = $wishlist['wishlist_privacy'];
|
281 |
+
|
282 |
+
if( $privacy == 1 ){
|
283 |
+
$privacy_label = apply_filters( 'yith_wcwl_shared_wishlist_visibility', __( 'Shared', 'yith-woocommerce-wishlist' ) );
|
284 |
+
}
|
285 |
+
elseif( $privacy == 2 ){
|
286 |
+
$privacy_label = apply_filters( 'yith_wcwl_private_wishlist_visibility', __( 'Private', 'yith-woocommerce-wishlist' ) );
|
287 |
+
}
|
288 |
+
else{
|
289 |
+
$privacy_label = apply_filters( 'yith_wcwl_public_wishlist_visibility', __( 'Public', 'yith-woocommerce-wishlist' ) );
|
290 |
+
}
|
291 |
+
|
292 |
+
$value = $privacy_label;
|
293 |
+
break;
|
294 |
+
default:
|
295 |
+
if ( isset( $wishlist[ $prop ] ) ) {
|
296 |
+
$value = $wishlist[ $prop ];
|
297 |
+
}
|
298 |
+
break;
|
299 |
+
}
|
300 |
+
|
301 |
+
$value = apply_filters( 'yith_wcwl_privacy_export_wishlist_personal_data_prop', $value, $prop, $wishlist );
|
302 |
+
|
303 |
+
if ( $value ) {
|
304 |
+
$personal_data[] = array(
|
305 |
+
'name' => $name,
|
306 |
+
'value' => $value,
|
307 |
+
);
|
308 |
+
}
|
309 |
+
}
|
310 |
+
|
311 |
+
$personal_data = apply_filters( 'yith_wcwl_privacy_export_wishlist_personal_data', $personal_data, $wishlist );
|
312 |
+
|
313 |
+
return $personal_data;
|
314 |
+
}
|
315 |
+
}
|
316 |
+
}
|
includes/class.yith-wcwl-ui.php
CHANGED
@@ -1,224 +1,224 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Shortcodes class
|
4 |
-
*
|
5 |
-
* @author Your Inspiration Themes
|
6 |
-
* @package YITH WooCommerce Wishlist
|
7 |
-
* @version 1.1.5
|
8 |
-
*/
|
9 |
-
|
10 |
-
if ( ! defined( 'YITH_WCWL' ) ) {
|
11 |
-
exit;
|
12 |
-
} // Exit if accessed directly
|
13 |
-
|
14 |
-
if( ! class_exists( 'YITH_WCWL_UI' ) ) {
|
15 |
-
|
16 |
-
/**
|
17 |
-
* YITH_WCWL_UI class, with methods used to print user interface
|
18 |
-
*
|
19 |
-
* @since 1.0.0
|
20 |
-
*/
|
21 |
-
class YITH_WCWL_UI {
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Build the popup message HTML/jQuery.
|
25 |
-
*
|
26 |
-
* @return string
|
27 |
-
* @static
|
28 |
-
* @since 1.0.0
|
29 |
-
*/
|
30 |
-
public static function popup_message() {
|
31 |
-
_deprecated_function( 'popup_message', '2.0.0', 'add-to-wishlist-button.php template' );
|
32 |
-
ob_start() ?>
|
33 |
-
|
34 |
-
<script type="text/javascript">
|
35 |
-
if( !jQuery( '#yith-wcwl-popup-message' ).length ) {
|
36 |
-
jQuery( 'body' ).prepend(
|
37 |
-
'<div id="yith-wcwl-popup-message" style="display:none;">' +
|
38 |
-
'<div id="yith-wcwl-message"></div>' +
|
39 |
-
'</div>'
|
40 |
-
);
|
41 |
-
}
|
42 |
-
</script>
|
43 |
-
|
44 |
-
<?php
|
45 |
-
return ob_get_clean();
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Build the "Add to Wishlist" HTML
|
50 |
-
*
|
51 |
-
* @deprecated
|
52 |
-
* @param string $url
|
53 |
-
* @param string $product_type
|
54 |
-
* @param bool $exists
|
55 |
-
* @return string
|
56 |
-
* @static
|
57 |
-
* @since 1.0.0
|
58 |
-
*/
|
59 |
-
public static function add_to_wishlist_button( $url, $product_type, $exists ) {
|
60 |
-
_deprecated_function( 'add_to_wishlist_button', '2.0.0', 'add-to-wishlist-button.php template' );
|
61 |
-
|
62 |
-
global $yith_wcwl, $product;
|
63 |
-
$product_id = yit_get_product_id( $product );
|
64 |
-
|
65 |
-
$label_option = get_option( 'yith_wcwl_add_to_wishlist_text' );
|
66 |
-
$localize_label = function_exists( 'icl_translate' ) ? icl_translate( 'Plugins', 'plugin_yit_wishlist_button', $label_option ) : $label_option;
|
67 |
-
|
68 |
-
$label = apply_filters( 'yith_wcwl_button_label', $localize_label );
|
69 |
-
$icon = get_option( 'yith_wcwl_add_to_wishlist_icon' ) != 'none' ? '<i class="fa ' . get_option( 'yith_wcwl_add_to_wishlist_icon' ) . '"></i>' : '';
|
70 |
-
|
71 |
-
$classes = get_option( 'yith_wcwl_use_button' ) == 'yes' ? 'class="add_to_wishlist single_add_to_wishlist button alt"' : 'class="add_to_wishlist"';
|
72 |
-
|
73 |
-
$html = '<div class="yith-wcwl-add-to-wishlist">';
|
74 |
-
$html .= '<div class="yith-wcwl-add-button'; // the class attribute is closed in the next row
|
75 |
-
|
76 |
-
$html .= $exists ? ' hide" style="display:none;"' : ' show"';
|
77 |
-
|
78 |
-
$html .= '><a href="' . esc_url( add_query_arg( 'add_to_wishlist', $product_id ) ) . '" data-product-id="' . $product_id . '" data-product-type="' . $product_type . '" ' . $classes . ' >' . $icon . $label . '</a>';
|
79 |
-
$html .= '<img src="' . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . '" class="ajax-loading" alt="loading" width="16" height="16" style="visibility:hidden" />';
|
80 |
-
$html .= '</div>';
|
81 |
-
|
82 |
-
$html .= '<div class="yith-wcwl-wishlistaddedbrowse hide" style="display:none;"><span class="feedback">' . __( 'Product added!','yith-woocommerce-wishlist' ) . '</span> <a href="' . esc_url( $url ) . '">' . apply_filters( 'yith-wcwl-browse-wishlist-label', __( 'Browse Wishlist', 'yith-woocommerce-wishlist' ) ) . '</a></div>';
|
83 |
-
$html .= '<div class="yith-wcwl-wishlistexistsbrowse ' . ( $exists ? 'show' : 'hide' ) . '" style="display:' . ( $exists ? 'block' : 'none' ) . '"><span class="feedback">' . __( 'The product is already in the wishlist!', 'yith-woocommerce-wishlist' ) . '</span> <a href="' . esc_url( $url ) . '">' . apply_filters( 'yith-wcwl-browse-wishlist-label', __( 'Browse Wishlist', 'yith-woocommerce-wishlist' ) ) . '</a></div>';
|
84 |
-
$html .= '<div style="clear:both"></div><div class="yith-wcwl-wishlistaddresponse"></div>';
|
85 |
-
|
86 |
-
$html .= '</div>';
|
87 |
-
$html .= '<div class="clear"></div>';
|
88 |
-
|
89 |
-
return $html;
|
90 |
-
}
|
91 |
-
|
92 |
-
/**
|
93 |
-
* Build the "Add to cart" HTML.
|
94 |
-
*
|
95 |
-
* @deprecated
|
96 |
-
* @param string $url
|
97 |
-
* @param string $stock_status
|
98 |
-
* @param string $type
|
99 |
-
* @return string
|
100 |
-
* @static
|
101 |
-
* @since 1.0.0
|
102 |
-
*/
|
103 |
-
public static function add_to_cart_button( $product_id, $stock_status ) {
|
104 |
-
_deprecated_function( 'add_to_cart_button', '2.0.0', 'wc_get_template( "loop/add-to-cart.php" )' );
|
105 |
-
|
106 |
-
global $yith_wcwl, $product;
|
107 |
-
|
108 |
-
if ( function_exists( 'get_product' ) )
|
109 |
-
$product = get_product( $product_id );
|
110 |
-
else
|
111 |
-
$product = new WC_Product( $product_id );
|
112 |
-
|
113 |
-
$url = $product->product_type == 'external' ? $yith_wcwl->get_affiliate_product_url( $product_id ) : $yith_wcwl->get_addtocart_url( $product_id );
|
114 |
-
|
115 |
-
$label_option = get_option( 'yith_wcwl_add_to_cart_text' );
|
116 |
-
$localize_label = function_exists( 'icl_translate' ) ? icl_translate( 'Plugins', 'plugin_yit_wishlist_button', $label_option ) : $label_option;
|
117 |
-
|
118 |
-
$label = $product->product_type == 'variable' ? apply_filters( 'variable_add_to_cart_text', __('Select options', 'yith-woocommerce-wishlist') ) : apply_filters( 'yith_wcwl_add_to_cart_label', $localize_label );
|
119 |
-
$icon = get_option( 'yith_wcwl_use_button' ) == 'yes' && get_option( 'yith_wcwl_add_to_cart_icon' ) != 'none' ? '<i class="fa ' . get_option( 'yith_wcwl_add_to_cart_icon' ) . '"></i>' : '';
|
120 |
-
|
121 |
-
$cartlink = '';
|
122 |
-
$redirect_to_cart = get_option( 'yith_wcwl_redirect_cart' ) == 'yes' && $product->product_type != 'variable' ? 'true' : 'false';
|
123 |
-
$style = ''; //indicates the style (background-color and font color)
|
124 |
-
|
125 |
-
if( get_option( 'yith_wcwl_use_button' ) == 'yes' ) {
|
126 |
-
if( $product->product_type == 'external' ) {
|
127 |
-
$cartlink .= '<a target="_blank" class="add_to_cart button alt" href="' . $url . '"';
|
128 |
-
} else {
|
129 |
-
$cartlink .= '<a class="add_to_cart add_to_cart_from_wishlist button alt" href="' . $url . '" data-stock-status="' . $stock_status . '" data-redirect-to-cart="' . $redirect_to_cart . '"';
|
130 |
-
}
|
131 |
-
|
132 |
-
$cartlink .= $style . '>' . $icon . $label . '</a>';
|
133 |
-
} else {
|
134 |
-
if( $product->product_type == 'external' ) {
|
135 |
-
$cartlink .= '<a target="_blank" class="add_to_cart button alt" href="' . $url . '">' . $icon . $label . '</a>';
|
136 |
-
} else {
|
137 |
-
$cartlink .= '<a class="add_to_cart add_to_cart_from_wishlist button alt" href="' . $url . '" data-stock-status="' . $stock_status . '" data-redirect-to-cart="' . $redirect_to_cart . '">' . $icon . $label . '</a>';
|
138 |
-
}
|
139 |
-
}
|
140 |
-
|
141 |
-
return $cartlink;
|
142 |
-
}
|
143 |
-
|
144 |
-
/**
|
145 |
-
* Build share HTML.
|
146 |
-
*
|
147 |
-
* @deprecated
|
148 |
-
* @param string $url
|
149 |
-
* @return string $string
|
150 |
-
* @static
|
151 |
-
* @since 1.0.0
|
152 |
-
*/
|
153 |
-
public static function get_share_links( $url ) {
|
154 |
-
_deprecated_function( 'get_share_links', '2.0.0', 'share.php template' );
|
155 |
-
|
156 |
-
$normal_url = $url;
|
157 |
-
$url = urlencode( $url );
|
158 |
-
$title = apply_filters( 'plugin_text', urlencode( get_option( 'yith_wcwl_socials_title' ) ) );
|
159 |
-
$twitter_summary = str_replace( '%wishlist_url%', '', get_option( 'yith_wcwl_socials_text' ) );
|
160 |
-
$summary = urlencode( str_replace( '%wishlist_url%', $normal_url, get_option( 'yith_wcwl_socials_text' ) ) );
|
161 |
-
$imageurl = urlencode( get_option( 'yith_wcwl_socials_image_url' ) );
|
162 |
-
|
163 |
-
$html = '<div class="yith-wcwl-share">';
|
164 |
-
$html .= apply_filters( 'yith_wcwl_socials_share_title', '<span>' . __( 'Share on:', 'yith-woocommerce-wishlist' ) . '</span>' );
|
165 |
-
$html .= '<ul>';
|
166 |
-
|
167 |
-
if( get_option( 'yith_wcwl_share_fb' ) == 'yes' )
|
168 |
-
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="facebook" href="https://www.facebook.com/sharer.php?s=100&p[title]=' . $title . '&p[url]=' . $url . '&p[summary]=' . $summary . '&p[images][0]=' . $imageurl . '" title="' . __( 'Facebook', 'yith-woocommerce-wishlist' ) . '"></a></li>'; }
|
169 |
-
|
170 |
-
if( get_option( 'yith_wcwl_share_twitter' ) == 'yes' )
|
171 |
-
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="twitter" href="https://twitter.com/share?url=' . $url . '&text=' . $twitter_summary . '" title="' . __( 'Twitter', 'yith-woocommerce-wishlist' ) . '"></a></li>'; }
|
172 |
-
|
173 |
-
if( get_option( 'yith_wcwl_share_pinterest' ) == 'yes' )
|
174 |
-
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="pinterest" href="http://pinterest.com/pin/create/button/?url=' . $url . '&description=' . $summary . '&media=' . $imageurl . '" onclick="window.open(this.href); return false;"></a></li>'; }
|
175 |
-
|
176 |
-
if( get_option( 'yith_wcwl_share_googleplus' ) == 'yes' )
|
177 |
-
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="googleplus" href="https://plus.google.com/share?url=' . $url . '&title=' . $title . '" title="' . $title . '" onclick=\'javascript:window.open(this.href, "", "menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600");return false;\'></a></li>'; }
|
178 |
-
|
179 |
-
if( get_option( 'yith_wcwl_share_email' ) == 'yes' )
|
180 |
-
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a class="email" href="mailto:?subject=I wanted you to see this site&body= ' . $url . '&title=' . __('email', 'yith-woocommerce-wishlist') . '" title="' . $title . '" ></a></li>'; }
|
181 |
-
|
182 |
-
$html .= '</ul>';
|
183 |
-
$html .= '</div>';
|
184 |
-
|
185 |
-
return $html;
|
186 |
-
}
|
187 |
-
|
188 |
-
/**
|
189 |
-
* Adds classes to add-to-cart button
|
190 |
-
*
|
191 |
-
* @param $button_html string
|
192 |
-
* @param $product \WC_Product
|
193 |
-
* @return string
|
194 |
-
* @static
|
195 |
-
* @since 2.0.0
|
196 |
-
*/
|
197 |
-
public static function alter_add_to_cart_button( $button_html, $product ){
|
198 |
-
// retrieve options
|
199 |
-
$label_option = get_option( 'yith_wcwl_add_to_cart_text' );
|
200 |
-
$label = $product->is_type( 'variable' ) ? apply_filters( 'variable_add_to_cart_text', __('Select options', 'yith-woocommerce-wishlist') ) : apply_filters( 'yith_wcwl_add_to_cart_label', $label_option );
|
201 |
-
$icon = '';
|
202 |
-
|
203 |
-
if( get_option( 'yith_wcwl_frontend_css' ) != 'yes' && get_option( 'yith_wcwl_use_button' ) == 'yes' && get_option( 'yith_wcwl_add_to_cart_icon' ) != 'none' ) {
|
204 |
-
$icon = '<i class="fa ' . get_option( 'yith_wcwl_add_to_cart_icon' ) . '"></i>';
|
205 |
-
}
|
206 |
-
|
207 |
-
// customize
|
208 |
-
$match = array();
|
209 |
-
preg_match( '/<a.*class="([^"]*).*>.*<\/a>/', $button_html, $match );
|
210 |
-
|
211 |
-
if( ! empty( $match ) && isset( $match[1] ) ){
|
212 |
-
$button_html = str_replace( $match[1], $match[1] . ' add_to_cart button alt', $button_html );
|
213 |
-
}
|
214 |
-
|
215 |
-
preg_match( '/<a
|
216 |
-
|
217 |
-
if( ! empty( $match ) && isset( $match[1] ) ){
|
218 |
-
$button_html = str_replace( $match[1], $icon . ' ' . $label, $button_html );
|
219 |
-
}
|
220 |
-
|
221 |
-
return $button_html;
|
222 |
-
}
|
223 |
-
}
|
224 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Shortcodes class
|
4 |
+
*
|
5 |
+
* @author Your Inspiration Themes
|
6 |
+
* @package YITH WooCommerce Wishlist
|
7 |
+
* @version 1.1.5
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'YITH_WCWL' ) ) {
|
11 |
+
exit;
|
12 |
+
} // Exit if accessed directly
|
13 |
+
|
14 |
+
if( ! class_exists( 'YITH_WCWL_UI' ) ) {
|
15 |
+
|
16 |
+
/**
|
17 |
+
* YITH_WCWL_UI class, with methods used to print user interface
|
18 |
+
*
|
19 |
+
* @since 1.0.0
|
20 |
+
*/
|
21 |
+
class YITH_WCWL_UI {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Build the popup message HTML/jQuery.
|
25 |
+
*
|
26 |
+
* @return string
|
27 |
+
* @static
|
28 |
+
* @since 1.0.0
|
29 |
+
*/
|
30 |
+
public static function popup_message() {
|
31 |
+
_deprecated_function( 'popup_message', '2.0.0', 'add-to-wishlist-button.php template' );
|
32 |
+
ob_start() ?>
|
33 |
+
|
34 |
+
<script type="text/javascript">
|
35 |
+
if( !jQuery( '#yith-wcwl-popup-message' ).length ) {
|
36 |
+
jQuery( 'body' ).prepend(
|
37 |
+
'<div id="yith-wcwl-popup-message" style="display:none;">' +
|
38 |
+
'<div id="yith-wcwl-message"></div>' +
|
39 |
+
'</div>'
|
40 |
+
);
|
41 |
+
}
|
42 |
+
</script>
|
43 |
+
|
44 |
+
<?php
|
45 |
+
return ob_get_clean();
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Build the "Add to Wishlist" HTML
|
50 |
+
*
|
51 |
+
* @deprecated
|
52 |
+
* @param string $url
|
53 |
+
* @param string $product_type
|
54 |
+
* @param bool $exists
|
55 |
+
* @return string
|
56 |
+
* @static
|
57 |
+
* @since 1.0.0
|
58 |
+
*/
|
59 |
+
public static function add_to_wishlist_button( $url, $product_type, $exists ) {
|
60 |
+
_deprecated_function( 'add_to_wishlist_button', '2.0.0', 'add-to-wishlist-button.php template' );
|
61 |
+
|
62 |
+
global $yith_wcwl, $product;
|
63 |
+
$product_id = yit_get_product_id( $product );
|
64 |
+
|
65 |
+
$label_option = get_option( 'yith_wcwl_add_to_wishlist_text' );
|
66 |
+
$localize_label = function_exists( 'icl_translate' ) ? icl_translate( 'Plugins', 'plugin_yit_wishlist_button', $label_option ) : $label_option;
|
67 |
+
|
68 |
+
$label = apply_filters( 'yith_wcwl_button_label', $localize_label );
|
69 |
+
$icon = get_option( 'yith_wcwl_add_to_wishlist_icon' ) != 'none' ? '<i class="fa ' . get_option( 'yith_wcwl_add_to_wishlist_icon' ) . '"></i>' : '';
|
70 |
+
|
71 |
+
$classes = get_option( 'yith_wcwl_use_button' ) == 'yes' ? 'class="add_to_wishlist single_add_to_wishlist button alt"' : 'class="add_to_wishlist"';
|
72 |
+
|
73 |
+
$html = '<div class="yith-wcwl-add-to-wishlist">';
|
74 |
+
$html .= '<div class="yith-wcwl-add-button'; // the class attribute is closed in the next row
|
75 |
+
|
76 |
+
$html .= $exists ? ' hide" style="display:none;"' : ' show"';
|
77 |
+
|
78 |
+
$html .= '><a href="' . esc_url( add_query_arg( 'add_to_wishlist', $product_id ) ) . '" data-product-id="' . $product_id . '" data-product-type="' . $product_type . '" ' . $classes . ' >' . $icon . $label . '</a>';
|
79 |
+
$html .= '<img src="' . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . '" class="ajax-loading" alt="loading" width="16" height="16" style="visibility:hidden" />';
|
80 |
+
$html .= '</div>';
|
81 |
+
|
82 |
+
$html .= '<div class="yith-wcwl-wishlistaddedbrowse hide" style="display:none;"><span class="feedback">' . __( 'Product added!','yith-woocommerce-wishlist' ) . '</span> <a href="' . esc_url( $url ) . '">' . apply_filters( 'yith-wcwl-browse-wishlist-label', __( 'Browse Wishlist', 'yith-woocommerce-wishlist' ) ) . '</a></div>';
|
83 |
+
$html .= '<div class="yith-wcwl-wishlistexistsbrowse ' . ( $exists ? 'show' : 'hide' ) . '" style="display:' . ( $exists ? 'block' : 'none' ) . '"><span class="feedback">' . __( 'The product is already in the wishlist!', 'yith-woocommerce-wishlist' ) . '</span> <a href="' . esc_url( $url ) . '">' . apply_filters( 'yith-wcwl-browse-wishlist-label', __( 'Browse Wishlist', 'yith-woocommerce-wishlist' ) ) . '</a></div>';
|
84 |
+
$html .= '<div style="clear:both"></div><div class="yith-wcwl-wishlistaddresponse"></div>';
|
85 |
+
|
86 |
+
$html .= '</div>';
|
87 |
+
$html .= '<div class="clear"></div>';
|
88 |
+
|
89 |
+
return $html;
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Build the "Add to cart" HTML.
|
94 |
+
*
|
95 |
+
* @deprecated
|
96 |
+
* @param string $url
|
97 |
+
* @param string $stock_status
|
98 |
+
* @param string $type
|
99 |
+
* @return string
|
100 |
+
* @static
|
101 |
+
* @since 1.0.0
|
102 |
+
*/
|
103 |
+
public static function add_to_cart_button( $product_id, $stock_status ) {
|
104 |
+
_deprecated_function( 'add_to_cart_button', '2.0.0', 'wc_get_template( "loop/add-to-cart.php" )' );
|
105 |
+
|
106 |
+
global $yith_wcwl, $product;
|
107 |
+
|
108 |
+
if ( function_exists( 'get_product' ) )
|
109 |
+
$product = get_product( $product_id );
|
110 |
+
else
|
111 |
+
$product = new WC_Product( $product_id );
|
112 |
+
|
113 |
+
$url = $product->product_type == 'external' ? $yith_wcwl->get_affiliate_product_url( $product_id ) : $yith_wcwl->get_addtocart_url( $product_id );
|
114 |
+
|
115 |
+
$label_option = get_option( 'yith_wcwl_add_to_cart_text' );
|
116 |
+
$localize_label = function_exists( 'icl_translate' ) ? icl_translate( 'Plugins', 'plugin_yit_wishlist_button', $label_option ) : $label_option;
|
117 |
+
|
118 |
+
$label = $product->product_type == 'variable' ? apply_filters( 'variable_add_to_cart_text', __('Select options', 'yith-woocommerce-wishlist') ) : apply_filters( 'yith_wcwl_add_to_cart_label', $localize_label );
|
119 |
+
$icon = get_option( 'yith_wcwl_use_button' ) == 'yes' && get_option( 'yith_wcwl_add_to_cart_icon' ) != 'none' ? '<i class="fa ' . get_option( 'yith_wcwl_add_to_cart_icon' ) . '"></i>' : '';
|
120 |
+
|
121 |
+
$cartlink = '';
|
122 |
+
$redirect_to_cart = get_option( 'yith_wcwl_redirect_cart' ) == 'yes' && $product->product_type != 'variable' ? 'true' : 'false';
|
123 |
+
$style = ''; //indicates the style (background-color and font color)
|
124 |
+
|
125 |
+
if( get_option( 'yith_wcwl_use_button' ) == 'yes' ) {
|
126 |
+
if( $product->product_type == 'external' ) {
|
127 |
+
$cartlink .= '<a target="_blank" class="add_to_cart button alt" href="' . $url . '"';
|
128 |
+
} else {
|
129 |
+
$cartlink .= '<a class="add_to_cart add_to_cart_from_wishlist button alt" href="' . $url . '" data-stock-status="' . $stock_status . '" data-redirect-to-cart="' . $redirect_to_cart . '"';
|
130 |
+
}
|
131 |
+
|
132 |
+
$cartlink .= $style . '>' . $icon . $label . '</a>';
|
133 |
+
} else {
|
134 |
+
if( $product->product_type == 'external' ) {
|
135 |
+
$cartlink .= '<a target="_blank" class="add_to_cart button alt" href="' . $url . '">' . $icon . $label . '</a>';
|
136 |
+
} else {
|
137 |
+
$cartlink .= '<a class="add_to_cart add_to_cart_from_wishlist button alt" href="' . $url . '" data-stock-status="' . $stock_status . '" data-redirect-to-cart="' . $redirect_to_cart . '">' . $icon . $label . '</a>';
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
return $cartlink;
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Build share HTML.
|
146 |
+
*
|
147 |
+
* @deprecated
|
148 |
+
* @param string $url
|
149 |
+
* @return string $string
|
150 |
+
* @static
|
151 |
+
* @since 1.0.0
|
152 |
+
*/
|
153 |
+
public static function get_share_links( $url ) {
|
154 |
+
_deprecated_function( 'get_share_links', '2.0.0', 'share.php template' );
|
155 |
+
|
156 |
+
$normal_url = $url;
|
157 |
+
$url = urlencode( $url );
|
158 |
+
$title = apply_filters( 'plugin_text', urlencode( get_option( 'yith_wcwl_socials_title' ) ) );
|
159 |
+
$twitter_summary = str_replace( '%wishlist_url%', '', get_option( 'yith_wcwl_socials_text' ) );
|
160 |
+
$summary = urlencode( str_replace( '%wishlist_url%', $normal_url, get_option( 'yith_wcwl_socials_text' ) ) );
|
161 |
+
$imageurl = urlencode( get_option( 'yith_wcwl_socials_image_url' ) );
|
162 |
+
|
163 |
+
$html = '<div class="yith-wcwl-share">';
|
164 |
+
$html .= apply_filters( 'yith_wcwl_socials_share_title', '<span>' . __( 'Share on:', 'yith-woocommerce-wishlist' ) . '</span>' );
|
165 |
+
$html .= '<ul>';
|
166 |
+
|
167 |
+
if( get_option( 'yith_wcwl_share_fb' ) == 'yes' )
|
168 |
+
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="facebook" href="https://www.facebook.com/sharer.php?s=100&p[title]=' . $title . '&p[url]=' . $url . '&p[summary]=' . $summary . '&p[images][0]=' . $imageurl . '" title="' . __( 'Facebook', 'yith-woocommerce-wishlist' ) . '"></a></li>'; }
|
169 |
+
|
170 |
+
if( get_option( 'yith_wcwl_share_twitter' ) == 'yes' )
|
171 |
+
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="twitter" href="https://twitter.com/share?url=' . $url . '&text=' . $twitter_summary . '" title="' . __( 'Twitter', 'yith-woocommerce-wishlist' ) . '"></a></li>'; }
|
172 |
+
|
173 |
+
if( get_option( 'yith_wcwl_share_pinterest' ) == 'yes' )
|
174 |
+
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="pinterest" href="http://pinterest.com/pin/create/button/?url=' . $url . '&description=' . $summary . '&media=' . $imageurl . '" onclick="window.open(this.href); return false;"></a></li>'; }
|
175 |
+
|
176 |
+
if( get_option( 'yith_wcwl_share_googleplus' ) == 'yes' )
|
177 |
+
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="googleplus" href="https://plus.google.com/share?url=' . $url . '&title=' . $title . '" title="' . $title . '" onclick=\'javascript:window.open(this.href, "", "menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600");return false;\'></a></li>'; }
|
178 |
+
|
179 |
+
if( get_option( 'yith_wcwl_share_email' ) == 'yes' )
|
180 |
+
{ $html .= '<li style="list-style-type: none; display: inline-block;"><a class="email" href="mailto:?subject=I wanted you to see this site&body= ' . $url . '&title=' . __('email', 'yith-woocommerce-wishlist') . '" title="' . $title . '" ></a></li>'; }
|
181 |
+
|
182 |
+
$html .= '</ul>';
|
183 |
+
$html .= '</div>';
|
184 |
+
|
185 |
+
return $html;
|
186 |
+
}
|
187 |
+
|
188 |
+
/**
|
189 |
+
* Adds classes to add-to-cart button
|
190 |
+
*
|
191 |
+
* @param $button_html string
|
192 |
+
* @param $product \WC_Product
|
193 |
+
* @return string
|
194 |
+
* @static
|
195 |
+
* @since 2.0.0
|
196 |
+
*/
|
197 |
+
public static function alter_add_to_cart_button( $button_html, $product ){
|
198 |
+
// retrieve options
|
199 |
+
$label_option = get_option( 'yith_wcwl_add_to_cart_text' );
|
200 |
+
$label = $product->is_type( 'variable' ) ? apply_filters( 'variable_add_to_cart_text', __('Select options', 'yith-woocommerce-wishlist') ) : apply_filters( 'yith_wcwl_add_to_cart_label', $label_option );
|
201 |
+
$icon = '';
|
202 |
+
|
203 |
+
if( get_option( 'yith_wcwl_frontend_css' ) != 'yes' && get_option( 'yith_wcwl_use_button' ) == 'yes' && get_option( 'yith_wcwl_add_to_cart_icon' ) != 'none' ) {
|
204 |
+
$icon = '<i class="fa ' . get_option( 'yith_wcwl_add_to_cart_icon' ) . '"></i>';
|
205 |
+
}
|
206 |
+
|
207 |
+
// customize
|
208 |
+
$match = array();
|
209 |
+
preg_match( '/<a.*class="([^"]*).*>.*<\/a>/', $button_html, $match );
|
210 |
+
|
211 |
+
if( ! empty( $match ) && isset( $match[1] ) ){
|
212 |
+
$button_html = str_replace( $match[1], $match[1] . ' add_to_cart button alt', $button_html );
|
213 |
+
}
|
214 |
+
|
215 |
+
preg_match( '/<a.*?>(.*)<\/a>/', $button_html, $match );
|
216 |
+
|
217 |
+
if( ! empty( $match ) && isset( $match[1] ) ){
|
218 |
+
$button_html = str_replace( '>' . $match[1] . '<', '>' . $icon . ' ' . $label . '<', $button_html );
|
219 |
+
}
|
220 |
+
|
221 |
+
return $button_html;
|
222 |
+
}
|
223 |
+
}
|
224 |
}
|
includes/class.yith-wcwl.php
CHANGED
@@ -92,6 +92,7 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
|
|
92 |
|
93 |
// load plugin-fw
|
94 |
add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 15 );
|
|
|
95 |
|
96 |
// add rewrite rule
|
97 |
add_action( 'init', array( $this, 'add_rewrite_rules' ), 0 );
|
@@ -144,6 +145,21 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
|
|
144 |
}
|
145 |
}
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
/* === ITEMS METHODS === */
|
148 |
|
149 |
/**
|
@@ -451,7 +467,7 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
|
|
451 |
if( ! empty( $user_id ) || ! empty( $wishlist_token ) || ! empty( $wishlist_id ) ) {
|
452 |
$hidden_products = yith_wcwl_get_hidden_products();
|
453 |
|
454 |
-
$sql = "SELECT
|
455 |
FROM `{$wpdb->yith_wcwl_items}` AS i
|
456 |
LEFT JOIN {$wpdb->yith_wcwl_wishlists} AS l ON l.`ID` = i.`wishlist_id`
|
457 |
INNER JOIN {$wpdb->posts} AS p ON p.ID = i.prod_id
|
@@ -1158,7 +1174,7 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
|
|
1158 |
return;
|
1159 |
}
|
1160 |
|
1161 |
-
if( defined( 'POLYLANG_VERSION' ) ){
|
1162 |
return;
|
1163 |
}
|
1164 |
|
92 |
|
93 |
// load plugin-fw
|
94 |
add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 15 );
|
95 |
+
add_action( 'plugins_loaded', array( $this, 'privacy_loader' ), 20 );
|
96 |
|
97 |
// add rewrite rule
|
98 |
add_action( 'init', array( $this, 'add_rewrite_rules' ), 0 );
|
145 |
}
|
146 |
}
|
147 |
|
148 |
+
/* === PRIVACY LOADER === */
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Loads privacy class
|
152 |
+
*
|
153 |
+
* @return void
|
154 |
+
* @since 2.0.0
|
155 |
+
*/
|
156 |
+
public function privacy_loader() {
|
157 |
+
if( class_exists( 'YITH_Privacy_Plugin_Abstract' ) ) {
|
158 |
+
require_once( YITH_WCWL_INC . 'class.yith-wcwl-privacy.php' );
|
159 |
+
new YITH_WCWL_Privacy();
|
160 |
+
}
|
161 |
+
}
|
162 |
+
|
163 |
/* === ITEMS METHODS === */
|
164 |
|
165 |
/**
|
467 |
if( ! empty( $user_id ) || ! empty( $wishlist_token ) || ! empty( $wishlist_id ) ) {
|
468 |
$hidden_products = yith_wcwl_get_hidden_products();
|
469 |
|
470 |
+
$sql = "SELECT *, i.dateadded AS dateadded
|
471 |
FROM `{$wpdb->yith_wcwl_items}` AS i
|
472 |
LEFT JOIN {$wpdb->yith_wcwl_wishlists} AS l ON l.`ID` = i.`wishlist_id`
|
473 |
INNER JOIN {$wpdb->posts} AS p ON p.ID = i.prod_id
|
1174 |
return;
|
1175 |
}
|
1176 |
|
1177 |
+
if( defined( 'POLYLANG_VERSION' ) || defined( 'ICL_PLUGIN_PATH' ) ){
|
1178 |
return;
|
1179 |
}
|
1180 |
|
init.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
|
6 |
-
* Version: 2.2.
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 2.5.0
|
12 |
-
* WC tested up to: 3.
|
13 |
*
|
14 |
* @author YITHEMES
|
15 |
* @package YITH WooCommerce Wishlist
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
|
6 |
+
* Version: 2.2.2
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 2.5.0
|
12 |
+
* WC tested up to: 3.4.0
|
13 |
*
|
14 |
* @author YITHEMES
|
15 |
* @package YITH WooCommerce Wishlist
|
languages/yith-woocommerce-wishlist.pot
CHANGED
@@ -1,905 +1,905 @@
|
|
1 |
-
#, fuzzy
|
2 |
-
msgid ""
|
3 |
-
msgstr ""
|
4 |
-
"Project-Id-Version: YITH WooCommerce Wishlist\n"
|
5 |
-
"POT-Creation-Date: 2017-10-24 17:31+0200\n"
|
6 |
-
"PO-Revision-Date: 2015-04-30 17:08+0100\n"
|
7 |
-
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
|
8 |
-
"Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
|
9 |
-
"Language: en\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 1.8.7.1\n"
|
14 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;__ngettext:1,2;"
|
15 |
-
"__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;"
|
16 |
-
"_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
19 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
20 |
-
"X-Poedit-SearchPath-0: ..\n"
|
21 |
-
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
22 |
-
|
23 |
-
#: ../includes/class.yith-wcwl-admin-init.php:159
|
24 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1483
|
25 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1484
|
26 |
-
#: ../includes/class.yith-wcwl-install.php:244
|
27 |
-
msgid "Wishlist"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: ../includes/class.yith-wcwl-admin-init.php:161
|
31 |
-
#: ../includes/class.yith-wcwl-admin-init.php:251
|
32 |
-
msgid "Settings"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: ../includes/class.yith-wcwl-admin-init.php:162
|
36 |
-
#: ../includes/class.yith-wcwl-admin-init.php:236
|
37 |
-
msgid "Colors"
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: ../includes/class.yith-wcwl-admin-init.php:163
|
41 |
-
#: ../includes/class.yith-wcwl-admin-init.php:255
|
42 |
-
msgid "Premium Version"
|
43 |
-
msgstr ""
|
44 |
-
|
45 |
-
#: ../includes/class.yith-wcwl-admin-init.php:256
|
46 |
-
msgid "Live Demo"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: ../includes/class.yith-wcwl-admin-init.php:280
|
50 |
-
msgid ""
|
51 |
-
"WARNING: This plugin requires at least WooCommerce 2.2! Please, use this "
|
52 |
-
"link to update it."
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: ../includes/class.yith-wcwl-admin-init.php:283
|
56 |
-
msgid "WARNING: This plugin requires at least WooCommerce 2.2!"
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: ../includes/class.yith-wcwl-admin-init.php:288
|
60 |
-
msgid "Plugin Documentation"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1023
|
64 |
-
msgid "Upgrade to the PREMIUM VERSION"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1026
|
68 |
-
msgid "YITH WooCommerce Wishlist"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1027
|
72 |
-
msgid "Discover the Advanced Features"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1028
|
76 |
-
msgid ""
|
77 |
-
"Upgrade to the PREMIUM VERSION of YITH WOOCOMMERCE WISHLIST to benefit from "
|
78 |
-
"all features!"
|
79 |
-
msgstr ""
|
80 |
-
|
81 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1034
|
82 |
-
msgid "Get Support and Pro Features"
|
83 |
-
msgstr ""
|
84 |
-
|
85 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1035
|
86 |
-
msgid ""
|
87 |
-
"By purchasing the premium version of the plugin, you will take advantage of "
|
88 |
-
"the advanced features of the product and you will get one year of free "
|
89 |
-
"updates and support through our platform available 24h/24."
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1045
|
93 |
-
msgid "General Settings"
|
94 |
-
msgstr ""
|
95 |
-
|
96 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1052
|
97 |
-
msgid "Enable YITH Wishlist"
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1053
|
101 |
-
#, php-format
|
102 |
-
msgid ""
|
103 |
-
"Enable all plugin features. <strong>Be sure to select at least one option in "
|
104 |
-
"the Wishlist page menu in this settings page.</strong> Also, please read the "
|
105 |
-
"plugin <a href=\"%s\" target=\"_blank\">documentation</a>."
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1059
|
109 |
-
msgid "Default wishlist title"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1061
|
113 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1062
|
114 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1298
|
115 |
-
#, php-format
|
116 |
-
msgid "My wishlist on %s"
|
117 |
-
msgstr ""
|
118 |
-
|
119 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1067
|
120 |
-
msgid "Wishlist Page"
|
121 |
-
msgstr ""
|
122 |
-
|
123 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1068
|
124 |
-
msgid "Page contents: [yith_wcwl_wishlist]"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1077
|
128 |
-
msgid "Position"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1078
|
132 |
-
msgid ""
|
133 |
-
"You can add the button in variable products only after the \"Add to Cart\" "
|
134 |
-
"button or using the shortcode [yith_wcwl_add_to_wishlist]."
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1084
|
138 |
-
msgid "After \"Add to cart\""
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1085
|
142 |
-
msgid "After thumbnails"
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1086
|
146 |
-
msgid "After summary"
|
147 |
-
msgstr ""
|
148 |
-
|
149 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1087
|
150 |
-
msgid "Use shortcode"
|
151 |
-
msgstr ""
|
152 |
-
|
153 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1092
|
154 |
-
msgid "Redirect to cart"
|
155 |
-
msgstr ""
|
156 |
-
|
157 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1093
|
158 |
-
msgid ""
|
159 |
-
"Redirect to cart page if \"Add to cart\" button is clicked in the wishlist "
|
160 |
-
"page."
|
161 |
-
msgstr ""
|
162 |
-
|
163 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1099
|
164 |
-
msgid "Remove if added to the cart"
|
165 |
-
msgstr ""
|
166 |
-
|
167 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1100
|
168 |
-
msgid "Remove the product from the wishlist if it has been added to the cart."
|
169 |
-
msgstr ""
|
170 |
-
|
171 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1106
|
172 |
-
msgid "\"Add to Wishlist\" text"
|
173 |
-
msgstr ""
|
174 |
-
|
175 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1108
|
176 |
-
msgid "Add to Wishlist"
|
177 |
-
msgstr ""
|
178 |
-
|
179 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1113
|
180 |
-
msgid "\"Browse wishlist\" text"
|
181 |
-
msgstr ""
|
182 |
-
|
183 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1115
|
184 |
-
#: ../includes/class.yith-wcwl-ui.php:82 ../includes/class.yith-wcwl-ui.php:83
|
185 |
-
msgid "Browse Wishlist"
|
186 |
-
msgstr ""
|
187 |
-
|
188 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1120
|
189 |
-
msgid "\"Product already in wishlist\" text"
|
190 |
-
msgstr ""
|
191 |
-
|
192 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1122
|
193 |
-
#: ../includes/class.yith-wcwl-ui.php:83
|
194 |
-
msgid "The product is already in the wishlist!"
|
195 |
-
msgstr ""
|
196 |
-
|
197 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1127
|
198 |
-
msgid "\"Product added\" text"
|
199 |
-
msgstr ""
|
200 |
-
|
201 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1129
|
202 |
-
#: ../includes/class.yith-wcwl-ui.php:82
|
203 |
-
msgid "Product added!"
|
204 |
-
msgstr ""
|
205 |
-
|
206 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1134
|
207 |
-
msgid "\"Add to Cart\" text"
|
208 |
-
msgstr ""
|
209 |
-
|
210 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1136
|
211 |
-
msgid "Add to Cart"
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1141
|
215 |
-
msgid "Show Unit price"
|
216 |
-
msgstr ""
|
217 |
-
|
218 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1142
|
219 |
-
msgid "Show unit price for each product in wishlist"
|
220 |
-
msgstr ""
|
221 |
-
|
222 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1149
|
223 |
-
msgid "Show \"Add to Cart\" button"
|
224 |
-
msgstr ""
|
225 |
-
|
226 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1150
|
227 |
-
msgid "Show \"Add to Cart\" button for each product in wishlist"
|
228 |
-
msgstr ""
|
229 |
-
|
230 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1157
|
231 |
-
msgid "Show Stock status"
|
232 |
-
msgstr ""
|
233 |
-
|
234 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1158
|
235 |
-
msgid ""
|
236 |
-
"Show \"In stock\" or \"Out of stock\" label for each product in wishlist"
|
237 |
-
msgstr ""
|
238 |
-
|
239 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1165
|
240 |
-
msgid "Show Date of addition"
|
241 |
-
msgstr ""
|
242 |
-
|
243 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1166
|
244 |
-
msgid "Show the date when users have added a product to the wishlist"
|
245 |
-
msgstr ""
|
246 |
-
|
247 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1173
|
248 |
-
msgid "Add second remove button"
|
249 |
-
msgstr ""
|
250 |
-
|
251 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1174
|
252 |
-
msgid "Add a second remove button in the last column, with extended label"
|
253 |
-
msgstr ""
|
254 |
-
|
255 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1189
|
256 |
-
msgid "Styles"
|
257 |
-
msgstr ""
|
258 |
-
|
259 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1196
|
260 |
-
msgid "Use buttons"
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1197
|
264 |
-
msgid "Use buttons instead of simple anchors."
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1203
|
268 |
-
msgid "Custom CSS"
|
269 |
-
msgstr ""
|
270 |
-
|
271 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1210
|
272 |
-
msgid "Use theme style"
|
273 |
-
msgstr ""
|
274 |
-
|
275 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1211
|
276 |
-
msgid "Use the theme style."
|
277 |
-
msgstr ""
|
278 |
-
|
279 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1217
|
280 |
-
msgid "Rounded buttons"
|
281 |
-
msgstr ""
|
282 |
-
|
283 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1218
|
284 |
-
msgid "Make button corners rounded"
|
285 |
-
msgstr ""
|
286 |
-
|
287 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1224
|
288 |
-
msgid "\"Add to Wishlist\" icon"
|
289 |
-
msgstr ""
|
290 |
-
|
291 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1225
|
292 |
-
msgid "Add an icon to the \"Add to Wishlist\" button"
|
293 |
-
msgstr ""
|
294 |
-
|
295 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1235
|
296 |
-
msgid "\"Add to Cart\" icon"
|
297 |
-
msgstr ""
|
298 |
-
|
299 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1236
|
300 |
-
msgid "Add an icon to the \"Add to Cart\" button"
|
301 |
-
msgstr ""
|
302 |
-
|
303 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1254
|
304 |
-
msgid "Social Networks & Share"
|
305 |
-
msgstr ""
|
306 |
-
|
307 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1261
|
308 |
-
msgid "Share on Facebook"
|
309 |
-
msgstr ""
|
310 |
-
|
311 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1262
|
312 |
-
msgid "Show \"Share on Facebook\" button"
|
313 |
-
msgstr ""
|
314 |
-
|
315 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1268
|
316 |
-
msgid "Tweet on Twitter"
|
317 |
-
msgstr ""
|
318 |
-
|
319 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1269
|
320 |
-
msgid "Show \"Tweet on Twitter\" button"
|
321 |
-
msgstr ""
|
322 |
-
|
323 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1275
|
324 |
-
msgid "Pin on Pinterest"
|
325 |
-
msgstr ""
|
326 |
-
|
327 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1276
|
328 |
-
msgid "Show \"Pin on Pinterest\" button"
|
329 |
-
msgstr ""
|
330 |
-
|
331 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1282
|
332 |
-
msgid "Share on Google+"
|
333 |
-
msgstr ""
|
334 |
-
|
335 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1283
|
336 |
-
msgid "Show \"Share on Google+\" button"
|
337 |
-
msgstr ""
|
338 |
-
|
339 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1289
|
340 |
-
msgid "Share by Email"
|
341 |
-
msgstr ""
|
342 |
-
|
343 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1290
|
344 |
-
msgid "Show \"Share by Email\" button"
|
345 |
-
msgstr ""
|
346 |
-
|
347 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1296
|
348 |
-
msgid "Social title"
|
349 |
-
msgstr ""
|
350 |
-
|
351 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1303
|
352 |
-
msgid "Social text"
|
353 |
-
msgstr ""
|
354 |
-
|
355 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1304
|
356 |
-
msgid ""
|
357 |
-
"It will be used by Twitter and Pinterest. Use <strong>%wishlist_url%</"
|
358 |
-
"strong> where you want to show the URL of your wishlist."
|
359 |
-
msgstr ""
|
360 |
-
|
361 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1311
|
362 |
-
msgid "Social image URL"
|
363 |
-
msgstr ""
|
364 |
-
|
365 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1312
|
366 |
-
msgid "It will be used by Pinterest."
|
367 |
-
msgstr ""
|
368 |
-
|
369 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1326
|
370 |
-
#, php-format
|
371 |
-
msgid ""
|
372 |
-
"If you want to take advantage of this feature, you could consider to "
|
373 |
-
"purchase the %s."
|
374 |
-
msgstr ""
|
375 |
-
|
376 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1331
|
377 |
-
msgid "YITH WooCommerce Frequently Bought Together Integration"
|
378 |
-
msgstr ""
|
379 |
-
|
380 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1338
|
381 |
-
msgid "Enable slider in wishlist"
|
382 |
-
msgstr ""
|
383 |
-
|
384 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1339
|
385 |
-
#, php-format
|
386 |
-
msgid ""
|
387 |
-
"Choose to enable product slider in wishlist page with linked products (<a "
|
388 |
-
"href=\"%s\" class=\"thickbox\">Example</a>). %s"
|
389 |
-
msgstr ""
|
390 |
-
|
391 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1375
|
392 |
-
msgid "\"Add to wishlist\" button"
|
393 |
-
msgstr ""
|
394 |
-
|
395 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1378
|
396 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1396
|
397 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1414
|
398 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1432
|
399 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1450
|
400 |
-
msgid "Background"
|
401 |
-
msgstr ""
|
402 |
-
|
403 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1379
|
404 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1397
|
405 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1415
|
406 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1433
|
407 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1451
|
408 |
-
msgid "Text"
|
409 |
-
msgstr ""
|
410 |
-
|
411 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1380
|
412 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1398
|
413 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1416
|
414 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1434
|
415 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1452
|
416 |
-
msgid "Border"
|
417 |
-
msgstr ""
|
418 |
-
|
419 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1387
|
420 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1405
|
421 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1423
|
422 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1441
|
423 |
-
msgid "Background (hover)"
|
424 |
-
msgstr ""
|
425 |
-
|
426 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1388
|
427 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1406
|
428 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1424
|
429 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1442
|
430 |
-
msgid "Text (hover)"
|
431 |
-
msgstr ""
|
432 |
-
|
433 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1389
|
434 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1407
|
435 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1425
|
436 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1443
|
437 |
-
msgid "Border (hover)"
|
438 |
-
msgstr ""
|
439 |
-
|
440 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1393
|
441 |
-
msgid "\"Add to Cart\" button"
|
442 |
-
msgstr ""
|
443 |
-
|
444 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1411
|
445 |
-
msgid "\"Style 1\" button"
|
446 |
-
msgstr ""
|
447 |
-
|
448 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1429
|
449 |
-
msgid "\"Style 2\" button"
|
450 |
-
msgstr ""
|
451 |
-
|
452 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1447
|
453 |
-
msgid "Wishlist table"
|
454 |
-
msgstr ""
|
455 |
-
|
456 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1456
|
457 |
-
msgid "Headers"
|
458 |
-
msgstr ""
|
459 |
-
|
460 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1459
|
461 |
-
msgid "Background color"
|
462 |
-
msgstr ""
|
463 |
-
|
464 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1549
|
465 |
-
msgid "Wishlist Activated"
|
466 |
-
msgstr ""
|
467 |
-
|
468 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1550
|
469 |
-
#, php-format
|
470 |
-
msgid ""
|
471 |
-
"In the YIT Plugin tab you can find the Wishlist options. With this menu, you "
|
472 |
-
"can access to all the settings of our plugins that you have activated. "
|
473 |
-
"Wishlist is available in an outstanding PREMIUM version with many new "
|
474 |
-
"options, <a href=\"%s\">discover it now</a>."
|
475 |
-
msgstr ""
|
476 |
-
|
477 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1561
|
478 |
-
msgid "Wishlist Updated"
|
479 |
-
msgstr ""
|
480 |
-
|
481 |
-
#: ../includes/class.yith-wcwl-admin-init.php:1562
|
482 |
-
#, php-format
|
483 |
-
msgid ""
|
484 |
-
"From now on, you can find all the options of Wishlist under YIT Plugin -> "
|
485 |
-
"Wishlist instead of WooCommerce -> Settings -> Wishlist, as in the previous "
|
486 |
-
"version. When one of our plugins is updated, a new voice will be added to "
|
487 |
-
"this menu. Wishlist has been updated with new available options, <a href=\"%s"
|
488 |
-
"\">discover the PREMIUM version.</a>"
|
489 |
-
msgstr ""
|
490 |
-
|
491 |
-
#: ../includes/class.yith-wcwl-init.php:374
|
492 |
-
msgid ""
|
493 |
-
"We are sorry, but this feature is available only if cookies are enabled on "
|
494 |
-
"your browser."
|
495 |
-
msgstr ""
|
496 |
-
|
497 |
-
#: ../includes/class.yith-wcwl-init.php:375
|
498 |
-
msgid "Product correctly added to cart"
|
499 |
-
msgstr ""
|
500 |
-
|
501 |
-
#: ../includes/class.yith-wcwl-install.php:243
|
502 |
-
msgctxt "page_slug"
|
503 |
-
msgid "wishlist"
|
504 |
-
msgstr ""
|
505 |
-
|
506 |
-
#: ../includes/class.yith-wcwl-shortcode.php:259
|
507 |
-
#: ../includes/class.yith-wcwl-ui.php:164
|
508 |
-
msgid "Share on:"
|
509 |
-
msgstr ""
|
510 |
-
|
511 |
-
#: ../includes/class.yith-wcwl-ui.php:118
|
512 |
-
#: ../includes/class.yith-wcwl-ui.php:200
|
513 |
-
msgid "Select options"
|
514 |
-
msgstr ""
|
515 |
-
|
516 |
-
#: ../includes/class.yith-wcwl-ui.php:168 ../templates/share.php:20
|
517 |
-
msgid "Facebook"
|
518 |
-
msgstr ""
|
519 |
-
|
520 |
-
#: ../includes/class.yith-wcwl-ui.php:171 ../templates/share.php:26
|
521 |
-
msgid "Twitter"
|
522 |
-
msgstr ""
|
523 |
-
|
524 |
-
#: ../includes/class.yith-wcwl-ui.php:180
|
525 |
-
msgid "email"
|
526 |
-
msgstr ""
|
527 |
-
|
528 |
-
#: ../includes/class.yith-wcwl.php:177
|
529 |
-
msgid "An error occurred while adding products to the wishlist."
|
530 |
-
msgstr ""
|
531 |
-
|
532 |
-
#: ../includes/class.yith-wcwl.php:269
|
533 |
-
msgid "An error occurred while adding products to wishlist."
|
534 |
-
msgstr ""
|
535 |
-
|
536 |
-
#: ../includes/class.yith-wcwl.php:286
|
537 |
-
msgid "The \"Remove\" option now does not require any parameter"
|
538 |
-
msgstr ""
|
539 |
-
|
540 |
-
#: ../includes/class.yith-wcwl.php:335
|
541 |
-
msgid "An error occurred while removing products from the wishlist"
|
542 |
-
msgstr ""
|
543 |
-
|
544 |
-
#: ../includes/class.yith-wcwl.php:783
|
545 |
-
msgid "You need to log in before creating a new wishlist"
|
546 |
-
msgstr ""
|
547 |
-
|
548 |
-
#: ../includes/class.yith-wcwl.php:1578
|
549 |
-
msgid "Product successfully removed."
|
550 |
-
msgstr ""
|
551 |
-
|
552 |
-
#: ../includes/class.yith-wcwl.php:1582
|
553 |
-
msgid "Error. Unable to remove the product from the wishlist."
|
554 |
-
msgstr ""
|
555 |
-
|
556 |
-
#: ../includes/class.yith-wcwl.php:1586 ../templates/wishlist-view.php:241
|
557 |
-
msgid "No products were added to the wishlist"
|
558 |
-
msgstr ""
|
559 |
-
|
560 |
-
#: ../includes/class.yith-wcwl.php:1628
|
561 |
-
msgid "An error as occurred."
|
562 |
-
msgstr ""
|
563 |
-
|
564 |
-
#: ../init.php:130
|
565 |
-
msgid ""
|
566 |
-
"YITH WooCommerce Wishlist is enabled but not effective. It requires "
|
567 |
-
"WooCommerce in order to work."
|
568 |
-
msgstr ""
|
569 |
-
|
570 |
-
#: ../init.php:140
|
571 |
-
msgid ""
|
572 |
-
"You can't activate the free version of YITH WooCommerce Wishlist while you "
|
573 |
-
"are using the premium one."
|
574 |
-
msgstr ""
|
575 |
-
|
576 |
-
#: ../templates/admin/wishlist-panel-premium.php:185
|
577 |
-
#: ../templates/admin/wishlist-panel-premium.php:383
|
578 |
-
#, php-format
|
579 |
-
msgid ""
|
580 |
-
"Upgrade to the %1$spremium version%2$s%3$sof %1$sYITH WooCommerce Wishlist"
|
581 |
-
"%2$s to benefit from all features!"
|
582 |
-
msgstr ""
|
583 |
-
|
584 |
-
#: ../templates/admin/wishlist-panel-premium.php:187
|
585 |
-
#: ../templates/admin/wishlist-panel-premium.php:385
|
586 |
-
#, php-format
|
587 |
-
msgid "%1$sUPGRADE%2$s%3$s to the premium version%2$s"
|
588 |
-
msgstr ""
|
589 |
-
|
590 |
-
#: ../templates/admin/wishlist-panel-premium.php:193
|
591 |
-
msgid "Premium Features"
|
592 |
-
msgstr ""
|
593 |
-
|
594 |
-
#: ../templates/admin/wishlist-panel-premium.php:196
|
595 |
-
#: ../templates/admin/wishlist-panel-premium.php:201
|
596 |
-
msgid "Multiple Wishlist"
|
597 |
-
msgstr ""
|
598 |
-
|
599 |
-
#: ../templates/admin/wishlist-panel-premium.php:203
|
600 |
-
#, php-format
|
601 |
-
msgid ""
|
602 |
-
"%1$sDoes it ever happened to you to have too many wishes for a single wish "
|
603 |
-
"list?%2$s%3$s The possibility to manage one's wishes is a fundamental "
|
604 |
-
"feature in a modern e-commerce store and it also lets users' degree of "
|
605 |
-
"satisfaction increase.%3$sThe option \"multiple wishlist\" of %1$sYITH "
|
606 |
-
"Wishlist%2$s makes this feature and many others on your online store "
|
607 |
-
"available, and thanks to this plugin your customers will be able to create, "
|
608 |
-
"manage and share their own wish lists."
|
609 |
-
msgstr ""
|
610 |
-
|
611 |
-
#: ../templates/admin/wishlist-panel-premium.php:212
|
612 |
-
#: ../templates/admin/wishlist-panel-premium.php:222
|
613 |
-
msgid "Wishlist Private"
|
614 |
-
msgstr ""
|
615 |
-
|
616 |
-
#: ../templates/admin/wishlist-panel-premium.php:214
|
617 |
-
#, php-format
|
618 |
-
msgid ""
|
619 |
-
"By enabling the option wishlist, users will also have the possibility to "
|
620 |
-
"%1$smanage the visibility%2$s of their wish lists according to one of the "
|
621 |
-
"following options:"
|
622 |
-
msgstr ""
|
623 |
-
|
624 |
-
#: ../templates/admin/wishlist-panel-premium.php:216
|
625 |
-
#, php-format
|
626 |
-
msgid "%1$spublic:%2$s all users can look for your wish list and see it;"
|
627 |
-
msgstr ""
|
628 |
-
|
629 |
-
#: ../templates/admin/wishlist-panel-premium.php:217
|
630 |
-
#, php-format
|
631 |
-
msgid ""
|
632 |
-
"%1$sshared:%2$s only users possessing a direct link to the wish list page "
|
633 |
-
"can display it;"
|
634 |
-
msgstr ""
|
635 |
-
|
636 |
-
#: ../templates/admin/wishlist-panel-premium.php:218
|
637 |
-
#, php-format
|
638 |
-
msgid "%1$sprivate:%2$s only the wish list creator can see it."
|
639 |
-
msgstr ""
|
640 |
-
|
641 |
-
#: ../templates/admin/wishlist-panel-premium.php:229
|
642 |
-
#: ../templates/admin/wishlist-panel-premium.php:234
|
643 |
-
msgid "Estimate Cost"
|
644 |
-
msgstr ""
|
645 |
-
|
646 |
-
#: ../templates/admin/wishlist-panel-premium.php:236
|
647 |
-
#, php-format
|
648 |
-
msgid ""
|
649 |
-
"%1$sDo you want to add the possibility to ask for estimates of costs into "
|
650 |
-
"your catalogue?%3$s Do you want to manage customised packets for faithful "
|
651 |
-
"customers in your store?%2$s%3$sThanks to the feature \"estimate cost\" of "
|
652 |
-
"%1$sYITH WooCommerce Wishlist%2$s, each registered user will be able to ask "
|
653 |
-
"for an estimate of their own products in the wishlist and add a text in the "
|
654 |
-
"popup window that will open just after clicking. Then, they can confirm the "
|
655 |
-
"text and send an email with all necessary information directly to the "
|
656 |
-
"address that you have previously set."
|
657 |
-
msgstr ""
|
658 |
-
|
659 |
-
#: ../templates/admin/wishlist-panel-premium.php:245
|
660 |
-
#: ../templates/admin/wishlist-panel-premium.php:250
|
661 |
-
msgid "Admin Panel"
|
662 |
-
msgstr ""
|
663 |
-
|
664 |
-
#: ../templates/admin/wishlist-panel-premium.php:247
|
665 |
-
#, php-format
|
666 |
-
msgid ""
|
667 |
-
"Thanks to the useful Admin panel, accessible directly among the WooCommerce "
|
668 |
-
"submenu pages, you will have total control on users' wishlists. In addition "
|
669 |
-
"to that, evaluating the degree of appreciation for your products has never "
|
670 |
-
"been so easy, now that %1$syou can see a useful report,%2$s available "
|
671 |
-
"directly in the product page, which registers the occurrences of the product "
|
672 |
-
"in customers' wish lists."
|
673 |
-
msgstr ""
|
674 |
-
|
675 |
-
#: ../templates/admin/wishlist-panel-premium.php:257
|
676 |
-
#: ../templates/admin/wishlist-panel-premium.php:262
|
677 |
-
msgid "Search Wishlists"
|
678 |
-
msgstr ""
|
679 |
-
|
680 |
-
#: ../templates/admin/wishlist-panel-premium.php:264
|
681 |
-
#, php-format
|
682 |
-
msgid ""
|
683 |
-
"How many times have you been looking for the perfect gift for a important "
|
684 |
-
"event but you had no idea of what to buy? %1$s'Search wishlists'%2$s allows "
|
685 |
-
"your e-shop users to access public wishlists of anyone, by simply knowing "
|
686 |
-
"their name or email. This way you can grant %1$shigher visibility%2$s to "
|
687 |
-
"your products and even encourage users to purchase."
|
688 |
-
msgstr ""
|
689 |
-
|
690 |
-
#: ../templates/admin/wishlist-panel-premium.php:273
|
691 |
-
msgid "'ADD TO CART' CHECKBOX"
|
692 |
-
msgstr ""
|
693 |
-
|
694 |
-
#: ../templates/admin/wishlist-panel-premium.php:275
|
695 |
-
#, php-format
|
696 |
-
msgid ""
|
697 |
-
"Your shop offers always a wide selection of products and wishlists of your "
|
698 |
-
"users get more and more crowded everyday. Give them the possibility to "
|
699 |
-
"select %1$ssome or all products%2$s in the wishlist and add them to cart "
|
700 |
-
"just with one click."
|
701 |
-
msgstr ""
|
702 |
-
|
703 |
-
#: ../templates/admin/wishlist-panel-premium.php:278
|
704 |
-
msgid "'ADD TO CART'"
|
705 |
-
msgstr ""
|
706 |
-
|
707 |
-
#: ../templates/admin/wishlist-panel-premium.php:285
|
708 |
-
msgid "DISABLE WISHLIST"
|
709 |
-
msgstr ""
|
710 |
-
|
711 |
-
#: ../templates/admin/wishlist-panel-premium.php:290
|
712 |
-
msgid "DISABLE WISHLIST FOR UNLOGGED USERS"
|
713 |
-
msgstr ""
|
714 |
-
|
715 |
-
#: ../templates/admin/wishlist-panel-premium.php:292
|
716 |
-
#, php-format
|
717 |
-
msgid ""
|
718 |
-
"Favour users that have registered to your shop and disable plugin "
|
719 |
-
"functionalities for all users that have not. By disabling this option, each "
|
720 |
-
"time they try to add a product to the wishlist, they will be %1$sredirected"
|
721 |
-
"%2$s to \"My Account\" page and a message will invite them to log in."
|
722 |
-
msgstr ""
|
723 |
-
|
724 |
-
#: ../templates/admin/wishlist-panel-premium.php:301
|
725 |
-
msgid "MESSAGE TO UNLOGGED USERS"
|
726 |
-
msgstr ""
|
727 |
-
|
728 |
-
#: ../templates/admin/wishlist-panel-premium.php:303
|
729 |
-
#, php-format
|
730 |
-
msgid ""
|
731 |
-
"Invite users that are visiting your shop to login if they want to fully "
|
732 |
-
"benefit from Wishlist functionalities. Show a %1$scustomised message%2$s and "
|
733 |
-
"redirect them to \"My Account\" page for registration."
|
734 |
-
msgstr ""
|
735 |
-
|
736 |
-
#: ../templates/admin/wishlist-panel-premium.php:306
|
737 |
-
msgid "UNLOGGED USERS"
|
738 |
-
msgstr ""
|
739 |
-
|
740 |
-
#: ../templates/admin/wishlist-panel-premium.php:313
|
741 |
-
#: ../templates/admin/wishlist-panel-premium.php:318
|
742 |
-
msgid "POPULAR TABLE"
|
743 |
-
msgstr ""
|
744 |
-
|
745 |
-
#: ../templates/admin/wishlist-panel-premium.php:320
|
746 |
-
#, php-format
|
747 |
-
msgid ""
|
748 |
-
"Some products draw customer's attention more than others and they do not "
|
749 |
-
"hesitate to add products to their wishlist. Table %1$s'Popular'%2$s allows "
|
750 |
-
"you, as shop administrator, to track products that appear most frequently in "
|
751 |
-
"their wishlists."
|
752 |
-
msgstr ""
|
753 |
-
|
754 |
-
#: ../templates/admin/wishlist-panel-premium.php:329
|
755 |
-
msgid "FUNCTIONALITIES IN ONE CLICK"
|
756 |
-
msgstr ""
|
757 |
-
|
758 |
-
#: ../templates/admin/wishlist-panel-premium.php:331
|
759 |
-
#, php-format
|
760 |
-
msgid ""
|
761 |
-
"Users have the possibility to search for a wishlist, create a new one or "
|
762 |
-
"display those already created. Add these %1$sfunctionalities%2$s through the "
|
763 |
-
"dedicated widgets or show them immediately after \"Wishlist\" table."
|
764 |
-
msgstr ""
|
765 |
-
|
766 |
-
#: ../templates/admin/wishlist-panel-premium.php:334
|
767 |
-
msgid "FUNCTIONALITIES"
|
768 |
-
msgstr ""
|
769 |
-
|
770 |
-
#: ../templates/admin/wishlist-panel-premium.php:341
|
771 |
-
#: ../templates/admin/wishlist-panel-premium.php:346
|
772 |
-
msgid "PROMOTIONAL EMAIL"
|
773 |
-
msgstr ""
|
774 |
-
|
775 |
-
#: ../templates/admin/wishlist-panel-premium.php:348
|
776 |
-
#, php-format
|
777 |
-
msgid ""
|
778 |
-
"If you want to give the right input to your users to persuade them to "
|
779 |
-
"%1$spurchase the products%2$s they have in their wishlists, you need to use "
|
780 |
-
"this feature! %1$sSend them an email%2$s: customize its whole content from "
|
781 |
-
"the option panel and add a coupon they can use in your shop, so that they "
|
782 |
-
"will know you are offering a unique offer!"
|
783 |
-
msgstr ""
|
784 |
-
|
785 |
-
#: ../templates/admin/wishlist-panel-premium.php:357
|
786 |
-
msgid "FROM A WISHLIST TO ANOTHER"
|
787 |
-
msgstr ""
|
788 |
-
|
789 |
-
#: ../templates/admin/wishlist-panel-premium.php:359
|
790 |
-
#, php-format
|
791 |
-
msgid ""
|
792 |
-
"Who said that a product has to remain forever in the same wishlist? With the "
|
793 |
-
"option %1$s\"Show \"Move to another wishlist\" dropdown menu\"%2$s, with "
|
794 |
-
"just one click users will be free to move a product from a wishlist to "
|
795 |
-
"another one, managing as they want their lists."
|
796 |
-
msgstr ""
|
797 |
-
|
798 |
-
#: ../templates/admin/wishlist-panel-premium.php:362
|
799 |
-
msgid "FROM A WISHLIST"
|
800 |
-
msgstr ""
|
801 |
-
|
802 |
-
#: ../templates/admin/wishlist-panel-premium.php:369
|
803 |
-
msgid "DATE"
|
804 |
-
msgstr ""
|
805 |
-
|
806 |
-
#: ../templates/admin/wishlist-panel-premium.php:374
|
807 |
-
msgid "DATE OF ADDITION TO A WISHLIST"
|
808 |
-
msgstr ""
|
809 |
-
|
810 |
-
#: ../templates/admin/wishlist-panel-premium.php:376
|
811 |
-
#, php-format
|
812 |
-
msgid ""
|
813 |
-
"Activating the %1$s\"Show date of addition\"%2$s option, users can see the "
|
814 |
-
"date in which they have added a particular product to their list: a new way "
|
815 |
-
"to keep you users informed about their operations."
|
816 |
-
msgstr ""
|
817 |
-
|
818 |
-
#: ../templates/share.php:32
|
819 |
-
msgid "Pinterest"
|
820 |
-
msgstr ""
|
821 |
-
|
822 |
-
#: ../templates/share.php:38
|
823 |
-
msgid "Google+"
|
824 |
-
msgstr ""
|
825 |
-
|
826 |
-
#: ../templates/share.php:44
|
827 |
-
msgid "Email"
|
828 |
-
msgstr ""
|
829 |
-
|
830 |
-
#: ../templates/wishlist-view.php:32
|
831 |
-
msgid "Edit title"
|
832 |
-
msgstr ""
|
833 |
-
|
834 |
-
#: ../templates/wishlist-view.php:41
|
835 |
-
msgid "Save"
|
836 |
-
msgstr ""
|
837 |
-
|
838 |
-
#: ../templates/wishlist-view.php:45
|
839 |
-
msgid "Cancel"
|
840 |
-
msgstr ""
|
841 |
-
|
842 |
-
#: ../templates/wishlist-view.php:82
|
843 |
-
msgid "Product Name"
|
844 |
-
msgstr ""
|
845 |
-
|
846 |
-
#: ../templates/wishlist-view.php:89
|
847 |
-
msgid "Unit Price"
|
848 |
-
msgstr ""
|
849 |
-
|
850 |
-
#: ../templates/wishlist-view.php:102
|
851 |
-
msgid "Stock Status"
|
852 |
-
msgstr ""
|
853 |
-
|
854 |
-
#: ../templates/wishlist-view.php:152 ../templates/wishlist-view.php:231
|
855 |
-
msgid "Remove this product"
|
856 |
-
msgstr ""
|
857 |
-
|
858 |
-
#: ../templates/wishlist-view.php:172
|
859 |
-
msgid "Free!"
|
860 |
-
msgstr ""
|
861 |
-
|
862 |
-
#: ../templates/wishlist-view.php:178
|
863 |
-
msgid "Out of Stock"
|
864 |
-
msgstr ""
|
865 |
-
|
866 |
-
#: ../templates/wishlist-view.php:178
|
867 |
-
msgid "In Stock"
|
868 |
-
msgstr ""
|
869 |
-
|
870 |
-
#: ../templates/wishlist-view.php:187
|
871 |
-
#, php-format
|
872 |
-
msgid "Added on : %s"
|
873 |
-
msgstr ""
|
874 |
-
|
875 |
-
#: ../templates/wishlist-view.php:199
|
876 |
-
msgid "Move"
|
877 |
-
msgstr ""
|
878 |
-
|
879 |
-
#: ../templates/wishlist-view.php:211
|
880 |
-
msgid "Shared"
|
881 |
-
msgstr ""
|
882 |
-
|
883 |
-
#: ../templates/wishlist-view.php:214
|
884 |
-
msgid "Private"
|
885 |
-
msgstr ""
|
886 |
-
|
887 |
-
#: ../templates/wishlist-view.php:217
|
888 |
-
msgid "Public"
|
889 |
-
msgstr ""
|
890 |
-
|
891 |
-
#: ../templates/wishlist-view.php:231
|
892 |
-
msgid "Remove"
|
893 |
-
msgstr ""
|
894 |
-
|
895 |
-
#: ../templates/wishlist-view.php:258
|
896 |
-
msgid "Add the selected products to the cart"
|
897 |
-
msgstr ""
|
898 |
-
|
899 |
-
#: ../templates/wishlist-view.php:266 ../templates/wishlist-view.php:312
|
900 |
-
msgid "Ask for an estimate"
|
901 |
-
msgstr ""
|
902 |
-
|
903 |
-
#: ../templates/wishlist-view.php:302
|
904 |
-
msgid "Your email"
|
905 |
-
msgstr ""
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: YITH WooCommerce Wishlist\n"
|
5 |
+
"POT-Creation-Date: 2017-10-24 17:31+0200\n"
|
6 |
+
"PO-Revision-Date: 2015-04-30 17:08+0100\n"
|
7 |
+
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
|
8 |
+
"Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
|
9 |
+
"Language: en\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 1.8.7.1\n"
|
14 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;__ngettext:1,2;"
|
15 |
+
"__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;"
|
16 |
+
"_nx_noop:4c,1,2\n"
|
17 |
+
"X-Poedit-Basepath: .\n"
|
18 |
+
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
19 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
20 |
+
"X-Poedit-SearchPath-0: ..\n"
|
21 |
+
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
22 |
+
|
23 |
+
#: ../includes/class.yith-wcwl-admin-init.php:159
|
24 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1483
|
25 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1484
|
26 |
+
#: ../includes/class.yith-wcwl-install.php:244
|
27 |
+
msgid "Wishlist"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: ../includes/class.yith-wcwl-admin-init.php:161
|
31 |
+
#: ../includes/class.yith-wcwl-admin-init.php:251
|
32 |
+
msgid "Settings"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: ../includes/class.yith-wcwl-admin-init.php:162
|
36 |
+
#: ../includes/class.yith-wcwl-admin-init.php:236
|
37 |
+
msgid "Colors"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: ../includes/class.yith-wcwl-admin-init.php:163
|
41 |
+
#: ../includes/class.yith-wcwl-admin-init.php:255
|
42 |
+
msgid "Premium Version"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: ../includes/class.yith-wcwl-admin-init.php:256
|
46 |
+
msgid "Live Demo"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: ../includes/class.yith-wcwl-admin-init.php:280
|
50 |
+
msgid ""
|
51 |
+
"WARNING: This plugin requires at least WooCommerce 2.2! Please, use this "
|
52 |
+
"link to update it."
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: ../includes/class.yith-wcwl-admin-init.php:283
|
56 |
+
msgid "WARNING: This plugin requires at least WooCommerce 2.2!"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: ../includes/class.yith-wcwl-admin-init.php:288
|
60 |
+
msgid "Plugin Documentation"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1023
|
64 |
+
msgid "Upgrade to the PREMIUM VERSION"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1026
|
68 |
+
msgid "YITH WooCommerce Wishlist"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1027
|
72 |
+
msgid "Discover the Advanced Features"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1028
|
76 |
+
msgid ""
|
77 |
+
"Upgrade to the PREMIUM VERSION of YITH WOOCOMMERCE WISHLIST to benefit from "
|
78 |
+
"all features!"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1034
|
82 |
+
msgid "Get Support and Pro Features"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1035
|
86 |
+
msgid ""
|
87 |
+
"By purchasing the premium version of the plugin, you will take advantage of "
|
88 |
+
"the advanced features of the product and you will get one year of free "
|
89 |
+
"updates and support through our platform available 24h/24."
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1045
|
93 |
+
msgid "General Settings"
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1052
|
97 |
+
msgid "Enable YITH Wishlist"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1053
|
101 |
+
#, php-format
|
102 |
+
msgid ""
|
103 |
+
"Enable all plugin features. <strong>Be sure to select at least one option in "
|
104 |
+
"the Wishlist page menu in this settings page.</strong> Also, please read the "
|
105 |
+
"plugin <a href=\"%s\" target=\"_blank\">documentation</a>."
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1059
|
109 |
+
msgid "Default wishlist title"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1061
|
113 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1062
|
114 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1298
|
115 |
+
#, php-format
|
116 |
+
msgid "My wishlist on %s"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1067
|
120 |
+
msgid "Wishlist Page"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1068
|
124 |
+
msgid "Page contents: [yith_wcwl_wishlist]"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1077
|
128 |
+
msgid "Position"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1078
|
132 |
+
msgid ""
|
133 |
+
"You can add the button in variable products only after the \"Add to Cart\" "
|
134 |
+
"button or using the shortcode [yith_wcwl_add_to_wishlist]."
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1084
|
138 |
+
msgid "After \"Add to cart\""
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1085
|
142 |
+
msgid "After thumbnails"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1086
|
146 |
+
msgid "After summary"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1087
|
150 |
+
msgid "Use shortcode"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1092
|
154 |
+
msgid "Redirect to cart"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1093
|
158 |
+
msgid ""
|
159 |
+
"Redirect to cart page if \"Add to cart\" button is clicked in the wishlist "
|
160 |
+
"page."
|
161 |
+
msgstr ""
|
162 |
+
|
163 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1099
|
164 |
+
msgid "Remove if added to the cart"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1100
|
168 |
+
msgid "Remove the product from the wishlist if it has been added to the cart."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1106
|
172 |
+
msgid "\"Add to Wishlist\" text"
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1108
|
176 |
+
msgid "Add to Wishlist"
|
177 |
+
msgstr ""
|
178 |
+
|
179 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1113
|
180 |
+
msgid "\"Browse wishlist\" text"
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1115
|
184 |
+
#: ../includes/class.yith-wcwl-ui.php:82 ../includes/class.yith-wcwl-ui.php:83
|
185 |
+
msgid "Browse Wishlist"
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1120
|
189 |
+
msgid "\"Product already in wishlist\" text"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1122
|
193 |
+
#: ../includes/class.yith-wcwl-ui.php:83
|
194 |
+
msgid "The product is already in the wishlist!"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1127
|
198 |
+
msgid "\"Product added\" text"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1129
|
202 |
+
#: ../includes/class.yith-wcwl-ui.php:82
|
203 |
+
msgid "Product added!"
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1134
|
207 |
+
msgid "\"Add to Cart\" text"
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1136
|
211 |
+
msgid "Add to Cart"
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1141
|
215 |
+
msgid "Show Unit price"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1142
|
219 |
+
msgid "Show unit price for each product in wishlist"
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1149
|
223 |
+
msgid "Show \"Add to Cart\" button"
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1150
|
227 |
+
msgid "Show \"Add to Cart\" button for each product in wishlist"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1157
|
231 |
+
msgid "Show Stock status"
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1158
|
235 |
+
msgid ""
|
236 |
+
"Show \"In stock\" or \"Out of stock\" label for each product in wishlist"
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1165
|
240 |
+
msgid "Show Date of addition"
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1166
|
244 |
+
msgid "Show the date when users have added a product to the wishlist"
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1173
|
248 |
+
msgid "Add second remove button"
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1174
|
252 |
+
msgid "Add a second remove button in the last column, with extended label"
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1189
|
256 |
+
msgid "Styles"
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1196
|
260 |
+
msgid "Use buttons"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1197
|
264 |
+
msgid "Use buttons instead of simple anchors."
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1203
|
268 |
+
msgid "Custom CSS"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1210
|
272 |
+
msgid "Use theme style"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1211
|
276 |
+
msgid "Use the theme style."
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1217
|
280 |
+
msgid "Rounded buttons"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1218
|
284 |
+
msgid "Make button corners rounded"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1224
|
288 |
+
msgid "\"Add to Wishlist\" icon"
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1225
|
292 |
+
msgid "Add an icon to the \"Add to Wishlist\" button"
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1235
|
296 |
+
msgid "\"Add to Cart\" icon"
|
297 |
+
msgstr ""
|
298 |
+
|
299 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1236
|
300 |
+
msgid "Add an icon to the \"Add to Cart\" button"
|
301 |
+
msgstr ""
|
302 |
+
|
303 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1254
|
304 |
+
msgid "Social Networks & Share"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1261
|
308 |
+
msgid "Share on Facebook"
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1262
|
312 |
+
msgid "Show \"Share on Facebook\" button"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1268
|
316 |
+
msgid "Tweet on Twitter"
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1269
|
320 |
+
msgid "Show \"Tweet on Twitter\" button"
|
321 |
+
msgstr ""
|
322 |
+
|
323 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1275
|
324 |
+
msgid "Pin on Pinterest"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1276
|
328 |
+
msgid "Show \"Pin on Pinterest\" button"
|
329 |
+
msgstr ""
|
330 |
+
|
331 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1282
|
332 |
+
msgid "Share on Google+"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1283
|
336 |
+
msgid "Show \"Share on Google+\" button"
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1289
|
340 |
+
msgid "Share by Email"
|
341 |
+
msgstr ""
|
342 |
+
|
343 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1290
|
344 |
+
msgid "Show \"Share by Email\" button"
|
345 |
+
msgstr ""
|
346 |
+
|
347 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1296
|
348 |
+
msgid "Social title"
|
349 |
+
msgstr ""
|
350 |
+
|
351 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1303
|
352 |
+
msgid "Social text"
|
353 |
+
msgstr ""
|
354 |
+
|
355 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1304
|
356 |
+
msgid ""
|
357 |
+
"It will be used by Twitter and Pinterest. Use <strong>%wishlist_url%</"
|
358 |
+
"strong> where you want to show the URL of your wishlist."
|
359 |
+
msgstr ""
|
360 |
+
|
361 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1311
|
362 |
+
msgid "Social image URL"
|
363 |
+
msgstr ""
|
364 |
+
|
365 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1312
|
366 |
+
msgid "It will be used by Pinterest."
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1326
|
370 |
+
#, php-format
|
371 |
+
msgid ""
|
372 |
+
"If you want to take advantage of this feature, you could consider to "
|
373 |
+
"purchase the %s."
|
374 |
+
msgstr ""
|
375 |
+
|
376 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1331
|
377 |
+
msgid "YITH WooCommerce Frequently Bought Together Integration"
|
378 |
+
msgstr ""
|
379 |
+
|
380 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1338
|
381 |
+
msgid "Enable slider in wishlist"
|
382 |
+
msgstr ""
|
383 |
+
|
384 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1339
|
385 |
+
#, php-format
|
386 |
+
msgid ""
|
387 |
+
"Choose to enable product slider in wishlist page with linked products (<a "
|
388 |
+
"href=\"%s\" class=\"thickbox\">Example</a>). %s"
|
389 |
+
msgstr ""
|
390 |
+
|
391 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1375
|
392 |
+
msgid "\"Add to wishlist\" button"
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1378
|
396 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1396
|
397 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1414
|
398 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1432
|
399 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1450
|
400 |
+
msgid "Background"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1379
|
404 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1397
|
405 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1415
|
406 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1433
|
407 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1451
|
408 |
+
msgid "Text"
|
409 |
+
msgstr ""
|
410 |
+
|
411 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1380
|
412 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1398
|
413 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1416
|
414 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1434
|
415 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1452
|
416 |
+
msgid "Border"
|
417 |
+
msgstr ""
|
418 |
+
|
419 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1387
|
420 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1405
|
421 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1423
|
422 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1441
|
423 |
+
msgid "Background (hover)"
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1388
|
427 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1406
|
428 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1424
|
429 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1442
|
430 |
+
msgid "Text (hover)"
|
431 |
+
msgstr ""
|
432 |
+
|
433 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1389
|
434 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1407
|
435 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1425
|
436 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1443
|
437 |
+
msgid "Border (hover)"
|
438 |
+
msgstr ""
|
439 |
+
|
440 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1393
|
441 |
+
msgid "\"Add to Cart\" button"
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1411
|
445 |
+
msgid "\"Style 1\" button"
|
446 |
+
msgstr ""
|
447 |
+
|
448 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1429
|
449 |
+
msgid "\"Style 2\" button"
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1447
|
453 |
+
msgid "Wishlist table"
|
454 |
+
msgstr ""
|
455 |
+
|
456 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1456
|
457 |
+
msgid "Headers"
|
458 |
+
msgstr ""
|
459 |
+
|
460 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1459
|
461 |
+
msgid "Background color"
|
462 |
+
msgstr ""
|
463 |
+
|
464 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1549
|
465 |
+
msgid "Wishlist Activated"
|
466 |
+
msgstr ""
|
467 |
+
|
468 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1550
|
469 |
+
#, php-format
|
470 |
+
msgid ""
|
471 |
+
"In the YIT Plugin tab you can find the Wishlist options. With this menu, you "
|
472 |
+
"can access to all the settings of our plugins that you have activated. "
|
473 |
+
"Wishlist is available in an outstanding PREMIUM version with many new "
|
474 |
+
"options, <a href=\"%s\">discover it now</a>."
|
475 |
+
msgstr ""
|
476 |
+
|
477 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1561
|
478 |
+
msgid "Wishlist Updated"
|
479 |
+
msgstr ""
|
480 |
+
|
481 |
+
#: ../includes/class.yith-wcwl-admin-init.php:1562
|
482 |
+
#, php-format
|
483 |
+
msgid ""
|
484 |
+
"From now on, you can find all the options of Wishlist under YIT Plugin -> "
|
485 |
+
"Wishlist instead of WooCommerce -> Settings -> Wishlist, as in the previous "
|
486 |
+
"version. When one of our plugins is updated, a new voice will be added to "
|
487 |
+
"this menu. Wishlist has been updated with new available options, <a href=\"%s"
|
488 |
+
"\">discover the PREMIUM version.</a>"
|
489 |
+
msgstr ""
|
490 |
+
|
491 |
+
#: ../includes/class.yith-wcwl-init.php:374
|
492 |
+
msgid ""
|
493 |
+
"We are sorry, but this feature is available only if cookies are enabled on "
|
494 |
+
"your browser."
|
495 |
+
msgstr ""
|
496 |
+
|
497 |
+
#: ../includes/class.yith-wcwl-init.php:375
|
498 |
+
msgid "Product correctly added to cart"
|
499 |
+
msgstr ""
|
500 |
+
|
501 |
+
#: ../includes/class.yith-wcwl-install.php:243
|
502 |
+
msgctxt "page_slug"
|
503 |
+
msgid "wishlist"
|
504 |
+
msgstr ""
|
505 |
+
|
506 |
+
#: ../includes/class.yith-wcwl-shortcode.php:259
|
507 |
+
#: ../includes/class.yith-wcwl-ui.php:164
|
508 |
+
msgid "Share on:"
|
509 |
+
msgstr ""
|
510 |
+
|
511 |
+
#: ../includes/class.yith-wcwl-ui.php:118
|
512 |
+
#: ../includes/class.yith-wcwl-ui.php:200
|
513 |
+
msgid "Select options"
|
514 |
+
msgstr ""
|
515 |
+
|
516 |
+
#: ../includes/class.yith-wcwl-ui.php:168 ../templates/share.php:20
|
517 |
+
msgid "Facebook"
|
518 |
+
msgstr ""
|
519 |
+
|
520 |
+
#: ../includes/class.yith-wcwl-ui.php:171 ../templates/share.php:26
|
521 |
+
msgid "Twitter"
|
522 |
+
msgstr ""
|
523 |
+
|
524 |
+
#: ../includes/class.yith-wcwl-ui.php:180
|
525 |
+
msgid "email"
|
526 |
+
msgstr ""
|
527 |
+
|
528 |
+
#: ../includes/class.yith-wcwl.php:177
|
529 |
+
msgid "An error occurred while adding products to the wishlist."
|
530 |
+
msgstr ""
|
531 |
+
|
532 |
+
#: ../includes/class.yith-wcwl.php:269
|
533 |
+
msgid "An error occurred while adding products to wishlist."
|
534 |
+
msgstr ""
|
535 |
+
|
536 |
+
#: ../includes/class.yith-wcwl.php:286
|
537 |
+
msgid "The \"Remove\" option now does not require any parameter"
|
538 |
+
msgstr ""
|
539 |
+
|
540 |
+
#: ../includes/class.yith-wcwl.php:335
|
541 |
+
msgid "An error occurred while removing products from the wishlist"
|
542 |
+
msgstr ""
|
543 |
+
|
544 |
+
#: ../includes/class.yith-wcwl.php:783
|
545 |
+
msgid "You need to log in before creating a new wishlist"
|
546 |
+
msgstr ""
|
547 |
+
|
548 |
+
#: ../includes/class.yith-wcwl.php:1578
|
549 |
+
msgid "Product successfully removed."
|
550 |
+
msgstr ""
|
551 |
+
|
552 |
+
#: ../includes/class.yith-wcwl.php:1582
|
553 |
+
msgid "Error. Unable to remove the product from the wishlist."
|
554 |
+
msgstr ""
|
555 |
+
|
556 |
+
#: ../includes/class.yith-wcwl.php:1586 ../templates/wishlist-view.php:241
|
557 |
+
msgid "No products were added to the wishlist"
|
558 |
+
msgstr ""
|
559 |
+
|
560 |
+
#: ../includes/class.yith-wcwl.php:1628
|
561 |
+
msgid "An error as occurred."
|
562 |
+
msgstr ""
|
563 |
+
|
564 |
+
#: ../init.php:130
|
565 |
+
msgid ""
|
566 |
+
"YITH WooCommerce Wishlist is enabled but not effective. It requires "
|
567 |
+
"WooCommerce in order to work."
|
568 |
+
msgstr ""
|
569 |
+
|
570 |
+
#: ../init.php:140
|
571 |
+
msgid ""
|
572 |
+
"You can't activate the free version of YITH WooCommerce Wishlist while you "
|
573 |
+
"are using the premium one."
|
574 |
+
msgstr ""
|
575 |
+
|
576 |
+
#: ../templates/admin/wishlist-panel-premium.php:185
|
577 |
+
#: ../templates/admin/wishlist-panel-premium.php:383
|
578 |
+
#, php-format
|
579 |
+
msgid ""
|
580 |
+
"Upgrade to the %1$spremium version%2$s%3$sof %1$sYITH WooCommerce Wishlist"
|
581 |
+
"%2$s to benefit from all features!"
|
582 |
+
msgstr ""
|
583 |
+
|
584 |
+
#: ../templates/admin/wishlist-panel-premium.php:187
|
585 |
+
#: ../templates/admin/wishlist-panel-premium.php:385
|
586 |
+
#, php-format
|
587 |
+
msgid "%1$sUPGRADE%2$s%3$s to the premium version%2$s"
|
588 |
+
msgstr ""
|
589 |
+
|
590 |
+
#: ../templates/admin/wishlist-panel-premium.php:193
|
591 |
+
msgid "Premium Features"
|
592 |
+
msgstr ""
|
593 |
+
|
594 |
+
#: ../templates/admin/wishlist-panel-premium.php:196
|
595 |
+
#: ../templates/admin/wishlist-panel-premium.php:201
|
596 |
+
msgid "Multiple Wishlist"
|
597 |
+
msgstr ""
|
598 |
+
|
599 |
+
#: ../templates/admin/wishlist-panel-premium.php:203
|
600 |
+
#, php-format
|
601 |
+
msgid ""
|
602 |
+
"%1$sDoes it ever happened to you to have too many wishes for a single wish "
|
603 |
+
"list?%2$s%3$s The possibility to manage one's wishes is a fundamental "
|
604 |
+
"feature in a modern e-commerce store and it also lets users' degree of "
|
605 |
+
"satisfaction increase.%3$sThe option \"multiple wishlist\" of %1$sYITH "
|
606 |
+
"Wishlist%2$s makes this feature and many others on your online store "
|
607 |
+
"available, and thanks to this plugin your customers will be able to create, "
|
608 |
+
"manage and share their own wish lists."
|
609 |
+
msgstr ""
|
610 |
+
|
611 |
+
#: ../templates/admin/wishlist-panel-premium.php:212
|
612 |
+
#: ../templates/admin/wishlist-panel-premium.php:222
|
613 |
+
msgid "Wishlist Private"
|
614 |
+
msgstr ""
|
615 |
+
|
616 |
+
#: ../templates/admin/wishlist-panel-premium.php:214
|
617 |
+
#, php-format
|
618 |
+
msgid ""
|
619 |
+
"By enabling the option wishlist, users will also have the possibility to "
|
620 |
+
"%1$smanage the visibility%2$s of their wish lists according to one of the "
|
621 |
+
"following options:"
|
622 |
+
msgstr ""
|
623 |
+
|
624 |
+
#: ../templates/admin/wishlist-panel-premium.php:216
|
625 |
+
#, php-format
|
626 |
+
msgid "%1$spublic:%2$s all users can look for your wish list and see it;"
|
627 |
+
msgstr ""
|
628 |
+
|
629 |
+
#: ../templates/admin/wishlist-panel-premium.php:217
|
630 |
+
#, php-format
|
631 |
+
msgid ""
|
632 |
+
"%1$sshared:%2$s only users possessing a direct link to the wish list page "
|
633 |
+
"can display it;"
|
634 |
+
msgstr ""
|
635 |
+
|
636 |
+
#: ../templates/admin/wishlist-panel-premium.php:218
|
637 |
+
#, php-format
|
638 |
+
msgid "%1$sprivate:%2$s only the wish list creator can see it."
|
639 |
+
msgstr ""
|
640 |
+
|
641 |
+
#: ../templates/admin/wishlist-panel-premium.php:229
|
642 |
+
#: ../templates/admin/wishlist-panel-premium.php:234
|
643 |
+
msgid "Estimate Cost"
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
+
#: ../templates/admin/wishlist-panel-premium.php:236
|
647 |
+
#, php-format
|
648 |
+
msgid ""
|
649 |
+
"%1$sDo you want to add the possibility to ask for estimates of costs into "
|
650 |
+
"your catalogue?%3$s Do you want to manage customised packets for faithful "
|
651 |
+
"customers in your store?%2$s%3$sThanks to the feature \"estimate cost\" of "
|
652 |
+
"%1$sYITH WooCommerce Wishlist%2$s, each registered user will be able to ask "
|
653 |
+
"for an estimate of their own products in the wishlist and add a text in the "
|
654 |
+
"popup window that will open just after clicking. Then, they can confirm the "
|
655 |
+
"text and send an email with all necessary information directly to the "
|
656 |
+
"address that you have previously set."
|
657 |
+
msgstr ""
|
658 |
+
|
659 |
+
#: ../templates/admin/wishlist-panel-premium.php:245
|
660 |
+
#: ../templates/admin/wishlist-panel-premium.php:250
|
661 |
+
msgid "Admin Panel"
|
662 |
+
msgstr ""
|
663 |
+
|
664 |
+
#: ../templates/admin/wishlist-panel-premium.php:247
|
665 |
+
#, php-format
|
666 |
+
msgid ""
|
667 |
+
"Thanks to the useful Admin panel, accessible directly among the WooCommerce "
|
668 |
+
"submenu pages, you will have total control on users' wishlists. In addition "
|
669 |
+
"to that, evaluating the degree of appreciation for your products has never "
|
670 |
+
"been so easy, now that %1$syou can see a useful report,%2$s available "
|
671 |
+
"directly in the product page, which registers the occurrences of the product "
|
672 |
+
"in customers' wish lists."
|
673 |
+
msgstr ""
|
674 |
+
|
675 |
+
#: ../templates/admin/wishlist-panel-premium.php:257
|
676 |
+
#: ../templates/admin/wishlist-panel-premium.php:262
|
677 |
+
msgid "Search Wishlists"
|
678 |
+
msgstr ""
|
679 |
+
|
680 |
+
#: ../templates/admin/wishlist-panel-premium.php:264
|
681 |
+
#, php-format
|
682 |
+
msgid ""
|
683 |
+
"How many times have you been looking for the perfect gift for a important "
|
684 |
+
"event but you had no idea of what to buy? %1$s'Search wishlists'%2$s allows "
|
685 |
+
"your e-shop users to access public wishlists of anyone, by simply knowing "
|
686 |
+
"their name or email. This way you can grant %1$shigher visibility%2$s to "
|
687 |
+
"your products and even encourage users to purchase."
|
688 |
+
msgstr ""
|
689 |
+
|
690 |
+
#: ../templates/admin/wishlist-panel-premium.php:273
|
691 |
+
msgid "'ADD TO CART' CHECKBOX"
|
692 |
+
msgstr ""
|
693 |
+
|
694 |
+
#: ../templates/admin/wishlist-panel-premium.php:275
|
695 |
+
#, php-format
|
696 |
+
msgid ""
|
697 |
+
"Your shop offers always a wide selection of products and wishlists of your "
|
698 |
+
"users get more and more crowded everyday. Give them the possibility to "
|
699 |
+
"select %1$ssome or all products%2$s in the wishlist and add them to cart "
|
700 |
+
"just with one click."
|
701 |
+
msgstr ""
|
702 |
+
|
703 |
+
#: ../templates/admin/wishlist-panel-premium.php:278
|
704 |
+
msgid "'ADD TO CART'"
|
705 |
+
msgstr ""
|
706 |
+
|
707 |
+
#: ../templates/admin/wishlist-panel-premium.php:285
|
708 |
+
msgid "DISABLE WISHLIST"
|
709 |
+
msgstr ""
|
710 |
+
|
711 |
+
#: ../templates/admin/wishlist-panel-premium.php:290
|
712 |
+
msgid "DISABLE WISHLIST FOR UNLOGGED USERS"
|
713 |
+
msgstr ""
|
714 |
+
|
715 |
+
#: ../templates/admin/wishlist-panel-premium.php:292
|
716 |
+
#, php-format
|
717 |
+
msgid ""
|
718 |
+
"Favour users that have registered to your shop and disable plugin "
|
719 |
+
"functionalities for all users that have not. By disabling this option, each "
|
720 |
+
"time they try to add a product to the wishlist, they will be %1$sredirected"
|
721 |
+
"%2$s to \"My Account\" page and a message will invite them to log in."
|
722 |
+
msgstr ""
|
723 |
+
|
724 |
+
#: ../templates/admin/wishlist-panel-premium.php:301
|
725 |
+
msgid "MESSAGE TO UNLOGGED USERS"
|
726 |
+
msgstr ""
|
727 |
+
|
728 |
+
#: ../templates/admin/wishlist-panel-premium.php:303
|
729 |
+
#, php-format
|
730 |
+
msgid ""
|
731 |
+
"Invite users that are visiting your shop to login if they want to fully "
|
732 |
+
"benefit from Wishlist functionalities. Show a %1$scustomised message%2$s and "
|
733 |
+
"redirect them to \"My Account\" page for registration."
|
734 |
+
msgstr ""
|
735 |
+
|
736 |
+
#: ../templates/admin/wishlist-panel-premium.php:306
|
737 |
+
msgid "UNLOGGED USERS"
|
738 |
+
msgstr ""
|
739 |
+
|
740 |
+
#: ../templates/admin/wishlist-panel-premium.php:313
|
741 |
+
#: ../templates/admin/wishlist-panel-premium.php:318
|
742 |
+
msgid "POPULAR TABLE"
|
743 |
+
msgstr ""
|
744 |
+
|
745 |
+
#: ../templates/admin/wishlist-panel-premium.php:320
|
746 |
+
#, php-format
|
747 |
+
msgid ""
|
748 |
+
"Some products draw customer's attention more than others and they do not "
|
749 |
+
"hesitate to add products to their wishlist. Table %1$s'Popular'%2$s allows "
|
750 |
+
"you, as shop administrator, to track products that appear most frequently in "
|
751 |
+
"their wishlists."
|
752 |
+
msgstr ""
|
753 |
+
|
754 |
+
#: ../templates/admin/wishlist-panel-premium.php:329
|
755 |
+
msgid "FUNCTIONALITIES IN ONE CLICK"
|
756 |
+
msgstr ""
|
757 |
+
|
758 |
+
#: ../templates/admin/wishlist-panel-premium.php:331
|
759 |
+
#, php-format
|
760 |
+
msgid ""
|
761 |
+
"Users have the possibility to search for a wishlist, create a new one or "
|
762 |
+
"display those already created. Add these %1$sfunctionalities%2$s through the "
|
763 |
+
"dedicated widgets or show them immediately after \"Wishlist\" table."
|
764 |
+
msgstr ""
|
765 |
+
|
766 |
+
#: ../templates/admin/wishlist-panel-premium.php:334
|
767 |
+
msgid "FUNCTIONALITIES"
|
768 |
+
msgstr ""
|
769 |
+
|
770 |
+
#: ../templates/admin/wishlist-panel-premium.php:341
|
771 |
+
#: ../templates/admin/wishlist-panel-premium.php:346
|
772 |
+
msgid "PROMOTIONAL EMAIL"
|
773 |
+
msgstr ""
|
774 |
+
|
775 |
+
#: ../templates/admin/wishlist-panel-premium.php:348
|
776 |
+
#, php-format
|
777 |
+
msgid ""
|
778 |
+
"If you want to give the right input to your users to persuade them to "
|
779 |
+
"%1$spurchase the products%2$s they have in their wishlists, you need to use "
|
780 |
+
"this feature! %1$sSend them an email%2$s: customize its whole content from "
|
781 |
+
"the option panel and add a coupon they can use in your shop, so that they "
|
782 |
+
"will know you are offering a unique offer!"
|
783 |
+
msgstr ""
|
784 |
+
|
785 |
+
#: ../templates/admin/wishlist-panel-premium.php:357
|
786 |
+
msgid "FROM A WISHLIST TO ANOTHER"
|
787 |
+
msgstr ""
|
788 |
+
|
789 |
+
#: ../templates/admin/wishlist-panel-premium.php:359
|
790 |
+
#, php-format
|
791 |
+
msgid ""
|
792 |
+
"Who said that a product has to remain forever in the same wishlist? With the "
|
793 |
+
"option %1$s\"Show \"Move to another wishlist\" dropdown menu\"%2$s, with "
|
794 |
+
"just one click users will be free to move a product from a wishlist to "
|
795 |
+
"another one, managing as they want their lists."
|
796 |
+
msgstr ""
|
797 |
+
|
798 |
+
#: ../templates/admin/wishlist-panel-premium.php:362
|
799 |
+
msgid "FROM A WISHLIST"
|
800 |
+
msgstr ""
|
801 |
+
|
802 |
+
#: ../templates/admin/wishlist-panel-premium.php:369
|
803 |
+
msgid "DATE"
|
804 |
+
msgstr ""
|
805 |
+
|
806 |
+
#: ../templates/admin/wishlist-panel-premium.php:374
|
807 |
+
msgid "DATE OF ADDITION TO A WISHLIST"
|
808 |
+
msgstr ""
|
809 |
+
|
810 |
+
#: ../templates/admin/wishlist-panel-premium.php:376
|
811 |
+
#, php-format
|
812 |
+
msgid ""
|
813 |
+
"Activating the %1$s\"Show date of addition\"%2$s option, users can see the "
|
814 |
+
"date in which they have added a particular product to their list: a new way "
|
815 |
+
"to keep you users informed about their operations."
|
816 |
+
msgstr ""
|
817 |
+
|
818 |
+
#: ../templates/share.php:32
|
819 |
+
msgid "Pinterest"
|
820 |
+
msgstr ""
|
821 |
+
|
822 |
+
#: ../templates/share.php:38
|
823 |
+
msgid "Google+"
|
824 |
+
msgstr ""
|
825 |
+
|
826 |
+
#: ../templates/share.php:44
|
827 |
+
msgid "Email"
|
828 |
+
msgstr ""
|
829 |
+
|
830 |
+
#: ../templates/wishlist-view.php:32
|
831 |
+
msgid "Edit title"
|
832 |
+
msgstr ""
|
833 |
+
|
834 |
+
#: ../templates/wishlist-view.php:41
|
835 |
+
msgid "Save"
|
836 |
+
msgstr ""
|
837 |
+
|
838 |
+
#: ../templates/wishlist-view.php:45
|
839 |
+
msgid "Cancel"
|
840 |
+
msgstr ""
|
841 |
+
|
842 |
+
#: ../templates/wishlist-view.php:82
|
843 |
+
msgid "Product Name"
|
844 |
+
msgstr ""
|
845 |
+
|
846 |
+
#: ../templates/wishlist-view.php:89
|
847 |
+
msgid "Unit Price"
|
848 |
+
msgstr ""
|
849 |
+
|
850 |
+
#: ../templates/wishlist-view.php:102
|
851 |
+
msgid "Stock Status"
|
852 |
+
msgstr ""
|
853 |
+
|
854 |
+
#: ../templates/wishlist-view.php:152 ../templates/wishlist-view.php:231
|
855 |
+
msgid "Remove this product"
|
856 |
+
msgstr ""
|
857 |
+
|
858 |
+
#: ../templates/wishlist-view.php:172
|
859 |
+
msgid "Free!"
|
860 |
+
msgstr ""
|
861 |
+
|
862 |
+
#: ../templates/wishlist-view.php:178
|
863 |
+
msgid "Out of Stock"
|
864 |
+
msgstr ""
|
865 |
+
|
866 |
+
#: ../templates/wishlist-view.php:178
|
867 |
+
msgid "In Stock"
|
868 |
+
msgstr ""
|
869 |
+
|
870 |
+
#: ../templates/wishlist-view.php:187
|
871 |
+
#, php-format
|
872 |
+
msgid "Added on : %s"
|
873 |
+
msgstr ""
|
874 |
+
|
875 |
+
#: ../templates/wishlist-view.php:199
|
876 |
+
msgid "Move"
|
877 |
+
msgstr ""
|
878 |
+
|
879 |
+
#: ../templates/wishlist-view.php:211
|
880 |
+
msgid "Shared"
|
881 |
+
msgstr ""
|
882 |
+
|
883 |
+
#: ../templates/wishlist-view.php:214
|
884 |
+
msgid "Private"
|
885 |
+
msgstr ""
|
886 |
+
|
887 |
+
#: ../templates/wishlist-view.php:217
|
888 |
+
msgid "Public"
|
889 |
+
msgstr ""
|
890 |
+
|
891 |
+
#: ../templates/wishlist-view.php:231
|
892 |
+
msgid "Remove"
|
893 |
+
msgstr ""
|
894 |
+
|
895 |
+
#: ../templates/wishlist-view.php:258
|
896 |
+
msgid "Add the selected products to the cart"
|
897 |
+
msgstr ""
|
898 |
+
|
899 |
+
#: ../templates/wishlist-view.php:266 ../templates/wishlist-view.php:312
|
900 |
+
msgid "Ask for an estimate"
|
901 |
+
msgstr ""
|
902 |
+
|
903 |
+
#: ../templates/wishlist-view.php:302
|
904 |
+
msgid "Your email"
|
905 |
+
msgstr ""
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -46,72 +46,8 @@
|
|
46 |
}
|
47 |
|
48 |
#plugin-fw-wc h3, #yith-plugin-fw-panel h3 {
|
49 |
-
padding
|
50 |
-
|
51 |
-
}
|
52 |
-
|
53 |
-
/* === VIDEO BOX === */
|
54 |
-
.yith-videobox-wrapper {
|
55 |
-
padding-top : 20px;
|
56 |
-
}
|
57 |
-
|
58 |
-
.yith-videobox-wrapper h3 {
|
59 |
-
padding : 0px 10px 10px;
|
60 |
-
border-bottom : 1px solid #eee;
|
61 |
-
}
|
62 |
-
|
63 |
-
.yith-videobox-wrapper .postbox {
|
64 |
-
display : inline-block;
|
65 |
-
}
|
66 |
-
|
67 |
-
.yith-videobox-wrapper .yith_videobox .column {
|
68 |
-
width : 45%;
|
69 |
-
float : left;
|
70 |
-
padding-right : 2.5%;
|
71 |
-
border-right : 1px solid #ebebeb;
|
72 |
-
padding-bottom : 2em;
|
73 |
-
}
|
74 |
-
|
75 |
-
.yith-videobox-wrapper .yith_videobox .column.two {
|
76 |
-
margin-right : 0;
|
77 |
-
padding-right : 0;
|
78 |
-
padding-left : 2.5%;
|
79 |
-
border : 0;
|
80 |
-
max-width : 49%;
|
81 |
-
}
|
82 |
-
|
83 |
-
.yith-videobox-wrapper .yith_videobox h2 {
|
84 |
-
font-size : 16px;
|
85 |
-
margin-bottom : 20px;
|
86 |
-
}
|
87 |
-
|
88 |
-
.yith-videobox-wrapper .yith-video-link {
|
89 |
-
width : 100%;
|
90 |
-
max-width : 200px;
|
91 |
-
float : left;
|
92 |
-
margin : 0 1.5em 1.5em 0;
|
93 |
-
}
|
94 |
-
|
95 |
-
.yith-videobox-wrapper .yith-video-link {
|
96 |
-
width : 100%;
|
97 |
-
max-width : 200px;
|
98 |
-
float : left;
|
99 |
-
margin : 0 1.5em 1.5em 0;
|
100 |
-
}
|
101 |
-
|
102 |
-
.yith-videobox-wrapper .yith-image-frame img {
|
103 |
-
max-width : 100%;
|
104 |
-
height : auto;
|
105 |
-
}
|
106 |
-
|
107 |
-
.yith-videobox-wrapper .yith-video-link img {
|
108 |
-
max-width : 100%;
|
109 |
-
height : auto;
|
110 |
-
}
|
111 |
-
|
112 |
-
.yith-videobox-wrapper .yith-video-iframe {
|
113 |
-
display : none;
|
114 |
-
|
115 |
}
|
116 |
|
117 |
/* === Plugins Upgrader === */
|
46 |
}
|
47 |
|
48 |
#plugin-fw-wc h3, #yith-plugin-fw-panel h3 {
|
49 |
+
padding : 0 0 0 10px;
|
50 |
+
margin : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
/* === Plugins Upgrader === */
|
plugin-fw/assets/css/yith-fields.css
CHANGED
@@ -7,6 +7,11 @@
|
|
7 |
clear : both;
|
8 |
}
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
.yith-disabled {
|
11 |
opacity : 0.3;
|
12 |
pointer-events : none;
|
@@ -32,8 +37,11 @@
|
|
32 |
|
33 |
.yith-plugin-fw input[type=email],
|
34 |
.yith-plugin-fw input[type=number],
|
35 |
-
.yith-plugin-fw input[type=text]:not(.select2-search__field)
|
36 |
.yith-plugin-fw select,
|
|
|
|
|
|
|
37 |
.woocommerce .yith-plugin-fw table.form-table select {
|
38 |
width : 400px;
|
39 |
max-width : 100%;
|
@@ -41,14 +49,29 @@
|
|
41 |
padding : 5px;
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
.woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
|
45 |
.yith-plugin-fw input[type=text].colorpick {
|
46 |
-
width
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
-
.
|
50 |
-
|
51 |
-
|
|
|
|
|
52 |
}
|
53 |
|
54 |
.yith-plugin-fw textarea {
|
@@ -57,12 +80,6 @@
|
|
57 |
padding : 5px;
|
58 |
}
|
59 |
|
60 |
-
.yith-plugin-fw input[type=email],
|
61 |
-
.yith-plugin-fw input[type=number],
|
62 |
-
.yith-plugin-fw input[type=text]:not(.select2-search__field) {
|
63 |
-
padding : 5px 10px;
|
64 |
-
}
|
65 |
-
|
66 |
/* ------------- ICONS ------------- */
|
67 |
.yit-icons-manager-wrapper {
|
68 |
width : 100%;
|
@@ -175,6 +192,10 @@ ul.yit-icons-manager-list li.active {
|
|
175 |
}
|
176 |
|
177 |
/* ------- OnOff ------- */
|
|
|
|
|
|
|
|
|
178 |
.yith-plugin-fw-onoff-container input {
|
179 |
display : none;
|
180 |
}
|
@@ -218,6 +239,15 @@ ul.yit-icons-manager-list li.active {
|
|
218 |
max-height : 200px;
|
219 |
}
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
/* ------- Sidebar Layout ------- */
|
222 |
.yith-plugin-fw-sidebar-layout input[type="radio"] {
|
223 |
display : none;
|
@@ -324,7 +354,7 @@ ul.yit-icons-manager-list li.active {
|
|
324 |
}
|
325 |
|
326 |
.yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area,
|
327 |
-
.woocommerce table.form-table .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area{
|
328 |
width : 100%;
|
329 |
}
|
330 |
|
7 |
clear : both;
|
8 |
}
|
9 |
|
10 |
+
.yith-plugin-fw span.description.inline {
|
11 |
+
display : inline-block;
|
12 |
+
margin : 0 0 0 5px;
|
13 |
+
}
|
14 |
+
|
15 |
.yith-disabled {
|
16 |
opacity : 0.3;
|
17 |
pointer-events : none;
|
37 |
|
38 |
.yith-plugin-fw input[type=email],
|
39 |
.yith-plugin-fw input[type=number],
|
40 |
+
.yith-plugin-fw input[type=text]:not(.select2-search__field),
|
41 |
.yith-plugin-fw select,
|
42 |
+
.woocommerce .yith-plugin-fw table.form-table input[type=email],
|
43 |
+
.woocommerce .yith-plugin-fw table.form-table input[type=number],
|
44 |
+
.woocommerce .yith-plugin-fw table.form-table input[type=text]:not(.select2-search__field),
|
45 |
.woocommerce .yith-plugin-fw table.form-table select {
|
46 |
width : 400px;
|
47 |
max-width : 100%;
|
49 |
padding : 5px;
|
50 |
}
|
51 |
|
52 |
+
.woocommerce .yith-plugin-fw table.form-table input[type=text].wp-color-picker,
|
53 |
+
.woocommerce .yith-plugin-fw table.form-table input[type=text].yith-plugin-fw-colorpicker,
|
54 |
+
.yith-plugin-fw input[type=text].wp-color-picker,
|
55 |
+
.yith-plugin-fw input[type=text].yith-plugin-fw-colorpicker {
|
56 |
+
width : 6em;
|
57 |
+
max-width : none;
|
58 |
+
height : auto;
|
59 |
+
padding : 3px 5px;
|
60 |
+
}
|
61 |
+
|
62 |
.woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
|
63 |
.yith-plugin-fw input[type=text].colorpick {
|
64 |
+
width : 6em;
|
65 |
+
max-width : none;
|
66 |
+
height : auto;
|
67 |
+
padding : 6px;
|
68 |
}
|
69 |
|
70 |
+
.yith-plugin-fw input.select2-search__field,
|
71 |
+
.yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
|
72 |
+
.woocommerce .yith-plugin-fw input.select2-search__field,
|
73 |
+
.woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
|
74 |
+
padding : 3px;
|
75 |
}
|
76 |
|
77 |
.yith-plugin-fw textarea {
|
80 |
padding : 5px;
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
/* ------------- ICONS ------------- */
|
84 |
.yit-icons-manager-wrapper {
|
85 |
width : 100%;
|
192 |
}
|
193 |
|
194 |
/* ------- OnOff ------- */
|
195 |
+
.yith-plugin-fw-onoff-container {
|
196 |
+
display : inline-block;
|
197 |
+
}
|
198 |
+
|
199 |
.yith-plugin-fw-onoff-container input {
|
200 |
display : none;
|
201 |
}
|
239 |
max-height : 200px;
|
240 |
}
|
241 |
|
242 |
+
/* ------- Radio ------- */
|
243 |
+
.yith-plugin-fw-radio input[type=radio] {
|
244 |
+
margin : 0 3px 0 0;
|
245 |
+
}
|
246 |
+
|
247 |
+
.yith-plugin-fw-radio__row {
|
248 |
+
margin-bottom : 8px;
|
249 |
+
}
|
250 |
+
|
251 |
/* ------- Sidebar Layout ------- */
|
252 |
.yith-plugin-fw-sidebar-layout input[type="radio"] {
|
253 |
display : none;
|
354 |
}
|
355 |
|
356 |
.yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area,
|
357 |
+
.woocommerce table.form-table .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area {
|
358 |
width : 100%;
|
359 |
}
|
360 |
|
plugin-fw/assets/js/multisite-updater.js
CHANGED
@@ -6,18 +6,18 @@
|
|
6 |
* It is also available through the world-wide-web at this URL:
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
9 |
-
(function ($) {
|
10 |
|
11 |
-
|
12 |
-
update
|
13 |
-
|
14 |
-
registered
|
15 |
-
activated
|
16 |
|
17 |
-
if( count == 0 || count == ''){
|
18 |
var update_row = '<span class="update-plugins"><span class="plugin-count"></span></span>';
|
19 |
-
count
|
20 |
-
plugins_menu_item.find( '.wp-menu-name').append( update_row );
|
21 |
}
|
22 |
|
23 |
/**
|
@@ -38,51 +38,47 @@
|
|
38 |
*
|
39 |
* @return void
|
40 |
*/
|
41 |
-
function update_plugins_row( registered, activated, count, localize ){
|
42 |
-
for( var init in registered ){
|
43 |
-
var plugin = registered[init];
|
44 |
-
for( var headers in plugin ){
|
45 |
|
46 |
-
if( headers == 'slug' || version_compare( plugin[headers].Version, plugin[headers].Latest, '>=' ) ) {
|
47 |
continue;
|
48 |
}
|
49 |
|
50 |
-
count = parseInt(count) + 1;
|
51 |
-
$(".plugin-count").empty().html(count);
|
52 |
|
53 |
-
var regex
|
54 |
-
info
|
55 |
-
name
|
56 |
-
id
|
57 |
-
row
|
58 |
|
59 |
-
$(row).addClass("update");
|
60 |
|
61 |
var html = '<tr class="plugin-update-tr">' +
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
-
if( typeof activated[init] == "undefined" ) {
|
67 |
|
68 |
html = html +
|
69 |
-
|
70 |
-
|
71 |
} else {
|
72 |
html = html +
|
73 |
-
|
74 |
-
}
|
75 |
-
|
76 |
-
if( typeof localize.changelogs[init] != 'undefined' ){
|
77 |
-
html = html + localize.changelogs[init];
|
78 |
}
|
79 |
|
80 |
html = html +
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
|
85 |
-
$(html).insertAfter(row);
|
86 |
}
|
87 |
}
|
88 |
}
|
@@ -96,7 +92,7 @@
|
|
96 |
*
|
97 |
* @see php.js library http://phpjs.org/
|
98 |
*/
|
99 |
-
function version_compare(v1, v2, operator) {
|
100 |
// discuss at: http://phpjs.org/functions/version_compare/
|
101 |
// original by: Philippe Jausions (http://pear.php.net/user/jausions)
|
102 |
// original by: Aidan Lister (http://aidanlister.com/)
|
@@ -113,21 +109,21 @@
|
|
113 |
// example 4: version_compare('4.1.0.52','4.01.0.51');
|
114 |
// returns 4: 1
|
115 |
|
116 |
-
this.php_js
|
117 |
this.php_js.ENV = this.php_js.ENV || {};
|
118 |
// END REDUNDANT
|
119 |
// Important: compare must be initialized at 0.
|
120 |
-
var i
|
121 |
-
x
|
122 |
-
compare
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
vm
|
131 |
'dev' : -6,
|
132 |
'alpha': -5,
|
133 |
'a' : -5,
|
@@ -139,54 +135,54 @@
|
|
139 |
'p' : 1,
|
140 |
'pl' : 1
|
141 |
},
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
prepVersion = function (v) {
|
152 |
v = ('' + v)
|
153 |
-
.replace(/[_\-+]/g, '.');
|
154 |
-
v = v.replace(/([^.\d]+)/g, '.$1.')
|
155 |
-
.replace(/\.{2,}/g, '.');
|
156 |
-
return (!v.length ? [-8] : v.split('.'));
|
157 |
};
|
158 |
// This converts a version component to a number.
|
159 |
// Empty component becomes 0.
|
160 |
// Non-numerical component becomes a negative number.
|
161 |
// Numerical component becomes itself as an integer.
|
162 |
-
numVersion = function (v) {
|
163 |
-
return !v ? 0 : (isNaN(v) ? vm[v] || -7 : parseInt(v, 10));
|
164 |
};
|
165 |
-
v1
|
166 |
-
v2
|
167 |
-
x
|
168 |
-
for (i = 0; i < x; i++) {
|
169 |
-
if (v1[i] == v2[i]) {
|
170 |
continue;
|
171 |
}
|
172 |
-
v1[i] = numVersion(v1[i]);
|
173 |
-
v2[i] = numVersion(v2[i]);
|
174 |
-
if (v1[i] < v2[i]) {
|
175 |
compare = -1;
|
176 |
break;
|
177 |
-
} else if (v1[i] > v2[i]) {
|
178 |
compare = 1;
|
179 |
break;
|
180 |
}
|
181 |
}
|
182 |
-
if (!operator) {
|
183 |
return compare;
|
184 |
}
|
185 |
|
186 |
// Important: operator is CASE-SENSITIVE.
|
187 |
// "No operator" seems to be treated as "<."
|
188 |
// Any other values seem to make the function return null.
|
189 |
-
switch (operator) {
|
190 |
case '>':
|
191 |
case 'gt':
|
192 |
return (compare > 0);
|
@@ -217,6 +213,6 @@
|
|
217 |
$( 'body' ).on( 'click', '.yit-changelog-button', function () {
|
218 |
$( '#TB_window' ).remove();
|
219 |
} );
|
220 |
-
|
221 |
|
222 |
-
|
|
6 |
* It is also available through the world-wide-web at this URL:
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
9 |
+
(function ( $ ) {
|
10 |
|
11 |
+
var plugins_menu_item = $( '#menu-plugins' ),
|
12 |
+
update = plugins_menu_item.find( '.update-plugins' ),
|
13 |
+
count = update.find( ".update-count" ).text(),
|
14 |
+
registered = plugins.registered,
|
15 |
+
activated = plugins.activated;
|
16 |
|
17 |
+
if ( count == 0 || count == '' ) {
|
18 |
var update_row = '<span class="update-plugins"><span class="plugin-count"></span></span>';
|
19 |
+
count = 0;
|
20 |
+
plugins_menu_item.find( '.wp-menu-name' ).append( update_row );
|
21 |
}
|
22 |
|
23 |
/**
|
38 |
*
|
39 |
* @return void
|
40 |
*/
|
41 |
+
function update_plugins_row( registered, activated, count, localize ) {
|
42 |
+
for ( var init in registered ) {
|
43 |
+
var plugin = registered[ init ];
|
44 |
+
for ( var headers in plugin ) {
|
45 |
|
46 |
+
if ( headers == 'slug' || version_compare( plugin[ headers ].Version, plugin[ headers ].Latest, '>=' ) ) {
|
47 |
continue;
|
48 |
}
|
49 |
|
50 |
+
count = parseInt( count ) + 1;
|
51 |
+
$( ".plugin-count" ).empty().html( count );
|
52 |
|
53 |
+
var regex = new RegExp( ' ', 'g' ),
|
54 |
+
info = plugin[ headers ],
|
55 |
+
name = '' + info.Name,
|
56 |
+
id = name.replace( regex, '-' ).trim(),
|
57 |
+
row = '*[data-slug="' + id.toLowerCase() + '"]';
|
58 |
|
59 |
+
$( row ).addClass( "update" );
|
60 |
|
61 |
var html = '<tr class="plugin-update-tr">' +
|
62 |
+
'<td colspan="3" class="plugin-update colspanchange">' +
|
63 |
+
'<div class="update-message">' + localize.strings.new_version.replace( '%plugin_name%', name ) +
|
64 |
+
'<a class="thickbox open-plugin-details-modal" href="' + localize.details_url[ init ] + '">' + localize.strings.latest.replace( '%latest%', plugin[ headers ].Latest ) + '</a>';
|
65 |
|
66 |
+
if ( typeof activated[ init ] == "undefined" ) {
|
67 |
|
68 |
html = html +
|
69 |
+
' <em>' + localize.strings.unavailable + '</em>' +
|
70 |
+
localize.strings.activate.replace( '%activate_link%', localize.licence_activation_url ).replace( '%plugin_name%', name );
|
71 |
} else {
|
72 |
html = html +
|
73 |
+
'. <a href="' + localize.update_url[ init ] + '">' + localize.strings.update_now + '</a>';
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
|
76 |
html = html +
|
77 |
+
'</div>' +
|
78 |
+
'</td>' +
|
79 |
+
'</tr>';
|
80 |
|
81 |
+
$( html ).insertAfter( row );
|
82 |
}
|
83 |
}
|
84 |
}
|
92 |
*
|
93 |
* @see php.js library http://phpjs.org/
|
94 |
*/
|
95 |
+
function version_compare( v1, v2, operator ) {
|
96 |
// discuss at: http://phpjs.org/functions/version_compare/
|
97 |
// original by: Philippe Jausions (http://pear.php.net/user/jausions)
|
98 |
// original by: Aidan Lister (http://aidanlister.com/)
|
109 |
// example 4: version_compare('4.1.0.52','4.01.0.51');
|
110 |
// returns 4: 1
|
111 |
|
112 |
+
this.php_js = this.php_js || {};
|
113 |
this.php_js.ENV = this.php_js.ENV || {};
|
114 |
// END REDUNDANT
|
115 |
// Important: compare must be initialized at 0.
|
116 |
+
var i = 0,
|
117 |
+
x = 0,
|
118 |
+
compare = 0,
|
119 |
+
// vm maps textual PHP versions to negatives so they're less than 0.
|
120 |
+
// PHP currently defines these as CASE-SENSITIVE. It is important to
|
121 |
+
// leave these as negatives so that they can come before numerical versions
|
122 |
+
// and as if no letters were there to begin with.
|
123 |
+
// (1alpha is < 1 and < 1.1 but > 1dev1)
|
124 |
+
// If a non-numerical value can't be mapped to this table, it receives
|
125 |
+
// -7 as its value.
|
126 |
+
vm = {
|
127 |
'dev' : -6,
|
128 |
'alpha': -5,
|
129 |
'a' : -5,
|
135 |
'p' : 1,
|
136 |
'pl' : 1
|
137 |
},
|
138 |
+
// This function will be called to prepare each version argument.
|
139 |
+
// It replaces every _, -, and + with a dot.
|
140 |
+
// It surrounds any nonsequence of numbers/dots with dots.
|
141 |
+
// It replaces sequences of dots with a single dot.
|
142 |
+
// version_compare('4..0', '4.0') == 0
|
143 |
+
// Important: A string of 0 length needs to be converted into a value
|
144 |
+
// even less than an unexisting value in vm (-7), hence [-8].
|
145 |
+
// It's also important to not strip spaces because of this.
|
146 |
+
// version_compare('', ' ') == 1
|
147 |
+
prepVersion = function ( v ) {
|
148 |
v = ('' + v)
|
149 |
+
.replace( /[_\-+]/g, '.' );
|
150 |
+
v = v.replace( /([^.\d]+)/g, '.$1.' )
|
151 |
+
.replace( /\.{2,}/g, '.' );
|
152 |
+
return (!v.length ? [ -8 ] : v.split( '.' ));
|
153 |
};
|
154 |
// This converts a version component to a number.
|
155 |
// Empty component becomes 0.
|
156 |
// Non-numerical component becomes a negative number.
|
157 |
// Numerical component becomes itself as an integer.
|
158 |
+
numVersion = function ( v ) {
|
159 |
+
return !v ? 0 : (isNaN( v ) ? vm[ v ] || -7 : parseInt( v, 10 ));
|
160 |
};
|
161 |
+
v1 = prepVersion( v1 );
|
162 |
+
v2 = prepVersion( v2 );
|
163 |
+
x = Math.max( v1.length, v2.length );
|
164 |
+
for ( i = 0; i < x; i++ ) {
|
165 |
+
if ( v1[ i ] == v2[ i ] ) {
|
166 |
continue;
|
167 |
}
|
168 |
+
v1[ i ] = numVersion( v1[ i ] );
|
169 |
+
v2[ i ] = numVersion( v2[ i ] );
|
170 |
+
if ( v1[ i ] < v2[ i ] ) {
|
171 |
compare = -1;
|
172 |
break;
|
173 |
+
} else if ( v1[ i ] > v2[ i ] ) {
|
174 |
compare = 1;
|
175 |
break;
|
176 |
}
|
177 |
}
|
178 |
+
if ( !operator ) {
|
179 |
return compare;
|
180 |
}
|
181 |
|
182 |
// Important: operator is CASE-SENSITIVE.
|
183 |
// "No operator" seems to be treated as "<."
|
184 |
// Any other values seem to make the function return null.
|
185 |
+
switch ( operator ) {
|
186 |
case '>':
|
187 |
case 'gt':
|
188 |
return (compare > 0);
|
213 |
$( 'body' ).on( 'click', '.yit-changelog-button', function () {
|
214 |
$( '#TB_window' ).remove();
|
215 |
} );
|
|
|
216 |
|
217 |
+
|
218 |
+
})( jQuery );
|
plugin-fw/assets/js/multisite-updater.min.js
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
(function(
|
4 |
-
|
|
|
|
|
|
1 |
+
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,f,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var h=a[e];if(f.call(b,h,e,a))return{i:e,v:h}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,b){a!=Array.prototype&&a!=Object.prototype&&(a[f]=b.value)};
|
2 |
+
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,b,d){if(f){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in b||(b[e]={});b=b[e]}a=a[a.length-1];d=b[a];f=f(d);f!=d&&null!=f&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:f})}};
|
3 |
+
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
|
4 |
+
(function(a){function f(a,b,d){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var c=0,f=0,g=0,e={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};c=function(a){a=(""+a).replace(/[_\-+]/g,".");a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".");return a.length?a.split("."):[-8]};numVersion=function(a){return a?isNaN(a)?e[a]||-7:parseInt(a,10):0};a=c(a);b=c(b);f=Math.max(a.length,b.length);for(c=0;c<f;c++)if(a[c]!=b[c])if(a[c]=numVersion(a[c]),b[c]=numVersion(b[c]),
|
5 |
+
a[c]<b[c]){g=-1;break}else if(a[c]>b[c]){g=1;break}if(!d)return g;switch(d){case ">":case "gt":return 0<g;case ">=":case "ge":return 0<=g;case "<=":case "le":return 0>=g;case "==":case "=":case "eq":return 0===g;case "<>":case "!=":case "ne":return 0!==g;case "":case "<":case "lt":return 0>g;default:return null}}var b=a("#menu-plugins"),d=b.find(".update-plugins").find(".update-count").text(),e=plugins.registered,h=plugins.activated;if(0==d||""==d)d=0,b.find(".wp-menu-name").append('<span class="update-plugins"><span class="plugin-count"></span></span>');
|
6 |
+
(function(b,d,e,c){for(var h in b){var g=b[h],k;for(k in g)if("slug"!=k&&!f(g[k].Version,g[k].Latest,">=")){e=parseInt(e)+1;a(".plugin-count").empty().html(e);var m=""+g[k].Name,n='*[data-slug="'+m.replace(/ /g,"-").trim().toLowerCase()+'"]';a(n).addClass("update");var l='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message">'+c.strings.new_version.replace("%plugin_name%",m)+'<a class="thickbox open-plugin-details-modal" href="'+c.details_url[h]+
|
7 |
+
'">'+c.strings.latest.replace("%latest%",g[k].Latest)+"</a>";l="undefined"==typeof d[h]?l+" <em>"+c.strings.unavailable+"</em>"+c.strings.activate.replace("%activate_link%",c.licence_activation_url).replace("%plugin_name%",m):l+'. <a href="'+c.update_url[h]+'">'+c.strings.update_now+"</a>";l+="</div></td></tr>";a(l).insertAfter(n)}}})(e,h,d,plugins);a("body").on("click",".yit-changelog-button",function(){a("#TB_window").remove()})})(jQuery);
|
plugin-fw/assets/js/yit-plugin-panel.js
CHANGED
@@ -125,37 +125,6 @@
|
|
125 |
} ).disableSelection();
|
126 |
} );
|
127 |
|
128 |
-
$( document ).ready( function () {
|
129 |
-
|
130 |
-
$( '.yith-video-link' ).click( function ( event ) {
|
131 |
-
event.preventDefault();
|
132 |
-
var target = $( this ).data( 'video-id' );
|
133 |
-
|
134 |
-
$( '.' + target ).dialog( {
|
135 |
-
dialogClass : 'wp-dialog yit-dialog yit-video-dialog',
|
136 |
-
modal : true,
|
137 |
-
closeOnEscape: true,
|
138 |
-
width : 'auto',
|
139 |
-
resizable : false,
|
140 |
-
draggable : false,
|
141 |
-
create : function ( event, ui ) {
|
142 |
-
$( this ).css( "maxWidth", "853px" );
|
143 |
-
},
|
144 |
-
open : function ( event, ui ) {
|
145 |
-
|
146 |
-
$( '.ui-widget-overlay' ).bind( 'click', function () {
|
147 |
-
$( this ).siblings( '.ui-dialog' ).find( '.ui-dialog-content' ).dialog( 'close' );
|
148 |
-
} );
|
149 |
-
|
150 |
-
}
|
151 |
-
|
152 |
-
} );
|
153 |
-
|
154 |
-
$( '.ui-dialog :button' ).blur();
|
155 |
-
|
156 |
-
} );
|
157 |
-
} );
|
158 |
-
|
159 |
//google analytics generation
|
160 |
$( document ).ready( function () {
|
161 |
$( '.google-analytic-generate' ).click( function () {
|
125 |
} ).disableSelection();
|
126 |
} );
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
//google analytics generation
|
129 |
$( document ).ready( function () {
|
130 |
$( '.google-analytic-generate' ).click( function () {
|
plugin-fw/assets/js/yit-plugin-panel.min.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
(
|
|
|
|
1 |
+
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,e,b){a instanceof String&&(a=String(a));for(var c=a.length,d=0;d<c;d++){var g=a[d];if(e.call(b,g,d,a))return{i:d,v:g}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,b){a!=Array.prototype&&a!=Object.prototype&&(a[e]=b.value)};
|
2 |
+
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,e,b,c){if(e){b=$jscomp.global;a=a.split(".");for(c=0;c<a.length-1;c++){var d=a[c];d in b||(b[d]={});b=b[d]}a=a[a.length-1];c=b[a];e=e(c);e!=c&&null!=e&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:e})}};
|
3 |
+
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
|
4 |
+
(function(a){function e(b,c,d,e){var f=!0;if("string"==typeof c){":radio"==c.substr(0,6)&&(c+=":checked");var h=a(c).val();"checkbox"==a(c).attr("type")&&(h=a(c).is(":checked")?"yes":"no");d=d.split(",");for(c=0;c<d.length;c++)if(h!=d[c])f=!1;else{f=!0;break}}d=a(b);b=a(b+"-container").closest("tr");1>b.length&&(b=d.closest(".yith-plugin-fw-panel-wc-row"));e=e.split("-");for(var g in e)if(h=e[g],f)switch(h){case "disable":b.removeClass("yith-disabled");d.attr("disabled",!1);break;case "hideme":d.show();
|
5 |
+
break;default:b.show()}else switch(h){case "disable":b.addClass("yith-disabled");d.attr("disabled",!0);break;case "hideme":d.hide();break;default:b.hide()}}a("[data-dep-target]").each(function(){var b=a(this),c="#"+b.data("dep-target"),d="#"+b.data("dep-id"),g=b.data("dep-value"),f=b.data("dep-type");e(c,d,g.toString(),f);a(d).on("change",function(){e(c,d,g.toString(),f)}).change()});a(".rm_connectedlist").each(function(){var b=a(this).find("ul"),c=a(this).find(":hidden");b.sortable({connectWith:b,
|
6 |
+
update:function(d,e){var f={};b.each(function(){var b={};a(this).children().each(function(){b[a(this).data("option")]=a(this).text()});f[a(this).data("list")]=b});c.val(JSON.stringify(f).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()});a(document).ready(function(){a(".google-analytic-generate").click(function(){var b=a("#"+a(this).data("textarea")).data("codemirrorInstance"),c=a("#"+a(this).data("input")).val(),d=a(this).data("basename");b.replaceRange("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n"+
|
7 |
+
("ga('create', '"+c+"', '"+d+"');\n")+"ga('send', 'pageview');\n",b.getCursor("start"),b.getCursor("end"))})});a(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper")})(jQuery);
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.0.
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
-
* @version 3.0.
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.0.16
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
+
* @version 3.0.16
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
plugin-fw/lib/privacy/yit-privacy-plugin-abstract.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
!defined( 'ABSPATH' ) && exit; // Exit if accessed directly
|
3 |
+
|
4 |
+
if ( !class_exists( 'YITH_Privacy_Plugin_Abstract' ) ) {
|
5 |
+
class YITH_Privacy_Plugin_Abstract {
|
6 |
+
private $_name;
|
7 |
+
|
8 |
+
public function __construct( $name ) {
|
9 |
+
$this->_name = $name;
|
10 |
+
$this->init();
|
11 |
+
}
|
12 |
+
|
13 |
+
protected function init() {
|
14 |
+
add_filter( 'yith_plugin_fw_privacy_guide_content', array( $this, 'add_message_in_section' ), 10, 2 );
|
15 |
+
}
|
16 |
+
|
17 |
+
public function add_message_in_section( $html, $section ) {
|
18 |
+
if ( $message = $this->get_privacy_message( $section ) ) {
|
19 |
+
$html .= "<p class='privacy-policy-tutorial'><strong>{$this->_name}</strong></p>";
|
20 |
+
$html .= $message;
|
21 |
+
}
|
22 |
+
return $html;
|
23 |
+
}
|
24 |
+
|
25 |
+
public function get_privacy_message( $section ) {
|
26 |
+
return '';
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
plugin-fw/lib/privacy/yit-privacy.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
!defined( 'ABSPATH' ) && exit; // Exit if accessed directly
|
3 |
+
|
4 |
+
if ( !class_exists( 'YITH_Privacy' ) ) {
|
5 |
+
/**
|
6 |
+
* Class YITH_Privacy
|
7 |
+
* Privacy Class
|
8 |
+
*
|
9 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
10 |
+
*/
|
11 |
+
class YITH_Privacy {
|
12 |
+
private static $_instance;
|
13 |
+
|
14 |
+
private $_title;
|
15 |
+
|
16 |
+
public static function get_instance() {
|
17 |
+
return !is_null( self::$_instance ) ? self::$_instance : self::$_instance = new self();
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* YITH_Privacy constructor.
|
22 |
+
*/
|
23 |
+
private function __construct() {
|
24 |
+
$this->_title = apply_filters( 'yith_plugin_fw_privacy_policy_guide_title', _x( 'YITH Plugins', 'Privacy Policy Guide Title', 'yith-plugin-fw' ) );
|
25 |
+
add_action( 'admin_init', array( $this, 'add_privacy_message' ) );
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Adds the privacy message on YITH privacy page.
|
30 |
+
*/
|
31 |
+
public function add_privacy_message() {
|
32 |
+
if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
|
33 |
+
$content = $this->get_privacy_message();
|
34 |
+
|
35 |
+
if ( $content ) {
|
36 |
+
wp_add_privacy_policy_content( $this->_title, $this->get_privacy_message() );
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* get the privacy message
|
43 |
+
*
|
44 |
+
* @return string
|
45 |
+
*/
|
46 |
+
public function get_privacy_message() {
|
47 |
+
$privacy_content_path = YIT_CORE_PLUGIN_TEMPLATE_PATH . '/privacy/html-policy-content.php';
|
48 |
+
ob_start();
|
49 |
+
$sections = $this->get_sections();
|
50 |
+
if ( file_exists( $privacy_content_path ) )
|
51 |
+
include $privacy_content_path;
|
52 |
+
|
53 |
+
return apply_filters( 'yith_wcbk_privacy_policy_content', ob_get_clean() );
|
54 |
+
}
|
55 |
+
|
56 |
+
public function get_sections() {
|
57 |
+
return apply_filters( 'yith_wcbk_privacy_policy_content_sections', array(
|
58 |
+
'general' => array(
|
59 |
+
'tutorial' => _x( 'This sample language includes the basics around what personal data your store may be collecting, storing and sharing, as well as who may have access to that data. Depending on what settings are enabled and which additional plugins are used, the specific information shared by your store will vary. We recommend consulting with a lawyer when deciding what information to disclose on your privacy policy.', 'Privacy Policy Content', 'yith-plugin-fw' ),
|
60 |
+
'description' => '',
|
61 |
+
),
|
62 |
+
'collect_and_store' => array(
|
63 |
+
'title' => _x( 'What we collect and store', 'Privacy Policy Content', 'yith-plugin-fw' )
|
64 |
+
),
|
65 |
+
'has_access' => array(
|
66 |
+
'title' => _x( 'Who on our team has access', 'Privacy Policy Content', 'yith-plugin-fw' )
|
67 |
+
),
|
68 |
+
'share' => array(
|
69 |
+
'title' => _x( 'What we share with others', 'Privacy Policy Content', 'yith-plugin-fw' ),
|
70 |
+
),
|
71 |
+
'payments' => array(
|
72 |
+
'title' => _x( 'Payments', 'Privacy Policy Content', 'yith-plugin-fw' )
|
73 |
+
),
|
74 |
+
) );
|
75 |
+
}
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
YITH_Privacy::get_instance();
|
plugin-fw/lib/yit-metabox.php
CHANGED
@@ -520,7 +520,11 @@ if ( !class_exists( 'YIT_Metabox' ) ) {
|
|
520 |
if ( in_array( $field[ 'type' ], array( 'onoff', 'checkbox' ) ) ) {
|
521 |
update_post_meta( $post_id, $field[ 'id' ], '1' );
|
522 |
} else {
|
523 |
-
|
|
|
|
|
|
|
|
|
524 |
}
|
525 |
} elseif ( in_array( $field[ 'type' ], array( 'onoff', 'checkbox' ) ) ) {
|
526 |
update_post_meta( $post_id, $field[ 'id' ], '0' );
|
520 |
if ( in_array( $field[ 'type' ], array( 'onoff', 'checkbox' ) ) ) {
|
521 |
update_post_meta( $post_id, $field[ 'id' ], '1' );
|
522 |
} else {
|
523 |
+
$value = $_POST[ 'yit_metaboxes' ][ $field[ 'id' ] ];
|
524 |
+
if ( !empty( $field[ 'yith-sanitize-callback' ] ) && is_callable( $field[ 'yith-sanitize-callback' ] ) ) {
|
525 |
+
$value = call_user_func( $field[ 'yith-sanitize-callback' ], $value );
|
526 |
+
}
|
527 |
+
add_post_meta( $post_id, $field[ 'id' ], $value, true ) || update_post_meta( $post_id, $field[ 'id' ], $value );
|
528 |
}
|
529 |
} elseif ( in_array( $field[ 'type' ], array( 'onoff', 'checkbox' ) ) ) {
|
530 |
update_post_meta( $post_id, $field[ 'id' ], '0' );
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -93,7 +93,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
93 |
if ( !static::$_actions_initialized ) {
|
94 |
/* Add VideoBox and InfoBox */
|
95 |
add_action( 'woocommerce_admin_field_boxinfo', array( __CLASS__, 'add_infobox' ), 10, 1 );
|
96 |
-
add_action( 'woocommerce_admin_field_videobox', array( __CLASS__, 'add_videobox' ), 10, 1 );
|
97 |
|
98 |
/* Add YITH Fields */
|
99 |
add_action( 'woocommerce_admin_field_yith-field', array( __CLASS__, 'add_yith_field' ), 10, 1 );
|
@@ -521,9 +520,13 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
521 |
$value = yith_plugin_fw_is_true( $raw_value ) ? 'yes' : 'no';
|
522 |
}
|
523 |
|
524 |
-
if ( isset( $option[ 'yith-type' ] ) && in_array( $option[ 'yith-type' ], array( 'textarea-editor', 'textarea-codemirror' ) ) ) {
|
525 |
$value = $raw_value;
|
526 |
}
|
|
|
|
|
|
|
|
|
527 |
}
|
528 |
|
529 |
return $value;
|
93 |
if ( !static::$_actions_initialized ) {
|
94 |
/* Add VideoBox and InfoBox */
|
95 |
add_action( 'woocommerce_admin_field_boxinfo', array( __CLASS__, 'add_infobox' ), 10, 1 );
|
|
|
96 |
|
97 |
/* Add YITH Fields */
|
98 |
add_action( 'woocommerce_admin_field_yith-field', array( __CLASS__, 'add_yith_field' ), 10, 1 );
|
520 |
$value = yith_plugin_fw_is_true( $raw_value ) ? 'yes' : 'no';
|
521 |
}
|
522 |
|
523 |
+
if ( isset( $option[ 'yith-type' ] ) && in_array( $option[ 'yith-type' ], array( 'textarea', 'textarea-editor', 'textarea-codemirror' ) ) ) {
|
524 |
$value = $raw_value;
|
525 |
}
|
526 |
+
|
527 |
+
if ( !empty( $option[ 'yith-sanitize-callback' ] ) && is_callable( $option[ 'yith-sanitize-callback' ] ) ) {
|
528 |
+
$value = call_user_func( $option[ 'yith-sanitize-callback' ], $value );
|
529 |
+
}
|
530 |
}
|
531 |
|
532 |
return $value;
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -274,6 +274,11 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
274 |
if ( isset( $option[ 'type' ] ) && in_array( $option[ 'type' ], array( 'checkbox', 'onoff' ) ) ) {
|
275 |
$value = yith_plugin_fw_is_true( $value ) ? 'yes' : 'no';
|
276 |
}
|
|
|
|
|
|
|
|
|
|
|
277 |
$valid_input[ $option[ 'id' ] ] = $value;
|
278 |
}
|
279 |
}
|
@@ -363,7 +368,6 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
363 |
return;
|
364 |
}
|
365 |
?>
|
366 |
-
<?php $this->print_video_box(); ?>
|
367 |
<?php
|
368 |
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
|
369 |
?>
|
@@ -605,8 +609,11 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
605 |
return $this->_main_array_options;
|
606 |
}
|
607 |
|
|
|
|
|
608 |
foreach ( $this->settings[ 'admin-tabs' ] as $item => $v ) {
|
609 |
-
$path = $
|
|
|
610 |
if ( file_exists( $path ) ) {
|
611 |
$this->_main_array_options = array_merge( $this->_main_array_options, include $path );
|
612 |
}
|
@@ -854,36 +861,24 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
854 |
/**
|
855 |
* Show a box panel with specific content in two columns as a new woocommerce type
|
856 |
*
|
|
|
|
|
857 |
* @param array $args
|
858 |
*
|
859 |
* @return void
|
860 |
-
* @since 1.0
|
861 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
862 |
*/
|
863 |
public static function add_videobox( $args = array() ) {
|
864 |
-
|
865 |
-
extract( $args );
|
866 |
-
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/videobox.php' );
|
867 |
-
}
|
868 |
}
|
869 |
|
870 |
/**
|
871 |
* Fire the action to print the custom tab
|
872 |
*
|
|
|
873 |
* @return void
|
874 |
-
* @since 1.0
|
875 |
-
* @author Antonino Scarfì <antonino.scarfi@yithemes.com>
|
876 |
*/
|
877 |
public function print_video_box() {
|
878 |
-
$file = $this->settings[ 'options-path' ] . '/video-box.php';
|
879 |
-
|
880 |
-
if ( !file_exists( $file ) ) {
|
881 |
-
return;
|
882 |
-
}
|
883 |
-
|
884 |
-
$args = include_once( $file );
|
885 |
|
886 |
-
$this->add_videobox( $args );
|
887 |
}
|
888 |
|
889 |
/**
|
274 |
if ( isset( $option[ 'type' ] ) && in_array( $option[ 'type' ], array( 'checkbox', 'onoff' ) ) ) {
|
275 |
$value = yith_plugin_fw_is_true( $value ) ? 'yes' : 'no';
|
276 |
}
|
277 |
+
|
278 |
+
if ( !empty( $option[ 'yith-sanitize-callback' ] ) && is_callable( $option[ 'yith-sanitize-callback' ] ) ) {
|
279 |
+
$value = call_user_func( $option[ 'yith-sanitize-callback' ], $value );
|
280 |
+
}
|
281 |
+
|
282 |
$valid_input[ $option[ 'id' ] ] = $value;
|
283 |
}
|
284 |
}
|
368 |
return;
|
369 |
}
|
370 |
?>
|
|
|
371 |
<?php
|
372 |
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
|
373 |
?>
|
609 |
return $this->_main_array_options;
|
610 |
}
|
611 |
|
612 |
+
$options_path = $this->settings[ 'options-path' ];
|
613 |
+
|
614 |
foreach ( $this->settings[ 'admin-tabs' ] as $item => $v ) {
|
615 |
+
$path = $options_path . '/' . $item . '-options.php';
|
616 |
+
$path = apply_filters( 'yith_plugin_panel_item_options_path', $path, $options_path, $item, $this );
|
617 |
if ( file_exists( $path ) ) {
|
618 |
$this->_main_array_options = array_merge( $this->_main_array_options, include $path );
|
619 |
}
|
861 |
/**
|
862 |
* Show a box panel with specific content in two columns as a new woocommerce type
|
863 |
*
|
864 |
+
* @deprecated 3.0.12 Do nothing! Method left to prevent Fatal Error if called directly
|
865 |
+
*
|
866 |
* @param array $args
|
867 |
*
|
868 |
* @return void
|
|
|
|
|
869 |
*/
|
870 |
public static function add_videobox( $args = array() ) {
|
871 |
+
|
|
|
|
|
|
|
872 |
}
|
873 |
|
874 |
/**
|
875 |
* Fire the action to print the custom tab
|
876 |
*
|
877 |
+
* @deprecated 3.0.12 Do nothing! Method left to prevent Fatal Error if called directly
|
878 |
* @return void
|
|
|
|
|
879 |
*/
|
880 |
public function print_video_box() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
881 |
|
|
|
882 |
}
|
883 |
|
884 |
/**
|
plugin-fw/lib/yit-plugin-subpanel.php
CHANGED
@@ -139,7 +139,6 @@ if ( !class_exists( 'YIT_Plugin_SubPanel' ) ) {
|
|
139 |
return;
|
140 |
}
|
141 |
?>
|
142 |
-
<?php $this->print_video_box(); ?>
|
143 |
<?php
|
144 |
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
|
145 |
?>
|
139 |
return;
|
140 |
}
|
141 |
?>
|
|
|
142 |
<?php
|
143 |
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
|
144 |
?>
|
plugin-fw/lib/yit-upgrade.php
CHANGED
@@ -62,6 +62,40 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
62 |
$this->_package_url = defined( 'YIT_LICENCE_DEBUG_LOCALHOST' ) ? YIT_LICENCE_DEBUG_LOCALHOST : 'http://dev.yithemes.com';
|
63 |
add_filter( 'block_local_requests', '__return_false' );
|
64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
|
67 |
/**
|
@@ -89,36 +123,49 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
89 |
'slug' => $plugin_slug,
|
90 |
);
|
91 |
|
92 |
-
|
93 |
-
if (
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
$
|
102 |
-
if (
|
103 |
-
$
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
if ( $plugin_remote_info ) {
|
109 |
-
$info[ 'Latest' ] = (string) $plugin_remote_info->latest;
|
110 |
-
$info[ 'changelog' ] = (string) $plugin_remote_info->changelog;
|
111 |
YIT_Plugin_Licence()->check( $plugin_slug, false );
|
112 |
-
set_transient( $transient, $info, DAY_IN_SECONDS );
|
113 |
-
} else {
|
114 |
-
error_log( sprintf( 'SimpleXML error in %s:%s [plugin slug: %s]',
|
115 |
-
__FILE__, __FUNCTION__, $plugin_slug ) );
|
116 |
}
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
|
|
|
|
118 |
}
|
119 |
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
add_action( 'admin_enqueue_scripts', array( $this, 'multisite_updater_script' ) );
|
123 |
}
|
124 |
}
|
@@ -132,7 +179,6 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
132 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
133 |
*/
|
134 |
public function multisite_updater_script() {
|
135 |
-
|
136 |
$update_url = $changelogs = $details_url = array();
|
137 |
$strings = array(
|
138 |
'new_version' => __( 'There is a new version of %plugin_name% available.', 'yith-plugin-fw' ),
|
@@ -145,10 +191,7 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
145 |
|
146 |
foreach ( $this->_plugins as $init => $info ) {
|
147 |
$update_url[ $init ] = wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin-multisite&plugin=' ) . $init, 'upgrade-plugin-multisite_' . $init );
|
148 |
-
$
|
149 |
-
$details_url[ $init ] = '#TB_inline' . esc_url( add_query_arg( array( 'width' => 722, 'height' => 914, 'inlineId' => $changelog_id ), '' ) );
|
150 |
-
$plugin_changelog = isset( $this->_plugins[ $init ][ 'info' ][ 'changelog' ] ) ? $this->_plugins[ $init ][ 'info' ][ 'changelog' ] : '';
|
151 |
-
$changelogs[ $init ] = $this->in_theme_update_message( $this->_plugins[ $init ], $plugin_changelog, $changelog_id, false );
|
152 |
}
|
153 |
|
154 |
$localize_script_args = array(
|
@@ -158,7 +201,6 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
158 |
'update_url' => $update_url,
|
159 |
'details_url' => $details_url,
|
160 |
'strings' => $strings,
|
161 |
-
'changelogs' => $changelogs
|
162 |
);
|
163 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
164 |
yit_enqueue_script( 'yit-multisite-updater', YIT_CORE_PLUGIN_URL . '/assets/js/multisite-updater' . $suffix . '.js', array( 'jquery' ), false, true );
|
@@ -432,7 +474,7 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
432 |
$r = $current->response[ $init ];
|
433 |
|
434 |
$changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
|
435 |
-
$details_url = '
|
436 |
|
437 |
/**
|
438 |
* @see wp_plugin_update_rows() in wp-single\wp-admin\includes\update.php
|
@@ -493,14 +535,12 @@ if ( !class_exists( 'YIT_Upgrade' ) ) {
|
|
493 |
foreach ( $this->_plugins as $init => $plugin ) {
|
494 |
remove_action( "after_plugin_row_{$init}", 'wp_plugin_update_row', 10 );
|
495 |
add_action( "after_plugin_row_{$init}", array( $this, 'plugin_update_row' ) );
|
496 |
-
add_action( "in_theme_update_message-{$init}", array( $this, 'in_theme_update_message' ), 10, 3 );
|
497 |
}
|
498 |
}
|
499 |
|
500 |
public function in_theme_update_message( $plugin, $changelog, $changelog_id, $echo = true ) {
|
501 |
-
|
502 |
-
$res
|
503 |
-
= "<div id='{$changelog_id}' class='yit-plugin-changelog-wrapper'>
|
504 |
<div class='yit-plugin-changelog'>
|
505 |
<h2 class='yit-plugin-changelog-title'>{$plugin['info']['Name']} - Changelog</h2>
|
506 |
<p>{$changelog}</p>
|
62 |
$this->_package_url = defined( 'YIT_LICENCE_DEBUG_LOCALHOST' ) ? YIT_LICENCE_DEBUG_LOCALHOST : 'http://dev.yithemes.com';
|
63 |
add_filter( 'block_local_requests', '__return_false' );
|
64 |
}
|
65 |
+
|
66 |
+
add_action( 'install_plugins_pre_plugin-information', array( $this, 'show_changelog_for_premium_plugins' ) );
|
67 |
+
add_action( 'wp_ajax_yith_plugin_fw_get_premium_changelog', array( $this, 'show_changelog_for_premium_plugins' ) );
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* show changelog for premium plugins
|
72 |
+
*
|
73 |
+
* @since 3.0.14
|
74 |
+
*/
|
75 |
+
public function show_changelog_for_premium_plugins() {
|
76 |
+
if ( isset( $_GET[ 'plugin' ] ) && isset( $_GET[ 'section' ] ) && 'changelog' === $_GET[ 'section' ] ) {
|
77 |
+
$plugin_init = $_GET[ 'plugin' ];
|
78 |
+
if ( isset( $this->_plugins[ $plugin_init ] ) ) {
|
79 |
+
// this is YITH Premium Plugin
|
80 |
+
if ( !empty( $this->_plugins[ $plugin_init ][ 'info' ][ 'changelog' ] ) ) {
|
81 |
+
$plugin_name = $this->_plugins[ $plugin_init ][ 'info' ][ 'Name' ];
|
82 |
+
$changelog = $this->_plugins[ $plugin_init ][ 'info' ][ 'changelog' ];
|
83 |
+
$template = YIT_CORE_PLUGIN_TEMPLATE_PATH . '/upgrade/changelog.php';
|
84 |
+
if ( file_exists( $template ) ) {
|
85 |
+
include( $template );
|
86 |
+
}
|
87 |
+
die();
|
88 |
+
}
|
89 |
+
$error = __( 'An unexpected error occurred, please try again later. Thanks!', 'yith-plugin-fw' );
|
90 |
+
$template = YIT_CORE_PLUGIN_TEMPLATE_PATH . '/upgrade/error.php';
|
91 |
+
if ( file_exists( $template ) ) {
|
92 |
+
include( $template );
|
93 |
+
} else {
|
94 |
+
echo "<p>$error</p>";
|
95 |
+
}
|
96 |
+
die();
|
97 |
+
}
|
98 |
+
}
|
99 |
}
|
100 |
|
101 |
/**
|
123 |
'slug' => $plugin_slug,
|
124 |
);
|
125 |
|
126 |
+
$transient = 'yith_register_' . md5( $plugin_slug );
|
127 |
+
if ( apply_filters( 'yith_register_delete_transient', false ) ) {
|
128 |
+
delete_transient( $transient );
|
129 |
+
}
|
130 |
+
$info = get_transient( $transient );
|
131 |
+
if ( false === $info || apply_filters( 'yith_register_delete_transient', false ) ) {
|
132 |
+
$xml = str_replace( '%plugin_slug%', $plugin_slug, $this->_xml );
|
133 |
+
$remote_xml = wp_remote_get( $xml );
|
134 |
+
|
135 |
+
$error = false;
|
136 |
+
if ( !is_wp_error( $remote_xml ) && isset( $remote_xml[ 'response' ][ 'code' ] ) && '200' == $remote_xml[ 'response' ][ 'code' ] ) {
|
137 |
+
$plugin_remote_info = @simplexml_load_string( $remote_xml[ 'body' ] );
|
138 |
+
if ( $plugin_remote_info ) {
|
139 |
+
$info[ 'Latest' ] = (string) $plugin_remote_info->latest;
|
140 |
+
$info[ 'changelog' ] = (string) $plugin_remote_info->changelog;
|
141 |
+
if ( is_multisite() && current_user_can( 'update_plugins' ) ) {
|
|
|
|
|
|
|
142 |
YIT_Plugin_Licence()->check( $plugin_slug, false );
|
|
|
|
|
|
|
|
|
143 |
}
|
144 |
+
set_transient( $transient, $info, DAY_IN_SECONDS );
|
145 |
+
} else {
|
146 |
+
$error = true;
|
147 |
+
error_log( sprintf( 'SimpleXML error in %s:%s [plugin slug: %s]',
|
148 |
+
__FILE__, __FUNCTION__, $plugin_slug ) );
|
149 |
}
|
150 |
+
} else {
|
151 |
+
$error = true;
|
152 |
}
|
153 |
|
154 |
+
if ( $error ) {
|
155 |
+
// If error, set empty value in the transient to prevent multiple requests
|
156 |
+
$info = array( 'Latest' => '', 'changelog' => '' );
|
157 |
+
set_transient( $transient, $info, HOUR_IN_SECONDS );
|
158 |
+
}
|
159 |
+
}
|
160 |
+
|
161 |
+
$this->_plugins[ $plugin_init ][ 'info' ][ 'Latest' ] = $info[ 'Latest' ];
|
162 |
+
$this->_plugins[ $plugin_init ][ 'info' ][ 'changelog' ] = $info[ 'changelog' ];
|
163 |
+
|
164 |
+
/* === HOOKS === */
|
165 |
+
if ( !is_multisite() || is_plugin_active_for_network( $plugin_init ) ) {
|
166 |
+
add_action( 'load-plugins.php', array( $this, 'remove_wp_plugin_update_row' ), 25 );
|
167 |
+
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
|
168 |
+
} else if ( is_multisite() && current_user_can( 'update_plugins' ) ) {
|
169 |
add_action( 'admin_enqueue_scripts', array( $this, 'multisite_updater_script' ) );
|
170 |
}
|
171 |
}
|
179 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
180 |
*/
|
181 |
public function multisite_updater_script() {
|
|
|
182 |
$update_url = $changelogs = $details_url = array();
|
183 |
$strings = array(
|
184 |
'new_version' => __( 'There is a new version of %plugin_name% available.', 'yith-plugin-fw' ),
|
191 |
|
192 |
foreach ( $this->_plugins as $init => $info ) {
|
193 |
$update_url[ $init ] = wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin-multisite&plugin=' ) . $init, 'upgrade-plugin-multisite_' . $init );
|
194 |
+
$details_url[ $init ] = admin_url( 'admin-ajax.php?action=yith_plugin_fw_get_premium_changelog&tab=plugin-information&plugin=' . $init . '§ion=changelog&TB_iframe=true&width=640&height=662' );
|
|
|
|
|
|
|
195 |
}
|
196 |
|
197 |
$localize_script_args = array(
|
201 |
'update_url' => $update_url,
|
202 |
'details_url' => $details_url,
|
203 |
'strings' => $strings,
|
|
|
204 |
);
|
205 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
206 |
yit_enqueue_script( 'yit-multisite-updater', YIT_CORE_PLUGIN_URL . '/assets/js/multisite-updater' . $suffix . '.js', array( 'jquery' ), false, true );
|
474 |
$r = $current->response[ $init ];
|
475 |
|
476 |
$changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
|
477 |
+
$details_url = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $init . '§ion=changelog&TB_iframe=true&width=640&height=662' );
|
478 |
|
479 |
/**
|
480 |
* @see wp_plugin_update_rows() in wp-single\wp-admin\includes\update.php
|
535 |
foreach ( $this->_plugins as $init => $plugin ) {
|
536 |
remove_action( "after_plugin_row_{$init}", 'wp_plugin_update_row', 10 );
|
537 |
add_action( "after_plugin_row_{$init}", array( $this, 'plugin_update_row' ) );
|
538 |
+
//add_action( "in_theme_update_message-{$init}", array( $this, 'in_theme_update_message' ), 10, 3 );
|
539 |
}
|
540 |
}
|
541 |
|
542 |
public function in_theme_update_message( $plugin, $changelog, $changelog_id, $echo = true ) {
|
543 |
+
$res = "<div id='{$changelog_id}' class='yit-plugin-changelog-wrapper'>
|
|
|
|
|
544 |
<div class='yit-plugin-changelog'>
|
545 |
<h2 class='yit-plugin-changelog-title'>{$plugin['info']['Name']} - Changelog</h2>
|
546 |
<p>{$changelog}</p>
|
plugin-fw/lib/yit-video.php
CHANGED
@@ -135,6 +135,7 @@ if ( ! class_exists( 'YIT_Video' ) ) {
|
|
135 |
public static function video_id_by_url( $url ) {
|
136 |
$parsed = parse_url( esc_url( $url ) );
|
137 |
|
|
|
138 |
if ( ! isset( $parsed['host'] ) ) {
|
139 |
return false;
|
140 |
}
|
@@ -150,7 +151,8 @@ if ( ! class_exists( 'YIT_Video' ) ) {
|
|
150 |
|
151 |
case 'www.vimeo.com' :
|
152 |
case 'vimeo.com' :
|
153 |
-
preg_match( '/http(s)?:\/\/(\w+.)?vimeo\.com\/(
|
|
|
154 |
$id = trim( $matches[4], '/' );
|
155 |
return "vimeo:$id";
|
156 |
|
135 |
public static function video_id_by_url( $url ) {
|
136 |
$parsed = parse_url( esc_url( $url ) );
|
137 |
|
138 |
+
|
139 |
if ( ! isset( $parsed['host'] ) ) {
|
140 |
return false;
|
141 |
}
|
151 |
|
152 |
case 'www.vimeo.com' :
|
153 |
case 'vimeo.com' :
|
154 |
+
preg_match( '/http(s)?:\/\/(\w+.)?vimeo\.com\/(.*\/)?([0-9]+)/', $url, $matches );
|
155 |
+
|
156 |
$id = trim( $matches[4], '/' );
|
157 |
return "vimeo:$id";
|
158 |
|
plugin-fw/licence/lib/yit-licence.php
CHANGED
@@ -198,8 +198,8 @@ if ( !class_exists( 'YIT_Licence' ) ) {
|
|
198 |
)
|
199 |
);
|
200 |
|
201 |
-
/* Enqueue Scripts only in Licence Activation page */
|
202 |
-
if ( strpos( get_current_screen()->id, 'yith_plugins_activation' ) !== false ) {
|
203 |
wp_enqueue_script( 'yit-licence' );
|
204 |
wp_enqueue_style( 'yit-theme-licence' );
|
205 |
}
|
198 |
)
|
199 |
);
|
200 |
|
201 |
+
/* Enqueue Scripts only in Licence Activation page of plugins and themes */
|
202 |
+
if ( strpos( get_current_screen()->id, 'yith_plugins_activation' ) !== false || strpos( get_current_screen()->id, 'yit_panel_license' ) !== false ) {
|
203 |
wp_enqueue_script( 'yit-licence' );
|
204 |
wp_enqueue_style( 'yit-theme-licence' );
|
205 |
}
|
plugin-fw/licence/lib/yit-plugin-licence.php
CHANGED
@@ -105,7 +105,7 @@ if ( !class_exists( 'YIT_Plugin_Licence' ) ) {
|
|
105 |
<div class="notice notice-error">
|
106 |
<p><strong>Warning!</strong> You didn't set license key for the following products:
|
107 |
<?php echo $product_list ?>
|
108 |
-
which means you're missing out on updates and support. <a href='<?php echo $activation_url ?>'>Enter your license key</a
|
109 |
</div>
|
110 |
<?php
|
111 |
}
|
105 |
<div class="notice notice-error">
|
106 |
<p><strong>Warning!</strong> You didn't set license key for the following products:
|
107 |
<?php echo $product_list ?>
|
108 |
+
which means you're missing out on updates and support. <a href='<?php echo $activation_url ?>'>Enter your license key</a>, please.</p>
|
109 |
</div>
|
110 |
<?php
|
111 |
}
|
plugin-fw/templates/fields/onoff.php
CHANGED
@@ -18,4 +18,9 @@ extract( $field );
|
|
18 |
<div class="yith-plugin-fw-onoff-container">
|
19 |
<input type="checkbox" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php checked( yith_plugin_fw_is_true( $value ) ) ?> class="on_off" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> />
|
20 |
<span class="yith-plugin-fw-onoff"> </span>
|
21 |
-
</div>
|
|
|
|
|
|
|
|
|
|
18 |
<div class="yith-plugin-fw-onoff-container">
|
19 |
<input type="checkbox" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php checked( yith_plugin_fw_is_true( $value ) ) ?> class="on_off" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> />
|
20 |
<span class="yith-plugin-fw-onoff"> </span>
|
21 |
+
</div>
|
22 |
+
<?php
|
23 |
+
if ( isset( $field[ 'desc-inline' ] ) ) {
|
24 |
+
echo "<span class='description inline'>" . $field[ 'desc-inline' ] . "</span>";
|
25 |
+
}
|
26 |
+
?>
|
plugin-fw/templates/fields/radio.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file belongs to the YIT Plugin Framework.
|
4 |
+
*
|
5 |
+
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @var array $field
|
11 |
+
*/
|
12 |
+
|
13 |
+
/** @since 3.0.13 */
|
14 |
+
|
15 |
+
!defined( 'ABSPATH' ) && exit; // Exit if accessed directly
|
16 |
+
|
17 |
+
extract( $field );
|
18 |
+
|
19 |
+
$class = isset( $class ) ? $class : '';
|
20 |
+
$class = 'yith-plugin-fw-radio ' . $class;
|
21 |
+
?>
|
22 |
+
<div class="<?php echo $class ?>" id="<?php echo $id ?>"
|
23 |
+
<?php echo $custom_attributes ?>
|
24 |
+
<?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?> value="<?php echo $value ?>">
|
25 |
+
<?php foreach ( $options as $key => $label ) :
|
26 |
+
$radio_id = sanitize_key( $id . '-' . $key );
|
27 |
+
?>
|
28 |
+
<div class="yith-plugin-fw-radio__row">
|
29 |
+
<input type="radio" id="<?php echo $radio_id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $key ) ?>" <?php checked( $key, $value ); ?> />
|
30 |
+
<label for="<?php echo $radio_id ?>"><?php echo $label ?></label>
|
31 |
+
</div>
|
32 |
+
<?php endforeach; ?>
|
33 |
+
</div>
|
plugin-fw/templates/panel/videobox.php
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* This file belongs to the YIT Plugin Framework.
|
4 |
-
*
|
5 |
-
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
-
* that is bundled with this package in the file LICENSE.txt.
|
7 |
-
* It is also available through the world-wide-web at this URL:
|
8 |
-
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
-
*/
|
10 |
-
|
11 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Example to call this template
|
17 |
-
*
|
18 |
-
* 'section_general_settings_videobox' => array(
|
19 |
-
* 'name' => __( 'Title of box', 'yith-plugin-fw' ),
|
20 |
-
* 'type' => 'videobox',
|
21 |
-
* 'default' => array(
|
22 |
-
* 'plugin_name' => __( 'Plugin Name', 'yith-plugin-fw' ),
|
23 |
-
* 'title_first_column' => __( 'Title first column', 'yith-plugin-fw' ),
|
24 |
-
* 'description_first_column' => __('Lorem ipsum ... ', 'yith-plugin-fw'),
|
25 |
-
* 'video' => array(
|
26 |
-
* 'video_id' => 'vimeo_code',
|
27 |
-
* 'video_image_url' => '#',
|
28 |
-
* 'video_description' => __( 'Lorem ipsum dolor sit amet....', 'yith-plugin-fw' ),
|
29 |
-
* ),
|
30 |
-
* 'title_second_column' => __( 'Title first column', 'yith-plugin-fw' ),
|
31 |
-
* 'description_second_column' => __('Lorem ipsum dolor sit amet.... ', 'yith-plugin-fw'),
|
32 |
-
* 'button' => array(
|
33 |
-
* 'href' => 'http://www.yithemes.com',
|
34 |
-
* 'title' => 'Get Support and Pro Features'
|
35 |
-
* )
|
36 |
-
* ),
|
37 |
-
* 'id' => 'yith_wcas_general_videobox'
|
38 |
-
* ),
|
39 |
-
*/
|
40 |
-
?>
|
41 |
-
<div id="normal-sortables" class="meta-box-sortables yith-videobox-wrapper">
|
42 |
-
<div id="<?php echo $id ?>" class="postbox">
|
43 |
-
<h3><span><?php echo $name ?></span></h3>
|
44 |
-
<div class="inside">
|
45 |
-
<div class="yith_videobox">
|
46 |
-
<div class="column"><h2><?php echo $default['title_first_column'] ?></h2>
|
47 |
-
<?php if ( isset( $default['video'] ) && !empty( $default['video'] ) ): ?>
|
48 |
-
<a class="yith-video-link" href="#" data-video-id="yith-video-iframe">
|
49 |
-
<img src="<?php echo $default['video']['video_image_url'] ?>">
|
50 |
-
</a>
|
51 |
-
|
52 |
-
<p class="yit-video-description">
|
53 |
-
<?php echo $default['video']['video_description'] ?>
|
54 |
-
</p>
|
55 |
-
|
56 |
-
<p class="yith-video-iframe">
|
57 |
-
<iframe src="//player.vimeo.com/video/<?php echo $default['video']['video_id'] ?>?title=0&byline=0&portrait=0" width="853" height="480" frameborder="0"></iframe>
|
58 |
-
</p>
|
59 |
-
<?php endif ?>
|
60 |
-
<?php if ( isset( $default['image'] ) && !empty( $default['image'] ) ): ?>
|
61 |
-
<a href="<?php echo $default['image']['image_link'] ?>" target="_blank" class="yith-image-frame">
|
62 |
-
<img src="<?php echo $default['image']['image_url'] ?>">
|
63 |
-
</a>
|
64 |
-
<?php endif ?>
|
65 |
-
<?php if ( isset( $default['description_first_column'] ) && $default['description_first_column'] != '' ): ?>
|
66 |
-
<p><?php echo $default['description_first_column'] ?></p>
|
67 |
-
<?php endif ?>
|
68 |
-
</div>
|
69 |
-
<div class="column two">
|
70 |
-
<h2><?php echo $default['title_second_column'] ?>?</h2>
|
71 |
-
|
72 |
-
<p><?php echo $default['description_second_column'] ?></p>
|
73 |
-
|
74 |
-
<?php if ( isset( $default['button'] ) && !empty( $default['button'] ) ): ?>
|
75 |
-
<p>
|
76 |
-
<a class="button-primary" href="<?php echo $default['button']['href'] ?>" target="_blank"><?php echo $default['button']['title'] ?></a>
|
77 |
-
</p>
|
78 |
-
<?php endif ?>
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
</div>
|
82 |
-
</div>
|
83 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/privacy/html-policy-content.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var array $sections
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
<div class="wp-suggested-text">
|
7 |
+
<?php do_action( 'yith_plugin_fw_privacy_guide_content_before' ); ?>
|
8 |
+
|
9 |
+
<?php
|
10 |
+
foreach ( $sections as $key => $section ) {
|
11 |
+
$action = "yith_plugin_fw_privacy_guide_content_{$key}";
|
12 |
+
$content = apply_filters( 'yith_plugin_fw_privacy_guide_content', '', $key );
|
13 |
+
|
14 |
+
if ( has_action( $action ) || !empty( $section[ 'tutorial' ] ) || !empty( $section[ 'description' ] ) || $content ) {
|
15 |
+
if ( !empty( $section[ 'title' ] ) ) {
|
16 |
+
echo "<h2>{$section['title']}</h2>";
|
17 |
+
}
|
18 |
+
|
19 |
+
if ( !empty( $section[ 'tutorial' ] ) ) {
|
20 |
+
echo "<p class='privacy-policy-tutorial'>{$section['tutorial']}</p>";
|
21 |
+
}
|
22 |
+
|
23 |
+
if ( !empty( $section[ 'description' ] ) ) {
|
24 |
+
echo "<p>{$section['description']}</p>";
|
25 |
+
}
|
26 |
+
|
27 |
+
if ( !empty( $content ) ) {
|
28 |
+
echo $content;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
do_action( $action );
|
33 |
+
}
|
34 |
+
?>
|
35 |
+
|
36 |
+
<?php do_action( 'yith_plugin_fw_privacy_guide_content_after' ); ?>
|
37 |
+
</div>
|
plugin-fw/templates/upgrade/changelog.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file belongs to the YIT Plugin Framework.
|
4 |
+
*
|
5 |
+
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @var string $plugin_name
|
11 |
+
* @var string $changelog
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
16 |
+
<head>
|
17 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
18 |
+
<meta name="viewport" content="width=device-width">
|
19 |
+
<meta name="robots" content="noindex,follow">
|
20 |
+
<title><?php echo $plugin_name ?> - Changelog</title>
|
21 |
+
<style type="text/css">
|
22 |
+
body {
|
23 |
+
background : #ffffff;
|
24 |
+
color : #444;
|
25 |
+
font-family : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
26 |
+
font-size : 13px;
|
27 |
+
line-height : 1.4em;
|
28 |
+
padding : 10px;
|
29 |
+
}
|
30 |
+
|
31 |
+
h2.yith-plugin-changelog-title {
|
32 |
+
text-transform : uppercase;
|
33 |
+
font-size : 17px;
|
34 |
+
}
|
35 |
+
|
36 |
+
ul {
|
37 |
+
list-style : none;
|
38 |
+
padding : 0;
|
39 |
+
}
|
40 |
+
|
41 |
+
li {
|
42 |
+
display : list-item;
|
43 |
+
margin-bottom : 6px;
|
44 |
+
}
|
45 |
+
</style>
|
46 |
+
</head>
|
47 |
+
<body>
|
48 |
+
<h2 class='yith-plugin-changelog-title'><?php echo $plugin_name ?> - Changelog</h2>
|
49 |
+
<div class='yith-plugin-changelog'><?php echo $changelog ?></div>
|
50 |
+
</body>
|
51 |
+
</html>
|
plugin-fw/templates/upgrade/error.php
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file belongs to the YIT Plugin Framework.
|
4 |
+
*
|
5 |
+
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @var string $plugin_name
|
11 |
+
* @var string $changelog
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
16 |
+
<head>
|
17 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
18 |
+
<meta name="viewport" content="width=device-width">
|
19 |
+
<meta name="robots" content="noindex,follow">
|
20 |
+
<title>WordPress › Error</title>
|
21 |
+
<style type="text/css">
|
22 |
+
html {
|
23 |
+
background : #f1f1f1;
|
24 |
+
}
|
25 |
+
|
26 |
+
.container {
|
27 |
+
background : #fff;
|
28 |
+
color : #444;
|
29 |
+
font-family : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
30 |
+
margin : 2em auto;
|
31 |
+
padding : 1em 2em;
|
32 |
+
max-width : 700px;
|
33 |
+
-webkit-box-shadow : 0 1px 3px rgba(0, 0, 0, 0.13);
|
34 |
+
box-shadow : 0 1px 3px rgba(0, 0, 0, 0.13);
|
35 |
+
}
|
36 |
+
|
37 |
+
h1 {
|
38 |
+
border-bottom : 1px solid #dadada;
|
39 |
+
clear : both;
|
40 |
+
color : #666;
|
41 |
+
font-size : 24px;
|
42 |
+
margin : 30px 0 0 0;
|
43 |
+
padding : 0;
|
44 |
+
padding-bottom : 7px;
|
45 |
+
}
|
46 |
+
|
47 |
+
#error {
|
48 |
+
margin-top : 50px;
|
49 |
+
}
|
50 |
+
|
51 |
+
#error p {
|
52 |
+
font-size : 14px;
|
53 |
+
line-height : 1.5;
|
54 |
+
margin : 25px 0 20px;
|
55 |
+
}
|
56 |
+
|
57 |
+
#error code {
|
58 |
+
font-family : Consolas, Monaco, monospace;
|
59 |
+
}
|
60 |
+
|
61 |
+
ul li {
|
62 |
+
margin-bottom : 10px;
|
63 |
+
font-size : 14px;
|
64 |
+
}
|
65 |
+
|
66 |
+
a {
|
67 |
+
color : #0073aa;
|
68 |
+
}
|
69 |
+
|
70 |
+
a:hover,
|
71 |
+
a:active {
|
72 |
+
color : #00a0d2;
|
73 |
+
}
|
74 |
+
|
75 |
+
a:focus {
|
76 |
+
color : #124964;
|
77 |
+
-webkit-box-shadow : 0 0 0 1px #5b9dd9,
|
78 |
+
0 0 2px 1px rgba(30, 140, 190, .8);
|
79 |
+
box-shadow : 0 0 0 1px #5b9dd9,
|
80 |
+
0 0 2px 1px rgba(30, 140, 190, .8);
|
81 |
+
outline : none;
|
82 |
+
}
|
83 |
+
|
84 |
+
.button {
|
85 |
+
background : #f7f7f7;
|
86 |
+
border : 1px solid #ccc;
|
87 |
+
color : #555;
|
88 |
+
display : inline-block;
|
89 |
+
text-decoration : none;
|
90 |
+
font-size : 13px;
|
91 |
+
line-height : 26px;
|
92 |
+
height : 28px;
|
93 |
+
margin : 0;
|
94 |
+
padding : 0 10px 1px;
|
95 |
+
cursor : pointer;
|
96 |
+
-webkit-border-radius : 3px;
|
97 |
+
-webkit-appearance : none;
|
98 |
+
border-radius : 3px;
|
99 |
+
white-space : nowrap;
|
100 |
+
-webkit-box-sizing : border-box;
|
101 |
+
-moz-box-sizing : border-box;
|
102 |
+
box-sizing : border-box;
|
103 |
+
|
104 |
+
-webkit-box-shadow : 0 1px 0 #ccc;
|
105 |
+
box-shadow : 0 1px 0 #ccc;
|
106 |
+
vertical-align : top;
|
107 |
+
}
|
108 |
+
|
109 |
+
.button.button-large {
|
110 |
+
height : 30px;
|
111 |
+
line-height : 28px;
|
112 |
+
padding : 0 12px 2px;
|
113 |
+
}
|
114 |
+
|
115 |
+
.button:hover,
|
116 |
+
.button:focus {
|
117 |
+
background : #fafafa;
|
118 |
+
border-color : #999;
|
119 |
+
color : #23282d;
|
120 |
+
}
|
121 |
+
|
122 |
+
.button:focus {
|
123 |
+
border-color : #5b9dd9;
|
124 |
+
-webkit-box-shadow : 0 0 3px rgba(0, 115, 170, .8);
|
125 |
+
box-shadow : 0 0 3px rgba(0, 115, 170, .8);
|
126 |
+
outline : none;
|
127 |
+
}
|
128 |
+
|
129 |
+
.button:active {
|
130 |
+
background : #eee;
|
131 |
+
border-color : #999;
|
132 |
+
-webkit-box-shadow : inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
|
133 |
+
box-shadow : inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
|
134 |
+
-webkit-transform : translateY(1px);
|
135 |
+
-ms-transform : translateY(1px);
|
136 |
+
transform : translateY(1px);
|
137 |
+
}
|
138 |
+
|
139 |
+
</style>
|
140 |
+
</head>
|
141 |
+
<body>
|
142 |
+
<div id="error" class="container">
|
143 |
+
<p><?php echo $error ?></p>
|
144 |
+
</div>
|
145 |
+
|
146 |
+
</body>
|
147 |
+
</html>
|
plugin-fw/yit-plugin.php
CHANGED
@@ -37,6 +37,8 @@ include_once( 'lib/yit-pointers.php');
|
|
37 |
include_once( 'lib/yit-icons.php');
|
38 |
include_once( 'lib/yit-assets.php');
|
39 |
include_once( 'lib/yit-debug.php');
|
|
|
|
|
40 |
|
41 |
// load from theme folder...
|
42 |
load_textdomain( 'yith-plugin-fw', get_template_directory() . '/core/plugin-fw/yith-plugin-fw-' . apply_filters( 'plugin_locale', get_locale(), 'yith-plugin-fw' ) . '.mo' )
|
37 |
include_once( 'lib/yit-icons.php');
|
38 |
include_once( 'lib/yit-assets.php');
|
39 |
include_once( 'lib/yit-debug.php');
|
40 |
+
include_once( 'lib/privacy/yit-privacy.php' );
|
41 |
+
include_once( 'lib/privacy/yit-privacy-plugin-abstract.php' );
|
42 |
|
43 |
// load from theme folder...
|
44 |
load_textdomain( 'yith-plugin-fw', get_template_directory() . '/core/plugin-fw/yith-plugin-fw-' . apply_filters( 'plugin_locale', get_locale(), 'yith-plugin-fw' ) . '.mo' )
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
screenshot-3.png
ADDED
Binary file
|
screenshot-4.png
ADDED
Binary file
|
templates/wishlist-view.php
CHANGED
@@ -135,7 +135,7 @@ if ( ! defined( 'YITH_WCWL' ) ) {
|
|
135 |
$added_items[] = $item['prod_id'];
|
136 |
$product = wc_get_product( $item['prod_id'] );
|
137 |
$availability = $product->get_availability();
|
138 |
-
$stock_status = $availability['class'];
|
139 |
|
140 |
if( $product && $product->exists() ) :
|
141 |
?>
|
@@ -189,7 +189,7 @@ if ( ! defined( 'YITH_WCWL' ) ) {
|
|
189 |
endif;
|
190 |
?>
|
191 |
|
192 |
-
|
193 |
<?php if( $show_add_to_cart && isset( $stock_status ) && $stock_status != 'out-of-stock' ): ?>
|
194 |
<?php woocommerce_template_loop_add_to_cart(); ?>
|
195 |
<?php endif ?>
|
135 |
$added_items[] = $item['prod_id'];
|
136 |
$product = wc_get_product( $item['prod_id'] );
|
137 |
$availability = $product->get_availability();
|
138 |
+
$stock_status = isset( $availability['class'] ) ? $availability['class'] : false;
|
139 |
|
140 |
if( $product && $product->exists() ) :
|
141 |
?>
|
189 |
endif;
|
190 |
?>
|
191 |
|
192 |
+
<!-- Add to cart button -->
|
193 |
<?php if( $show_add_to_cart && isset( $stock_status ) && $stock_status != 'out-of-stock' ): ?>
|
194 |
<?php woocommerce_template_loop_add_to_cart(); ?>
|
195 |
<?php endif ?>
|