Custom Product Tabs for WooCommerce - Version 1.6.10

Version Description

  • April 19th, 2019 =
  • Updating WC compatibility.
  • Fixing JS issue with WP backwards compatibility for versions < 4.7.
Download this release

Release Info

Developer yikesitskevin
Plugin Icon 128x128 Custom Product Tabs for WooCommerce
Version 1.6.10
Comparing to
See all releases

Code changes from version 1.6.9 to 1.6.10

js/lity.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Lity - v3.0.0-dev - 2016-11-04
2
- * http://sorgalla.com/lity/
3
- * Copyright (c) 2015-2016 Jan Sorgalla; Licensed MIT */
4
  !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=b(a,require("jquery")):a.lity=b(a,a.jQuery||a.Zepto)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a){var b=C();return O&&a.length?(a.one(O,b.resolve),setTimeout(b.resolve,500)):b.resolve(),b.promise()}function d(a,c,d){if(1===arguments.length)return b.extend({},a);if("string"==typeof c){if("undefined"==typeof d)return"undefined"==typeof a[c]?null:a[c];a[c]=d}else b.extend(a,c);return this}function e(a){var b=a.indexOf("?");b>-1&&(a=a.substr(b+1));for(var c,d=decodeURI(a.split("#")[0]).split("&"),e={},f=0,g=d.length;f<g;f++)d[f]&&(c=d[f].split("="),e[c[0]]=c[1]);return e}function f(a,c){if(!c)return a;if("string"===b.type(c)&&(c=e(c)),a.indexOf("?")>-1){var d=a.split("?");a=d.shift(),c=b.extend({},e(d[0]),c)}return a+"?"+b.param(c)}function g(a,b){var c=a.indexOf("#");return-1===c?b:(c>0&&(a=a.substr(c)),b+a)}function h(a,b,c,d){return b&&b.element().addClass("lity-iframe"),c&&(a=f(a,c)),d&&(a=g(d,a)),'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen src="'+a+'"/></div>'}function i(a){return b('<span class="lity-error"/>').append(a)}function j(a,c){var d=c.opener()&&c.opener().data("lity-desc")||"Image with no description",e=b('<img src="'+a+'" alt="'+d+'"/>'),f=C(),g=function(){f.reject(i("Failed loading image"))};return e.on("load",function(){return 0===this.naturalWidth?g():void f.resolve(e)}).on("error",g),f.promise()}function k(a,c){var d,e,f;try{d=b(a)}catch(a){return!1}return!!d.length&&(e=b('<i style="display:none !important"/>'),f=d.hasClass("lity-hide"),c.element().one("lity:remove",function(){e.before(d).remove(),f&&!d.closest(".lity-content").length&&d.addClass("lity-hide")}),d.removeClass("lity-hide").after(e))}function l(a,b){var c=K.exec(a);return!!c&&h("https://www.youtube"+(c[2]||"")+".com/embed/"+c[4]+"?autoplay=1",b,c[5],a)}function m(a,b){var c=L.exec(a);return!!c&&h("https://player.vimeo.com/video/"+c[3]+"?autoplay=1",b,c[4],a)}function n(a,b){var c=N.exec(a);return!!c&&(0!==a.indexOf("http")&&(a="https:"+a),h("https://www.facebook.com/plugins/video.php?href="+a+"&autoplay=1",b,c[4],a))}function o(a,b){var c=M.exec(a);return!!c&&h("https://www.google."+c[3]+"/maps?"+c[6],b,{output:c[6].indexOf("layer=c")>0?"svembed":"embed"},a)}function p(a,b){return h(a,b)}function q(){return A.documentElement.clientHeight?A.documentElement.clientHeight:Math.round(B.height())}function r(a){var b=w();b&&(27===a.keyCode&&b.close(),9===a.keyCode&&s(a,b))}function s(a,b){var c=b.element().find(H),d=c.index(A.activeElement);a.shiftKey&&d<=0?(c.get(c.length-1).focus(),a.preventDefault()):a.shiftKey||d!==c.length-1||(c.get(0).focus(),a.preventDefault())}function t(){b.each(E,function(a,b){b.resize()})}function u(a){1===E.unshift(a)&&(D.addClass("lity-active"),B.on({resize:t,keydown:r})),b("body > *").not(a.element()).addClass("lity-hidden").each(function(){var a=b(this);void 0===a.data(G)&&a.data(G,a.attr(F)||null)}).attr(F,"true")}function v(a){var c;a.element().attr(F,"true"),1===E.length&&(D.removeClass("lity-active"),B.off({resize:t,keydown:r})),E=b.grep(E,function(b){return a!==b}),c=E.length?E[0].element():b(".lity-hidden"),c.removeClass("lity-hidden").each(function(){var a=b(this),c=a.data(G);c?a.attr(F,c):a.removeAttr(F),a.removeData(G)})}function w(){return 0===E.length?null:E[0]}function x(a,c,d,e){var f,g="inline",h=b.extend({},d);return e&&h[e]?(f=h[e](a,c),g=e):(b.each(["inline","iframe"],function(a,b){delete h[b],h[b]=d[b]}),b.each(h,function(b,d){return!d||(!(!d.test||d.test(a,c))||(f=d(a,c),!1!==f?(g=b,!1):void 0))})),{handler:g,content:f||""}}function y(a,e,f,g){function h(a){k=b(a).css("max-height",q()+"px"),j.find(".lity-loader").each(function(){var a=b(this);c(a).always(function(){a.remove()})}),j.removeClass("lity-loading").find(".lity-content").empty().append(k),m=!0,k.trigger("lity:ready",[l])}var i,j,k,l=this,m=!1,n=!1;e=b.extend({},I,e),j=b(e.template),l.element=function(){return j},l.opener=function(){return f},l.content=function(){return k},l.options=b.proxy(d,l,e),l.handlers=b.proxy(d,l,e.handlers),l.resize=function(){m&&!n&&k.css("max-height",q()+"px").trigger("lity:resize",[l])},l.close=function(){if(m&&!n){n=!0,v(l);var a=C();return g&&b.contains(j[0],A.activeElement)&&g.focus(),k.trigger("lity:close",[l]),j.removeClass("lity-opened").addClass("lity-closed"),c(k.add(j)).always(function(){k.trigger("lity:remove",[l]),j.remove(),j=void 0,a.resolve()}),a.promise()}},i=x(a,l,e.handlers,e.handler),j.attr(F,"false").addClass("lity-loading lity-opened lity-"+i.handler).appendTo("body").focus().on("click","[data-lity-close]",function(a){b(a.target).is("[data-lity-close]")&&l.close()}).trigger("lity:open",[l]),u(l),b.when(i.content).always(h)}function z(a,c,d){a.preventDefault?(a.preventDefault(),d=b(this),a=d.data("lity-target")||d.attr("href")||d.attr("src")):d=b(d);var e=new y(a,b.extend({},d.data("lity-options")||d.data("lity"),c),d,A.activeElement);if(!a.preventDefault)return e}var A=a.document,B=b(a),C=b.Deferred,D=b("html"),E=[],F="aria-hidden",G="lity-"+F,H='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',I={handler:null,handlers:{image:j,inline:k,youtube:l,vimeo:m,googlemaps:o,facebookvideo:n,iframe:p},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},J=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,K=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,L=/(vimeo(pro)?\.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,M=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,N=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,O=function(){var a=A.createElement("div"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return b[c];return!1}();return j.test=function(a){return J.test(a)},z.version="3.0.0-dev",z.options=b.proxy(d,z,I),z.handlers=b.proxy(d,z,I.handlers),z.current=w,z.iframe=h,b(A).on("click.lity","[data-lity]",z),z});
1
+ /*! Lity - v3.0.0-dev - 2016-11-04
2
+ * http://sorgalla.com/lity/
3
+ * Copyright (c) 2015-2016 Jan Sorgalla; Licensed MIT */
4
  !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=b(a,require("jquery")):a.lity=b(a,a.jQuery||a.Zepto)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a){var b=C();return O&&a.length?(a.one(O,b.resolve),setTimeout(b.resolve,500)):b.resolve(),b.promise()}function d(a,c,d){if(1===arguments.length)return b.extend({},a);if("string"==typeof c){if("undefined"==typeof d)return"undefined"==typeof a[c]?null:a[c];a[c]=d}else b.extend(a,c);return this}function e(a){var b=a.indexOf("?");b>-1&&(a=a.substr(b+1));for(var c,d=decodeURI(a.split("#")[0]).split("&"),e={},f=0,g=d.length;f<g;f++)d[f]&&(c=d[f].split("="),e[c[0]]=c[1]);return e}function f(a,c){if(!c)return a;if("string"===b.type(c)&&(c=e(c)),a.indexOf("?")>-1){var d=a.split("?");a=d.shift(),c=b.extend({},e(d[0]),c)}return a+"?"+b.param(c)}function g(a,b){var c=a.indexOf("#");return-1===c?b:(c>0&&(a=a.substr(c)),b+a)}function h(a,b,c,d){return b&&b.element().addClass("lity-iframe"),c&&(a=f(a,c)),d&&(a=g(d,a)),'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen src="'+a+'"/></div>'}function i(a){return b('<span class="lity-error"/>').append(a)}function j(a,c){var d=c.opener()&&c.opener().data("lity-desc")||"Image with no description",e=b('<img src="'+a+'" alt="'+d+'"/>'),f=C(),g=function(){f.reject(i("Failed loading image"))};return e.on("load",function(){return 0===this.naturalWidth?g():void f.resolve(e)}).on("error",g),f.promise()}function k(a,c){var d,e,f;try{d=b(a)}catch(a){return!1}return!!d.length&&(e=b('<i style="display:none !important"/>'),f=d.hasClass("lity-hide"),c.element().one("lity:remove",function(){e.before(d).remove(),f&&!d.closest(".lity-content").length&&d.addClass("lity-hide")}),d.removeClass("lity-hide").after(e))}function l(a,b){var c=K.exec(a);return!!c&&h("https://www.youtube"+(c[2]||"")+".com/embed/"+c[4]+"?autoplay=1",b,c[5],a)}function m(a,b){var c=L.exec(a);return!!c&&h("https://player.vimeo.com/video/"+c[3]+"?autoplay=1",b,c[4],a)}function n(a,b){var c=N.exec(a);return!!c&&(0!==a.indexOf("http")&&(a="https:"+a),h("https://www.facebook.com/plugins/video.php?href="+a+"&autoplay=1",b,c[4],a))}function o(a,b){var c=M.exec(a);return!!c&&h("https://www.google."+c[3]+"/maps?"+c[6],b,{output:c[6].indexOf("layer=c")>0?"svembed":"embed"},a)}function p(a,b){return h(a,b)}function q(){return A.documentElement.clientHeight?A.documentElement.clientHeight:Math.round(B.height())}function r(a){var b=w();b&&(27===a.keyCode&&b.close(),9===a.keyCode&&s(a,b))}function s(a,b){var c=b.element().find(H),d=c.index(A.activeElement);a.shiftKey&&d<=0?(c.get(c.length-1).focus(),a.preventDefault()):a.shiftKey||d!==c.length-1||(c.get(0).focus(),a.preventDefault())}function t(){b.each(E,function(a,b){b.resize()})}function u(a){1===E.unshift(a)&&(D.addClass("lity-active"),B.on({resize:t,keydown:r})),b("body > *").not(a.element()).addClass("lity-hidden").each(function(){var a=b(this);void 0===a.data(G)&&a.data(G,a.attr(F)||null)}).attr(F,"true")}function v(a){var c;a.element().attr(F,"true"),1===E.length&&(D.removeClass("lity-active"),B.off({resize:t,keydown:r})),E=b.grep(E,function(b){return a!==b}),c=E.length?E[0].element():b(".lity-hidden"),c.removeClass("lity-hidden").each(function(){var a=b(this),c=a.data(G);c?a.attr(F,c):a.removeAttr(F),a.removeData(G)})}function w(){return 0===E.length?null:E[0]}function x(a,c,d,e){var f,g="inline",h=b.extend({},d);return e&&h[e]?(f=h[e](a,c),g=e):(b.each(["inline","iframe"],function(a,b){delete h[b],h[b]=d[b]}),b.each(h,function(b,d){return!d||(!(!d.test||d.test(a,c))||(f=d(a,c),!1!==f?(g=b,!1):void 0))})),{handler:g,content:f||""}}function y(a,e,f,g){function h(a){k=b(a).css("max-height",q()+"px"),j.find(".lity-loader").each(function(){var a=b(this);c(a).always(function(){a.remove()})}),j.removeClass("lity-loading").find(".lity-content").empty().append(k),m=!0,k.trigger("lity:ready",[l])}var i,j,k,l=this,m=!1,n=!1;e=b.extend({},I,e),j=b(e.template),l.element=function(){return j},l.opener=function(){return f},l.content=function(){return k},l.options=b.proxy(d,l,e),l.handlers=b.proxy(d,l,e.handlers),l.resize=function(){m&&!n&&k.css("max-height",q()+"px").trigger("lity:resize",[l])},l.close=function(){if(m&&!n){n=!0,v(l);var a=C();return g&&b.contains(j[0],A.activeElement)&&g.focus(),k.trigger("lity:close",[l]),j.removeClass("lity-opened").addClass("lity-closed"),c(k.add(j)).always(function(){k.trigger("lity:remove",[l]),j.remove(),j=void 0,a.resolve()}),a.promise()}},i=x(a,l,e.handlers,e.handler),j.attr(F,"false").addClass("lity-loading lity-opened lity-"+i.handler).appendTo("body").focus().on("click","[data-lity-close]",function(a){b(a.target).is("[data-lity-close]")&&l.close()}).trigger("lity:open",[l]),u(l),b.when(i.content).always(h)}function z(a,c,d){a.preventDefault?(a.preventDefault(),d=b(this),a=d.data("lity-target")||d.attr("href")||d.attr("src")):d=b(d);var e=new y(a,b.extend({},d.data("lity-options")||d.data("lity"),c),d,A.activeElement);if(!a.preventDefault)return e}var A=a.document,B=b(a),C=b.Deferred,D=b("html"),E=[],F="aria-hidden",G="lity-"+F,H='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',I={handler:null,handlers:{image:j,inline:k,youtube:l,vimeo:m,googlemaps:o,facebookvideo:n,iframe:p},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},J=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,K=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,L=/(vimeo(pro)?\.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,M=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,N=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,O=function(){var a=A.createElement("div"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return b[c];return!1}();return j.test=function(a){return J.test(a)},z.version="3.0.0-dev",z.options=b.proxy(d,z,I),z.handlers=b.proxy(d,z,I.handlers),z.current=w,z.iframe=h,b(A).on("click.lity","[data-lity]",z),z});
js/repeatable-custom-tabs-shared.js CHANGED
@@ -120,7 +120,7 @@
120
 
121
  function yikes_woo_get_wp_editor_foureight( textarea_id, product_page, tab_content ) {
122
 
123
- if ( ! wp && ! wp.editor && ! wp.editor.initialize ) {
124
  yikes_woo_get_wp_editor_ajax( textarea_id, product_page, tab_content );
125
  return false;
126
  }
120
 
121
  function yikes_woo_get_wp_editor_foureight( textarea_id, product_page, tab_content ) {
122
 
123
+ if ( ! wp || ! wp.editor || ! wp.editor.initialize ) {
124
  yikes_woo_get_wp_editor_ajax( textarea_id, product_page, tab_content );
125
  return false;
126
  }
js/repeatable-custom-tabs-shared.min.js CHANGED
@@ -1 +1 @@
1
- function yikes_woo_get_wp_editor_ajax(e,t,s){var i={action:"yikes_woo_get_wp_editor",textarea_id:e,tab_content:s,security_nonce:repeatable_custom_tabs_shared.get_wp_editor_security_nonce};jQuery.post(repeatable_custom_tabs_shared.ajaxurl,i,function(t){if(yikes_woo_toggle_controls("enable"),void 0!==t.success&&!1===t.success)return jQuery("."+e+"_field").html("<p>"+repeatable_custom_tabs_shared.get_wp_editor_failure_message+"</p>"),!1;jQuery("."+e+"_field").html(t).addClass("_yikes_wc_custom_repeatable_product_tabs_tab_content_field _yikes_wc_custom_repeatable_product_tabs_tab_content_field_dynamic"),"undefined"!=typeof QTags&&(quicktags(e),QTags._buttonsInit()),tinymce.init({branding:!1,selector:"#"+e,theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:!1,remove_script_host:!1,convert_urls:!1,browser_spellcheck:!0,fix_list_elements:!0,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:!1,paste_webkit_styles:"font-weight font-style color",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:!0,wpeditimage_disable_captions:!1,wpeditimage_html5_captions:!0,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",resize:!0,menubar:!1,wpautop:!0,indent:!1,toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",toolbar3:"",toolbar4:"",tabfocus_elements:":prev,:next",body_class:"id post-type-post post-status-publish post-format-standard",setup:function(e){e.on("init",function(){this.getBody().style.fontFamily='Georgia, "Times New Roman", "Bitstream Charter", Times, serif',this.getBody().style.fontSize="16px",this.getBody().style.color="#333"})}}),"undefined"!=typeof tinymce&&tinymce.execCommand("mceAddEditor",!1,e);var s=yikes_woo_get_tab_number_from_id(e);return jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+s).hasClass("yikes_woo_disable_this_tab")&&(jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+s).removeClass("yikes_woo_disable_this_tab"),yikes_woo_toggle_reusable_override_overlay("disable",s)),!0})}function yikes_woo_get_wp_editor_foureight(e,t,s){if(!wp&&!wp.editor&&!wp.editor.initialize)return yikes_woo_get_wp_editor_ajax(e,t,s),!1;yikes_woo_toggle_controls("enable");var i={tinymce:{branding:!1,theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:!1,remove_script_host:!1,convert_urls:!1,browser_spellcheck:!0,fix_list_elements:!0,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:!1,paste_webkit_styles:"font-weight font-style color",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:!0,wpeditimage_disable_captions:!1,wpeditimage_html5_captions:!0,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",menubar:!1,wpautop:!0,indent:!1,resize:!0,theme_advanced_resizing:!0,theme_advanced_resize_horizontal:!1,statusbar:!0,toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",toolbar3:"",toolbar4:"",tabfocus_elements:":prev,:next",setup:function(e){e.on("init",function(){this.getBody().style.fontFamily='Georgia, "Times New Roman", "Bitstream Charter", Times, serif',this.getBody().style.fontSize="16px",this.getBody().style.color="#333",s.length>0&&this.setContent(s)})}},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,close"}};wp.editor.initialize(e,i);var o=yikes_woo_get_tab_number_from_id(e);jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+o).hasClass("yikes_woo_disable_this_tab")&&(jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+o).removeClass("yikes_woo_disable_this_tab"),yikes_woo_toggle_reusable_override_overlay("disable",o));var a='<div id="wp-'+e+'-media-buttons" class="wp-media-buttons"> \t\t\t<button type="button" id="insert-media-button" class="button insert-media add_media" data-editor="'+e+'"><span class="wp-media-buttons-icon"></span> Add Media</button>\t\t</div>';return jQuery("#wp-_yikes_wc_custom_repeatable_product_tabs_tab_content_"+o+"-wrap > .wp-editor-tools").prepend(a),!0}function yikes_woo_get_tab_number_from_id(e){return e.slice(e.lastIndexOf("_")+1)}function yikes_woo_toggle_controls(e){"disable"===e?(jQuery(".remove_this_tab").attr("disabled","disabled"),jQuery("#add_another_tab").attr("disabled","disabled"),jQuery("._yikes_wc_apply_a_saved_tab").attr("disabled","disabled"),jQuery(".move-tab-data-up").hide(),jQuery(".move-tab-data-down").hide()):(jQuery(".remove_this_tab").removeAttr("disabled"),jQuery("#add_another_tab").removeAttr("disabled"),jQuery("._yikes_wc_apply_a_saved_tab").removeAttr("disabled"),jQuery(".move-tab-data-up").show(),jQuery(".move-tab-data-down").show())}function yikes_woo_display_feedback_messages(e,t,s,i){var o={inline:!1,classes:[],css_string:"",time:3e3},a=jQuery.extend(o,i);jQuery("._yikes_wc_feedback_message").remove();var l="";a.css_string.length>0&&(l=a.css_string);var n=o.classes;a.classes.length>0&&a.classes.each(function(e,t){n+=t});var r="";r=!0===a.inline?'<span id="'+t+'" class="_yikes_wc_feedback_message '+n+'" style="'+l+'">'+s+"</span>":'<p id="'+t+'" class="_yikes_wc_feedback_message '+n+'" style="'+l+'">'+s+"</p>",jQuery(e).after(r),jQuery("#"+t).fadeIn(500).delay(a.time).fadeOut(500)}function yikes_woo_toggle_how_to(){jQuery(".yikes-woo-tabs-hidden-how-to-info").slideToggle("fast",function(){jQuery("#yikes-woo-help-me-icon").hasClass("dashicons-editor-help")?jQuery("#yikes-woo-help-me-icon").removeClass("dashicons-editor-help").addClass("dashicons-dismiss"):jQuery("#yikes-woo-help-me-icon").removeClass("dashicons-dismiss").addClass("dashicons-editor-help")})}function yikes_woo_get_content_from_wysiwyg(e){var t="";return"undefined"!==tinymce&&null!==tinymce.get(e)?0===(t=tinymce.get(e).getContent()).length&&jQuery("#"+e).val().length>0&&(t=jQuery("#"+e).val()):t=jQuery("#"+e).val(),t}function yikes_woo_set_content_for_wysiwyg(e,t){"undefined"!==tinymce&&null!==tinymce.get(e)?(tinymce.get(e).setContent(t),jQuery("#"+e).val(t)):jQuery("#"+e).val(t)}
1
+ function yikes_woo_get_wp_editor_ajax(e,t,s){var i={action:"yikes_woo_get_wp_editor",textarea_id:e,tab_content:s,security_nonce:repeatable_custom_tabs_shared.get_wp_editor_security_nonce};jQuery.post(repeatable_custom_tabs_shared.ajaxurl,i,function(t){if(yikes_woo_toggle_controls("enable"),void 0!==t.success&&!1===t.success)return jQuery("."+e+"_field").html("<p>"+repeatable_custom_tabs_shared.get_wp_editor_failure_message+"</p>"),!1;jQuery("."+e+"_field").html(t).addClass("_yikes_wc_custom_repeatable_product_tabs_tab_content_field _yikes_wc_custom_repeatable_product_tabs_tab_content_field_dynamic"),"undefined"!=typeof QTags&&(quicktags(e),QTags._buttonsInit()),tinymce.init({branding:!1,selector:"#"+e,theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:!1,remove_script_host:!1,convert_urls:!1,browser_spellcheck:!0,fix_list_elements:!0,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:!1,paste_webkit_styles:"font-weight font-style color",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:!0,wpeditimage_disable_captions:!1,wpeditimage_html5_captions:!0,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",resize:!0,menubar:!1,wpautop:!0,indent:!1,toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",toolbar3:"",toolbar4:"",tabfocus_elements:":prev,:next",body_class:"id post-type-post post-status-publish post-format-standard",setup:function(e){e.on("init",function(){this.getBody().style.fontFamily='Georgia, "Times New Roman", "Bitstream Charter", Times, serif',this.getBody().style.fontSize="16px",this.getBody().style.color="#333"})}}),"undefined"!=typeof tinymce&&tinymce.execCommand("mceAddEditor",!1,e);var s=yikes_woo_get_tab_number_from_id(e);return jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+s).hasClass("yikes_woo_disable_this_tab")&&(jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+s).removeClass("yikes_woo_disable_this_tab"),yikes_woo_toggle_reusable_override_overlay("disable",s)),!0})}function yikes_woo_get_wp_editor_foureight(e,t,s){if(!wp||!wp.editor||!wp.editor.initialize)return yikes_woo_get_wp_editor_ajax(e,t,s),!1;yikes_woo_toggle_controls("enable");var i={tinymce:{branding:!1,theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:!1,remove_script_host:!1,convert_urls:!1,browser_spellcheck:!0,fix_list_elements:!0,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:!1,paste_webkit_styles:"font-weight font-style color",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:!0,wpeditimage_disable_captions:!1,wpeditimage_html5_captions:!0,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",menubar:!1,wpautop:!0,indent:!1,resize:!0,theme_advanced_resizing:!0,theme_advanced_resize_horizontal:!1,statusbar:!0,toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",toolbar3:"",toolbar4:"",tabfocus_elements:":prev,:next",setup:function(e){e.on("init",function(){this.getBody().style.fontFamily='Georgia, "Times New Roman", "Bitstream Charter", Times, serif',this.getBody().style.fontSize="16px",this.getBody().style.color="#333",s.length>0&&this.setContent(s)})}},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,close"}};wp.editor.initialize(e,i);var o=yikes_woo_get_tab_number_from_id(e);jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+o).hasClass("yikes_woo_disable_this_tab")&&(jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+o).removeClass("yikes_woo_disable_this_tab"),yikes_woo_toggle_reusable_override_overlay("disable",o));var a='<div id="wp-'+e+'-media-buttons" class="wp-media-buttons"> \t\t\t<button type="button" id="insert-media-button" class="button insert-media add_media" data-editor="'+e+'"><span class="wp-media-buttons-icon"></span> Add Media</button>\t\t</div>';return jQuery("#wp-_yikes_wc_custom_repeatable_product_tabs_tab_content_"+o+"-wrap > .wp-editor-tools").prepend(a),!0}function yikes_woo_get_tab_number_from_id(e){return e.slice(e.lastIndexOf("_")+1)}function yikes_woo_toggle_controls(e){"disable"===e?(jQuery(".remove_this_tab").attr("disabled","disabled"),jQuery("#add_another_tab").attr("disabled","disabled"),jQuery("._yikes_wc_apply_a_saved_tab").attr("disabled","disabled"),jQuery(".move-tab-data-up").hide(),jQuery(".move-tab-data-down").hide()):(jQuery(".remove_this_tab").removeAttr("disabled"),jQuery("#add_another_tab").removeAttr("disabled"),jQuery("._yikes_wc_apply_a_saved_tab").removeAttr("disabled"),jQuery(".move-tab-data-up").show(),jQuery(".move-tab-data-down").show())}function yikes_woo_display_feedback_messages(e,t,s,i){var o={inline:!1,classes:[],css_string:"",time:3e3},a=jQuery.extend(o,i);jQuery("._yikes_wc_feedback_message").remove();var l="";a.css_string.length>0&&(l=a.css_string);var n=o.classes;a.classes.length>0&&a.classes.each(function(e,t){n+=t});var r="";r=!0===a.inline?'<span id="'+t+'" class="_yikes_wc_feedback_message '+n+'" style="'+l+'">'+s+"</span>":'<p id="'+t+'" class="_yikes_wc_feedback_message '+n+'" style="'+l+'">'+s+"</p>",jQuery(e).after(r),jQuery("#"+t).fadeIn(500).delay(a.time).fadeOut(500)}function yikes_woo_toggle_how_to(){jQuery(".yikes-woo-tabs-hidden-how-to-info").slideToggle("fast",function(){jQuery("#yikes-woo-help-me-icon").hasClass("dashicons-editor-help")?jQuery("#yikes-woo-help-me-icon").removeClass("dashicons-editor-help").addClass("dashicons-dismiss"):jQuery("#yikes-woo-help-me-icon").removeClass("dashicons-dismiss").addClass("dashicons-editor-help")})}function yikes_woo_get_content_from_wysiwyg(e){var t="";return"undefined"!==tinymce&&null!==tinymce.get(e)?0===(t=tinymce.get(e).getContent()).length&&jQuery("#"+e).val().length>0&&(t=jQuery("#"+e).val()):t=jQuery("#"+e).val(),t}function yikes_woo_set_content_for_wysiwyg(e,t){"undefined"!==tinymce&&null!==tinymce.get(e)?(tinymce.get(e).setContent(t),jQuery("#"+e).val(t)):jQuery("#"+e).val(t)}
languages/yikes-inc-easy-custom-woocommerce-product-tabs.pot CHANGED
@@ -1,6 +1,6 @@
1
  # SOME DESCRIPTIVE TITLE.
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the PACKAGE package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
  #
6
  #, fuzzy
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: custom-product-tabs 1.5.17\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2017-10-13 13:07+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -303,7 +303,7 @@ msgid "Save Tab"
303
  msgstr ""
304
 
305
  #: admin/page.yikes-woo-saved-tabs-single.php:91
306
- #: admin/page.yikes-woo-saved-tabs.php:110
307
  msgid "Delete Tab"
308
  msgstr ""
309
 
@@ -345,12 +345,12 @@ msgstr ""
345
  msgid "Tab Content Preview"
346
  msgstr ""
347
 
348
- #: admin/page.yikes-woo-saved-tabs.php:107
349
- #: admin/page.yikes-woo-saved-tabs.php:119
350
  msgid "Edit Tab"
351
  msgstr ""
352
 
353
- #: admin/page.yikes-woo-saved-tabs.php:129
354
  msgid "There are no saved tabs. Add one!"
355
  msgstr ""
356
 
@@ -374,16 +374,8 @@ msgstr[1] ""
374
  msgid "yyyy-mm-dd"
375
  msgstr ""
376
 
377
- #: yikes-inc-easy-custom-woocommerce-product-tabs.php:51
378
  msgid ""
379
  "Custom Product Tabs for WooCommerce could not be activated because "
380
  "WooCommerce is not installed and active."
381
  msgstr ""
382
-
383
- #: yikes-inc-easy-custom-woocommerce-product-tabs.php:52
384
- msgid "Please install and activate "
385
- msgstr ""
386
-
387
- #: yikes-inc-easy-custom-woocommerce-product-tabs.php:52
388
- msgid " before activating the plugin."
389
- msgstr ""
1
  # SOME DESCRIPTIVE TITLE.
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the custom-product-tabs package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
  #
6
  #, fuzzy
8
  msgstr ""
9
  "Project-Id-Version: custom-product-tabs 1.5.17\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2019-04-19 10:02-0400\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
303
  msgstr ""
304
 
305
  #: admin/page.yikes-woo-saved-tabs-single.php:91
306
+ #: admin/page.yikes-woo-saved-tabs.php:113
307
  msgid "Delete Tab"
308
  msgstr ""
309
 
345
  msgid "Tab Content Preview"
346
  msgstr ""
347
 
348
+ #: admin/page.yikes-woo-saved-tabs.php:110
349
+ #: admin/page.yikes-woo-saved-tabs.php:122
350
  msgid "Edit Tab"
351
  msgstr ""
352
 
353
+ #: admin/page.yikes-woo-saved-tabs.php:133
354
  msgid "There are no saved tabs. Add one!"
355
  msgstr ""
356
 
374
  msgid "yyyy-mm-dd"
375
  msgstr ""
376
 
377
+ #: yikes-inc-easy-custom-woocommerce-product-tabs.php:52
378
  msgid ""
379
  "Custom Product Tabs for WooCommerce could not be activated because "
380
  "WooCommerce is not installed and active."
381
  msgstr ""
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: yikesinc, eherman24, liljimmi, yikesitskevin, metalandcoffee, mial
3
  Donate link: http://yikesinc.com
4
  Tags: woocommerce, product tabs, repeatable, duplicate, customize, custom, tabs, product, woo, commerce
5
  Requires at least: 3.8
6
- Tested up to: 5.0.3
7
- Stable tag: 1.6.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,10 +75,14 @@ Yes! Since v1.4 we've added the necessary code to ensure the custom tab data is
75
 
76
  == Changelog ==
77
 
78
- = 1.6.9 - January 18th, 2018 =
 
 
 
 
79
  * Fixing an issue where the visual editor shows a small portion of the content on product edit pages.
80
 
81
- = 1.6.8 - January 2nd, 2018 =
82
  * Fixing some HTML markup.
83
  * Applying PHPCS fixes.
84
 
3
  Donate link: http://yikesinc.com
4
  Tags: woocommerce, product tabs, repeatable, duplicate, customize, custom, tabs, product, woo, commerce
5
  Requires at least: 3.8
6
+ Tested up to: 5.2.0
7
+ Stable tag: 1.6.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
 
76
  == Changelog ==
77
 
78
+ = 1.6.10 - April 19th, 2019 =
79
+ * Updating WC compatibility.
80
+ * Fixing JS issue with WP backwards compatibility for versions < 4.7.
81
+
82
+ = 1.6.9 - January 18th, 2019 =
83
  * Fixing an issue where the visual editor shows a small portion of the content on product edit pages.
84
 
85
+ = 1.6.8 - January 2nd, 2019 =
86
  * Fixing some HTML markup.
87
  * Applying PHPCS fixes.
88
 
yikes-inc-easy-custom-woocommerce-product-tabs.php CHANGED
@@ -5,12 +5,12 @@
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES, Inc.
7
  * Author URI: http://www.yikesinc.com
8
- * Version: 1.6.9
9
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
10
  * Domain Path: languages/
11
  *
12
  * WC requires at least: 3.0.0
13
- * WC tested up to: 3.5
14
  *
15
  * Copyright: (c) 2014-2015 YIKES Inc.
16
  *
@@ -104,7 +104,7 @@ class YIKES_Custom_Product_Tabs {
104
  * Define the plugin's version.
105
  */
106
  if ( ! defined( 'YIKES_Custom_Product_Tabs_Version' ) ) {
107
- define( 'YIKES_Custom_Product_Tabs_Version', '1.6.9' );
108
  }
109
 
110
  /**
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES, Inc.
7
  * Author URI: http://www.yikesinc.com
8
+ * Version: 1.6.10
9
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
10
  * Domain Path: languages/
11
  *
12
  * WC requires at least: 3.0.0
13
+ * WC tested up to: 3.6
14
  *
15
  * Copyright: (c) 2014-2015 YIKES Inc.
16
  *
104
  * Define the plugin's version.
105
  */
106
  if ( ! defined( 'YIKES_Custom_Product_Tabs_Version' ) ) {
107
+ define( 'YIKES_Custom_Product_Tabs_Version', '1.6.10' );
108
  }
109
 
110
  /**