YouTube - Version 11.8.5

Version Description

Download this release

Release Info

Developer embedplus
Plugin Icon 128x128 YouTube
Version 11.8.5
Comparing to
See all releases

Code changes from version 11.8.4 to 11.8.5

readme.txt CHANGED
@@ -4,7 +4,7 @@ Plugin Name: YouTube Embed
4
  Tags: youtube gallery, video gallery, youtube channel, youtube live, live stream
5
  Requires at least: 3.6.1
6
  Tested up to: 4.9
7
- Stable tag: 11.8.4
8
  License: GPLv3 or later
9
 
10
  YouTube Embed WordPress Plugin. Embed a responsive video, YouTube channel gallery, playlist gallery, or YouTube.com live stream
@@ -147,6 +147,10 @@ You can also start and end each individual video at particular times. Like the a
147
 
148
  == Changelog ==
149
 
 
 
 
 
150
  = WordPress YouTube Embed 11.8.4 =
151
  * Fixes gallery AJAX issue
152
  * Adds ability to hide fullscreen button
4
  Tags: youtube gallery, video gallery, youtube channel, youtube live, live stream
5
  Requires at least: 3.6.1
6
  Tested up to: 4.9
7
+ Stable tag: 11.8.5
8
  License: GPLv3 or later
9
 
10
  YouTube Embed WordPress Plugin. Embed a responsive video, YouTube channel gallery, playlist gallery, or YouTube.com live stream
147
 
148
  == Changelog ==
149
 
150
+ = WordPress YouTube Embed 11.8.5 =
151
+ * Adds the YouTube wizard button to the new built-in WordPress text widget
152
+ * Fixes a Mac/iOS gallery scrolling issue
153
+
154
  = WordPress YouTube Embed 11.8.4 =
155
  * Fixes gallery AJAX issue
156
  * Adds ability to hide fullscreen button
scripts/ytprefs-admin.js CHANGED
@@ -69,9 +69,18 @@
69
  }, false);
70
 
71
 
72
- $('body').on('click.tbyt', "#ytprefs_wiz_button", function () {
73
  window._EPYTA_.widen_ytprefs_wiz();
74
  });
75
  $(window).resize(window._EPYTA_.widen_ytprefs_wiz);
 
 
 
 
 
 
 
 
 
76
  });
77
  })(window, jQuery);
69
  }, false);
70
 
71
 
72
+ $('body').on('click.tbyt', "#ytprefs_wiz_button, .ytprefs_wiz_button_widget_text", function () {
73
  window._EPYTA_.widen_ytprefs_wiz();
74
  });
75
  $(window).resize(window._EPYTA_.widen_ytprefs_wiz);
76
+
77
+ $(document).on('wp-before-tinymce-init.ytprefs-media_button', function (event, init) {
78
+ $media_buttons = $(init.selector).closest('.wp-editor-wrap').find('.wp-media-buttons');
79
+ if (!$media_buttons.find('.ytprefs_media_link').length)
80
+ {
81
+ $media_buttons.append('<a href="' + encodeURI(window._EPYTA_.wizhref) + '" class="thickbox button ytprefs_media_link ytprefs_wiz_button_widget_text" title="Visual YouTube Search Tool and Wizard - For easier embedding"><span></span> YouTube</a>');
82
+ }
83
+ });
84
+
85
  });
86
  })(window, jQuery);
scripts/ytprefs-admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
 
2
- (function(a,b){a._EPYTA_.widen_ytprefs_wiz=a._EPYTA_.widen_ytprefs_wiz||function(){setTimeout(function(){b("#TB_window").addClass("epyt-thickbox").animate({marginLeft:"-475px",width:"950px"},150,"swing",function(){b("#TB_window").get(0).style.setProperty("width","950px","important")});b("#TB_overlay").addClass("epyt-thickbox");b("#TB_window iframe").animate({width:"950px"},150)},750)};b(document).ready(function(){if(a.location.toString().indexOf("https://")===0){a._EPYTA_.wpajaxurl=a._EPYTA_.wpajaxurl.replace("http://","https://")}var e=a.addEventListener?"addEventListener":"attachEvent";var d=a[e];var c=e==="attachEvent"?"onmessage":"message";d(c,function(h){var f="";try{if(h.data.indexOf("youtubeembedplus")===0){f=h.data.split("|")[1];if(f.indexOf("[")!==0){f="<p>"+f+"</p>"}if(a.tinyMCE!==null&&a.tinyMCE.activeEditor!==null&&!a.tinyMCE.activeEditor.isHidden()){if(typeof a.tinyMCE.execInstanceCommand!=="undefined"){a.tinyMCE.execInstanceCommand(a.tinyMCE.activeEditor.id,"mceInsertContent",false,f)}else{send_to_editor(f)}}else{f=f.replace("<p>","\n").replace("</p>","\n");if(typeof QTags.insertContent==="function"){QTags.insertContent(f)}else{send_to_editor(f)}}tb_remove()}}catch(g){}},false);b("body").on("click.tbyt","#ytprefs_wiz_button",function(){a._EPYTA_.widen_ytprefs_wiz()});b(a).resize(a._EPYTA_.widen_ytprefs_wiz)})})(window,jQuery);
1
 
2
+ (function(a,b){a._EPYTA_.widen_ytprefs_wiz=a._EPYTA_.widen_ytprefs_wiz||function(){setTimeout(function(){b("#TB_window").addClass("epyt-thickbox").animate({marginLeft:"-475px",width:"950px"},150,"swing",function(){b("#TB_window").get(0).style.setProperty("width","950px","important")});b("#TB_overlay").addClass("epyt-thickbox");b("#TB_window iframe").animate({width:"950px"},150)},750)};b(document).ready(function(){if(a.location.toString().indexOf("https://")===0){a._EPYTA_.wpajaxurl=a._EPYTA_.wpajaxurl.replace("http://","https://")}var e=a.addEventListener?"addEventListener":"attachEvent";var d=a[e];var c=e==="attachEvent"?"onmessage":"message";d(c,function(h){var f="";try{if(h.data.indexOf("youtubeembedplus")===0){f=h.data.split("|")[1];if(f.indexOf("[")!==0){f="<p>"+f+"</p>"}if(a.tinyMCE!==null&&a.tinyMCE.activeEditor!==null&&!a.tinyMCE.activeEditor.isHidden()){if(typeof a.tinyMCE.execInstanceCommand!=="undefined"){a.tinyMCE.execInstanceCommand(a.tinyMCE.activeEditor.id,"mceInsertContent",false,f)}else{send_to_editor(f)}}else{f=f.replace("<p>","\n").replace("</p>","\n");if(typeof QTags.insertContent==="function"){QTags.insertContent(f)}else{send_to_editor(f)}}tb_remove()}}catch(g){}},false);b("body").on("click.tbyt","#ytprefs_wiz_button, .ytprefs_wiz_button_widget_text",function(){a._EPYTA_.widen_ytprefs_wiz()});b(a).resize(a._EPYTA_.widen_ytprefs_wiz);b(document).on("wp-before-tinymce-init.ytprefs-media_button",function(f,g){$media_buttons=b(g.selector).closest(".wp-editor-wrap").find(".wp-media-buttons");if(!$media_buttons.find(".ytprefs_media_link").length){$media_buttons.append('<a href="'+encodeURI(a._EPYTA_.wizhref)+'" class="thickbox button ytprefs_media_link ytprefs_wiz_button_widget_text" title="Visual YouTube Search Tool and Wizard - For easier embedding"><span></span> YouTube</a>')}})})})(window,jQuery);
scripts/ytprefs.js CHANGED
@@ -225,7 +225,7 @@
225
  }
226
 
227
  // https://github.com/jquery/jquery-ui/blob/master/ui/scroll-parent.js
228
- var bodyScrollTop = $('html').scrollTop();
229
  var scrollNext = $iframe.offset().top - parseInt(_EPYT_.gallery_scrolloffset);
230
  if (bodyScrollTop > scrollNext)
231
  {
@@ -301,7 +301,7 @@
301
  if ($container.find('.epyt-pagebutton').first().data('autonext') != '1')
302
  {
303
  // https://github.com/jquery/jquery-ui/blob/master/ui/scroll-parent.js
304
- var bodyScrollTop = $('html').scrollTop();
305
  var scrollNext = $container.find('.epyt-gallery-list').offset().top - parseInt(_EPYT_.gallery_scrolloffset);
306
  if (bodyScrollTop > scrollNext)
307
  {
225
  }
226
 
227
  // https://github.com/jquery/jquery-ui/blob/master/ui/scroll-parent.js
228
+ var bodyScrollTop = Math.max($('body').scrollTop(), $('html').scrollTop());
229
  var scrollNext = $iframe.offset().top - parseInt(_EPYT_.gallery_scrolloffset);
230
  if (bodyScrollTop > scrollNext)
231
  {
301
  if ($container.find('.epyt-pagebutton').first().data('autonext') != '1')
302
  {
303
  // https://github.com/jquery/jquery-ui/blob/master/ui/scroll-parent.js
304
+ var bodyScrollTop = Math.max($('body').scrollTop(), $('html').scrollTop());
305
  var scrollNext = $container.find('.epyt-gallery-list').offset().top - parseInt(_EPYT_.gallery_scrolloffset);
306
  if (bodyScrollTop > scrollNext)
307
  {
scripts/ytprefs.min.js CHANGED
@@ -1,2 +1,2 @@
1
 
2
- (function(a,b){a._EPYT_=a._EPYT_||{ajaxurl:"/wp-admin/admin-ajax.php",security:"",gallery_scrolloffset:100,eppathtoscripts:"/wp-content/plugins/youtube-embed-plus/scripts/",epresponsiveselector:["iframe.__youtube_prefs_widget__"],epdovol:true,evselector:'iframe.__youtube_prefs__[src], iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"]',stopMobileBuffer:true,ajax_compat:false,usingdefault:true};if(a.location.toString().indexOf("https://")===0){a._EPYT_.ajaxurl=a._EPYT_.ajaxurl.replace("http://","https://")}a._EPYT_.pageLoaded=false;b(a).on("load._EPYT_",function(){a._EPYT_.pageLoaded=true});if(!document.querySelectorAll){document.querySelectorAll=function(e){var g=document,f=g.documentElement.firstChild,d=g.createElement("STYLE");f.appendChild(d);g.__qsaels=[];d.styleSheet.cssText=e+"{x:expression(document.__qsaels.push(this))}";a.scrollBy(0,0);return g.__qsaels}}if(typeof a._EPADashboard_==="undefined"){a._EPADashboard_={initStarted:false,checkCount:0,onPlayerReady:function(g){try{if(typeof _EPYT_.epdovol!=="undefined"&&_EPYT_.epdovol){var e=parseInt(g.target.getIframe().getAttribute("data-vol"));if(!isNaN(e)){if(e===0){g.target.mute()}else{if(g.target.isMuted()){g.target.unMute()}g.target.setVolume(e)}}}var d=parseInt(g.target.getIframe().getAttribute("data-epautoplay"));if(!isNaN(d)&&d===1){g.target.playVideo()}}catch(f){}},onPlayerStateChange:function(g){var f=g.target.getIframe();if(g.data===a.YT.PlayerState.PLAYING&&g.target.ponce!==true&&f.src.indexOf("autoplay=1")===-1){g.target.ponce=true}var d=b(f).closest(".epyt-gallery");if(!d.length){d=b("#"+b(f).data("epytgalleryid"))}if(d.length){var e=d.find(".epyt-pagebutton").first().data("autonext")=="1";if(e&&g.data===a.YT.PlayerState.ENDED){var h=d.find(".epyt-current-video");if(!h.length){h=d.find(".epyt-gallery-thumb").first()}var i=h.find(" ~ .epyt-gallery-thumb").first();if(i.length){i.click()}else{d.find('.epyt-pagebutton.epyt-next[data-pagetoken!=""][data-pagetoken]').first().click()}}}},justid:function(d){return new RegExp("[\\?&]v=([^&#]*)").exec(d)[1]},setupevents:function(e){a._EPADashboard_.log("Setting up YT API events: "+e);if(typeof(a.YT)!=="undefined"&&a.YT!==null&&a.YT.loaded){var d=document.getElementById(e);if(!d.epytsetupdone){d.epytsetupdone=true;return new a.YT.Player(e,{events:{onReady:a._EPADashboard_.onPlayerReady,onStateChange:a._EPADashboard_.onPlayerStateChange}})}}},apiInit:function(){if(typeof(a.YT)!=="undefined"){a._EPADashboard_.initStarted=true;var d=document.querySelectorAll(_EPYT_.evselector);for(var e=0;e<d.length;e++){if(!d[e].hasAttribute("id")){d[e].id="_dytid_"+Math.round(Math.random()*8999+1000)}a._EPADashboard_.setupevents(d[e].id)}}},log:function(e){try{console.log(e)}catch(d){}},doubleCheck:function(){a._EPADashboard_.checkInterval=setInterval(function(){a._EPADashboard_.checkCount++;if(a._EPADashboard_.checkCount>=5||a._EPADashboard_.initStarted){clearInterval(a._EPADashboard_.checkInterval)}else{a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API init check")}},1000)},selectText:function(f){if(document.selection){var d=document.body.createTextRange();d.moveToElementText(f);d.select()}else{if(a.getSelection){var e=a.getSelection();var d=document.createRange();d.selectNode(f);e.removeAllRanges();e.addRange(d)}}},setVidSrc:function(d,e){d.attr("src",e);d.get(0).epytsetupdone=false;a._EPADashboard_.setupevents(d.attr("id"))},pageReady:function(){b(".epyt-gallery").each(function(){var h=b(this);var g=b(this).find("iframe").first();var e=g.attr("src");if(!e){e=g.data("ep-src")}var f=b(this).find(".epyt-gallery-list .epyt-gallery-thumb").first().data("videoid");e=e.replace(f,"GALLERYVIDEOID");g.data("ep-gallerysrc",e);var d=h.find(".epyt-gallery-list");h.on("click",".epyt-gallery-list .epyt-gallery-thumb",function(){h.find(".epyt-gallery-list .epyt-gallery-thumb").removeClass("epyt-current-video");b(this).addClass("epyt-current-video");var i=b(this).data("videoid");h.data("currvid",i);var m=g.data("ep-gallerysrc").replace("GALLERYVIDEOID",i);var l=h.find(".epyt-pagebutton").first().data("thumbplay");if(l!=="0"&&l!==0){if(m.indexOf("autoplay")>0){m=m.replace("autoplay=0","autoplay=1")}else{m+="&autoplay=1"}g.addClass("epyt-thumbplay")}var j=b("html").scrollTop();var k=g.offset().top-parseInt(_EPYT_.gallery_scrolloffset);if(j>k){b("html, body").animate({scrollTop:k},500,function(){a._EPADashboard_.setVidSrc(g,m)})}else{a._EPADashboard_.setVidSrc(g,m)}}).on("keydown",".epyt-gallery-list .epyt-gallery-thumb, .epyt-pagebutton",function(j){var i=j.which;if((i===13)||(i===32)){j.preventDefault();b(this).click()}});h.on("mouseenter",".epyt-gallery-list .epyt-gallery-thumb",function(){b(this).addClass("hover")});h.on("mouseleave",".epyt-gallery-list .epyt-gallery-thumb",function(){b(this).removeClass("hover")});h.on("click",".epyt-pagebutton",function(){var k={action:"my_embedplus_gallery_page",security:_EPYT_.security,options:{playlistId:b(this).data("playlistid"),pageToken:b(this).data("pagetoken"),pageSize:b(this).data("pagesize"),columns:b(this).data("epcolumns"),showTitle:b(this).data("showtitle"),showPaging:b(this).data("showpaging"),autonext:b(this).data("autonext"),hidethumbimg:b(this).data("hidethumbimg"),thumbplay:b(this).data("thumbplay")}};var i=b(this).hasClass("epyt-next");var j=parseInt(h.data("currpage")+"");j+=i?1:-1;h.data("currpage",j);h.find(".epyt-gallery-list").addClass("epyt-loading");b.post(_EPYT_.ajaxurl,k,function(l){h.find(".epyt-gallery-list").html(l);h.find(".epyt-current").each(function(){b(this).text(h.data("currpage"))});h.find('.epyt-gallery-thumb[data-videoid="'+h.data("currvid")+'"]').addClass("epyt-current-video");if(h.find(".epyt-pagebutton").first().data("autonext")=="1"){h.find(".epyt-gallery-thumb").first().click()}}).fail(function(){alert("Sorry, there was an error loading the next page.")}).always(function(){h.find(".epyt-gallery-list").removeClass("epyt-loading");if(h.find(".epyt-pagebutton").first().data("autonext")!="1"){var l=b("html").scrollTop();var m=h.find(".epyt-gallery-list").offset().top-parseInt(_EPYT_.gallery_scrolloffset);if(l>m){b("html, body").animate({scrollTop:m},500)}}})})})}}}a.onYouTubeIframeAPIReady=typeof a.onYouTubeIframeAPIReady!=="undefined"?a.onYouTubeIframeAPIReady:function(){if(a._EPYT_.pageLoaded){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API ready")}else{b(a).on("load._EPYT_",function(){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API ready 2")})}};if(typeof a.YT==="undefined"){var c=document.createElement("script");c.src="//www.youtube.com/iframe_api";c.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(c)}else{if(a.YT.loaded){if(a._EPYT_.pageLoaded){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API available")}else{b(a).on("load._EPYT_",function(){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API available 2")})}}}if(a._EPYT_.pageLoaded){a._EPADashboard_.doubleCheck()}else{b(a).on("load._EPYT_",function(){a._EPADashboard_.doubleCheck()})}b(document).ready(function(){a._EPADashboard_.pageReady();if(a._EPYT_.ajax_compat){b(a).on("load._EPYT_",function(){b(document).ajaxSuccess(function(f,g,d){if(g&&g.responseText&&g.responseText.indexOf("<iframe ")!==-1){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API AJAX");a._EPADashboard_.pageReady()}})})}})})(window,jQuery);
1
 
2
+ (function(a,b){a._EPYT_=a._EPYT_||{ajaxurl:"/wp-admin/admin-ajax.php",security:"",gallery_scrolloffset:100,eppathtoscripts:"/wp-content/plugins/youtube-embed-plus/scripts/",epresponsiveselector:["iframe.__youtube_prefs_widget__"],epdovol:true,evselector:'iframe.__youtube_prefs__[src], iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"]',stopMobileBuffer:true,ajax_compat:false,usingdefault:true};if(a.location.toString().indexOf("https://")===0){a._EPYT_.ajaxurl=a._EPYT_.ajaxurl.replace("http://","https://")}a._EPYT_.pageLoaded=false;b(a).on("load._EPYT_",function(){a._EPYT_.pageLoaded=true});if(!document.querySelectorAll){document.querySelectorAll=function(e){var g=document,f=g.documentElement.firstChild,d=g.createElement("STYLE");f.appendChild(d);g.__qsaels=[];d.styleSheet.cssText=e+"{x:expression(document.__qsaels.push(this))}";a.scrollBy(0,0);return g.__qsaels}}if(typeof a._EPADashboard_==="undefined"){a._EPADashboard_={initStarted:false,checkCount:0,onPlayerReady:function(g){try{if(typeof _EPYT_.epdovol!=="undefined"&&_EPYT_.epdovol){var e=parseInt(g.target.getIframe().getAttribute("data-vol"));if(!isNaN(e)){if(e===0){g.target.mute()}else{if(g.target.isMuted()){g.target.unMute()}g.target.setVolume(e)}}}var d=parseInt(g.target.getIframe().getAttribute("data-epautoplay"));if(!isNaN(d)&&d===1){g.target.playVideo()}}catch(f){}},onPlayerStateChange:function(g){var f=g.target.getIframe();if(g.data===a.YT.PlayerState.PLAYING&&g.target.ponce!==true&&f.src.indexOf("autoplay=1")===-1){g.target.ponce=true}var d=b(f).closest(".epyt-gallery");if(!d.length){d=b("#"+b(f).data("epytgalleryid"))}if(d.length){var e=d.find(".epyt-pagebutton").first().data("autonext")=="1";if(e&&g.data===a.YT.PlayerState.ENDED){var h=d.find(".epyt-current-video");if(!h.length){h=d.find(".epyt-gallery-thumb").first()}var i=h.find(" ~ .epyt-gallery-thumb").first();if(i.length){i.click()}else{d.find('.epyt-pagebutton.epyt-next[data-pagetoken!=""][data-pagetoken]').first().click()}}}},justid:function(d){return new RegExp("[\\?&]v=([^&#]*)").exec(d)[1]},setupevents:function(e){a._EPADashboard_.log("Setting up YT API events: "+e);if(typeof(a.YT)!=="undefined"&&a.YT!==null&&a.YT.loaded){var d=document.getElementById(e);if(!d.epytsetupdone){d.epytsetupdone=true;return new a.YT.Player(e,{events:{onReady:a._EPADashboard_.onPlayerReady,onStateChange:a._EPADashboard_.onPlayerStateChange}})}}},apiInit:function(){if(typeof(a.YT)!=="undefined"){a._EPADashboard_.initStarted=true;var d=document.querySelectorAll(_EPYT_.evselector);for(var e=0;e<d.length;e++){if(!d[e].hasAttribute("id")){d[e].id="_dytid_"+Math.round(Math.random()*8999+1000)}a._EPADashboard_.setupevents(d[e].id)}}},log:function(e){try{console.log(e)}catch(d){}},doubleCheck:function(){a._EPADashboard_.checkInterval=setInterval(function(){a._EPADashboard_.checkCount++;if(a._EPADashboard_.checkCount>=5||a._EPADashboard_.initStarted){clearInterval(a._EPADashboard_.checkInterval)}else{a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API init check")}},1000)},selectText:function(f){if(document.selection){var d=document.body.createTextRange();d.moveToElementText(f);d.select()}else{if(a.getSelection){var e=a.getSelection();var d=document.createRange();d.selectNode(f);e.removeAllRanges();e.addRange(d)}}},setVidSrc:function(d,e){d.attr("src",e);d.get(0).epytsetupdone=false;a._EPADashboard_.setupevents(d.attr("id"))},pageReady:function(){b(".epyt-gallery").each(function(){var h=b(this);var g=b(this).find("iframe").first();var e=g.attr("src");if(!e){e=g.data("ep-src")}var f=b(this).find(".epyt-gallery-list .epyt-gallery-thumb").first().data("videoid");e=e.replace(f,"GALLERYVIDEOID");g.data("ep-gallerysrc",e);var d=h.find(".epyt-gallery-list");h.on("click",".epyt-gallery-list .epyt-gallery-thumb",function(){h.find(".epyt-gallery-list .epyt-gallery-thumb").removeClass("epyt-current-video");b(this).addClass("epyt-current-video");var i=b(this).data("videoid");h.data("currvid",i);var m=g.data("ep-gallerysrc").replace("GALLERYVIDEOID",i);var l=h.find(".epyt-pagebutton").first().data("thumbplay");if(l!=="0"&&l!==0){if(m.indexOf("autoplay")>0){m=m.replace("autoplay=0","autoplay=1")}else{m+="&autoplay=1"}g.addClass("epyt-thumbplay")}var j=Math.max(b("body").scrollTop(),b("html").scrollTop());var k=g.offset().top-parseInt(_EPYT_.gallery_scrolloffset);if(j>k){b("html, body").animate({scrollTop:k},500,function(){a._EPADashboard_.setVidSrc(g,m)})}else{a._EPADashboard_.setVidSrc(g,m)}}).on("keydown",".epyt-gallery-list .epyt-gallery-thumb, .epyt-pagebutton",function(j){var i=j.which;if((i===13)||(i===32)){j.preventDefault();b(this).click()}});h.on("mouseenter",".epyt-gallery-list .epyt-gallery-thumb",function(){b(this).addClass("hover")});h.on("mouseleave",".epyt-gallery-list .epyt-gallery-thumb",function(){b(this).removeClass("hover")});h.on("click",".epyt-pagebutton",function(){var k={action:"my_embedplus_gallery_page",security:_EPYT_.security,options:{playlistId:b(this).data("playlistid"),pageToken:b(this).data("pagetoken"),pageSize:b(this).data("pagesize"),columns:b(this).data("epcolumns"),showTitle:b(this).data("showtitle"),showPaging:b(this).data("showpaging"),autonext:b(this).data("autonext"),hidethumbimg:b(this).data("hidethumbimg"),thumbplay:b(this).data("thumbplay")}};var i=b(this).hasClass("epyt-next");var j=parseInt(h.data("currpage")+"");j+=i?1:-1;h.data("currpage",j);h.find(".epyt-gallery-list").addClass("epyt-loading");b.post(_EPYT_.ajaxurl,k,function(l){h.find(".epyt-gallery-list").html(l);h.find(".epyt-current").each(function(){b(this).text(h.data("currpage"))});h.find('.epyt-gallery-thumb[data-videoid="'+h.data("currvid")+'"]').addClass("epyt-current-video");if(h.find(".epyt-pagebutton").first().data("autonext")=="1"){h.find(".epyt-gallery-thumb").first().click()}}).fail(function(){alert("Sorry, there was an error loading the next page.")}).always(function(){h.find(".epyt-gallery-list").removeClass("epyt-loading");if(h.find(".epyt-pagebutton").first().data("autonext")!="1"){var l=Math.max(b("body").scrollTop(),b("html").scrollTop());var m=h.find(".epyt-gallery-list").offset().top-parseInt(_EPYT_.gallery_scrolloffset);if(l>m){b("html, body").animate({scrollTop:m},500)}}})})})}}}a.onYouTubeIframeAPIReady=typeof a.onYouTubeIframeAPIReady!=="undefined"?a.onYouTubeIframeAPIReady:function(){if(a._EPYT_.pageLoaded){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API ready")}else{b(a).on("load._EPYT_",function(){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API ready 2")})}};if(typeof a.YT==="undefined"){var c=document.createElement("script");c.src="//www.youtube.com/iframe_api";c.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(c)}else{if(a.YT.loaded){if(a._EPYT_.pageLoaded){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API available")}else{b(a).on("load._EPYT_",function(){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API available 2")})}}}if(a._EPYT_.pageLoaded){a._EPADashboard_.doubleCheck()}else{b(a).on("load._EPYT_",function(){a._EPADashboard_.doubleCheck()})}b(document).ready(function(){a._EPADashboard_.pageReady();if(a._EPYT_.ajax_compat){b(a).on("load._EPYT_",function(){b(document).ajaxSuccess(function(f,g,d){if(g&&g.responseText&&g.responseText.indexOf("<iframe ")!==-1){a._EPADashboard_.apiInit();a._EPADashboard_.log("YT API AJAX");a._EPADashboard_.pageReady()}})})}})})(window,jQuery);
youtube.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: YouTube
4
  Plugin URI: https://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx
5
  Description: YouTube Embed and YouTube Gallery WordPress Plugin. Embed a responsive video, YouTube channel, playlist gallery, or live stream
6
- Version: 11.8.4
7
  Author: EmbedPlus Team
8
  Author URI: https://www.embedplus.com
9
  */
@@ -33,7 +33,7 @@ class YouTubePrefs
33
  {
34
 
35
  public static $curltimeout = 20;
36
- public static $version = '11.8.4';
37
  public static $opt_version = 'version';
38
  public static $optembedwidth = null;
39
  public static $optembedheight = null;
@@ -1993,7 +1993,7 @@ class YouTubePrefs
1993
  {
1994
  continue;
1995
  }
1996
-
1997
  if ($cnt == 0 && $options->pageToken == null)
1998
  {
1999
  $init_id = $thumb->id;
@@ -2638,11 +2638,11 @@ class YouTubePrefs
2638
  $new_pointer_content .= '<p>'; // ooopointer
2639
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
2640
  {
2641
- $new_pointer_content .= __("This update adds the ability to hide private videos from galleries, the ability to hide the fullscreen button, and fixes a gallery AJAX issue for both Free and <a target=_blank href=" . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer' . ">Pro versions &raquo;</a>");
2642
  }
2643
  else
2644
  {
2645
- $new_pointer_content .= __("This update adds the ability to hide private videos from galleries, the ability to hide the fullscreen button, and fixes a gallery AJAX issue for both Free and Pro versions. " . '<strong>Important message to YouTube Pro users</strong>: From version 11.7 onward, you must <a href="https://www.embedplus.com/youtube-pro/download/?prokey=' . esc_attr(self::$alloptions[self::$opt_pro]) . '" target="_blank">download the separate plugin here</a> to regain your Pro features. All your settings will automatically migrate after installing the separate Pro download. Thank you for your support and patience during this transition.');
2646
  }
2647
  $new_pointer_content .= '</p>';
2648
 
@@ -3313,18 +3313,18 @@ class YouTubePrefs
3313
  <br>
3314
  <input type="radio" disabled> Default &nbsp; <input type="radio" disabled> Popup lightbox
3315
  </p>
3316
-
3317
- <div class="hr"></div>
3318
 
3319
- <p>
3320
- <img class="sshidethumbimg" src="<?php echo plugins_url('images/sshidethumbimg.jpg', __FILE__) ?>" />
3321
- <input disabled type="checkbox" class="checkbox">
3322
- <label>
3323
- <b class="chktitle">Hide Thumbnail Images:</b> <span class="pronon">(PRO Users)</span> <sup class="orange">NEW</sup>
3324
- (For "Grid" and "Vertical List" gallery layouts only) Hide the image for each thumbnail, leaving just the text. This can improve performance when imagery is not important.
3325
- <a href="<?php echo self::$epbase ?>/responsive-youtube-playlist-channel-gallery-for-wordpress.aspx" target="_blank">See an example here &raquo;</a>
3326
- </label>
3327
- </p>
 
 
3328
 
3329
  <div class="hr"></div>
3330
  <p>
@@ -3529,7 +3529,7 @@ class YouTubePrefs
3529
  <p>
3530
  <input name="<?php echo self::$opt_gallery_showpaging; ?>" id="<?php echo self::$opt_gallery_showpaging; ?>" <?php checked($all[self::$opt_gallery_showpaging], 1); ?> type="checkbox" class="checkbox">
3531
  <label for="<?php echo self::$opt_gallery_showpaging; ?>"><b class="chktitle">Show Pagination:</b> Show the Next/Previous buttons and page numbering.
3532
- It might be useful to hide pagination if you want your gallery to display just a subset of videos from a playlist or channel. That is, only the first page of videos (defined by your page size) will be visible to your visitors if these buttons are hidden.
3533
  </label>
3534
  </p>
3535
  <p>
@@ -4116,7 +4116,8 @@ class YouTubePrefs
4116
  wp_enqueue_style('embedplusyoutube', plugins_url() . '/youtube-embed-plus/scripts/embedplus_mce' . self::$min . '.css');
4117
  wp_enqueue_script('__ytprefs_admin__', plugins_url('scripts/ytprefs-admin' . self::$min . '.js', __FILE__), array('jquery'), self::$version, false);
4118
  $admin_script_vars = array(
4119
- 'wpajaxurl' => admin_url('admin-ajax.php')
 
4120
  //'epblogwidth' => self::get_blogwidth(),
4121
  //'epprokey' => self::$alloptions[self::$opt_pro],
4122
  //'epbasesite' => self::$epbase,
@@ -4126,7 +4127,10 @@ class YouTubePrefs
4126
  );
4127
  wp_localize_script('__ytprefs_admin__', '_EPYTA_', $admin_script_vars);
4128
 
4129
-
 
 
 
4130
 
4131
 
4132
  if ((get_bloginfo('version') >= '3.3') && self::custom_admin_pointers_check())
3
  Plugin Name: YouTube
4
  Plugin URI: https://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx
5
  Description: YouTube Embed and YouTube Gallery WordPress Plugin. Embed a responsive video, YouTube channel, playlist gallery, or live stream
6
+ Version: 11.8.5
7
  Author: EmbedPlus Team
8
  Author URI: https://www.embedplus.com
9
  */
33
  {
34
 
35
  public static $curltimeout = 20;
36
+ public static $version = '11.8.5';
37
  public static $opt_version = 'version';
38
  public static $optembedwidth = null;
39
  public static $optembedheight = null;
1993
  {
1994
  continue;
1995
  }
1996
+
1997
  if ($cnt == 0 && $options->pageToken == null)
1998
  {
1999
  $init_id = $thumb->id;
2638
  $new_pointer_content .= '<p>'; // ooopointer
2639
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
2640
  {
2641
+ $new_pointer_content .= __("This update adds the YouTube wizard button to the new built-in WordPress text widget, and fixes a gallery scrolling issue for both Free and <a target=_blank href=" . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer' . ">Pro versions &raquo;</a>");
2642
  }
2643
  else
2644
  {
2645
+ $new_pointer_content .= __("This update adds the YouTube wizard button to the new built-in WordPress text widget, and fixes a gallery scrolling issue for both Free and Pro versions. " . '<strong>Important message to YouTube Pro users</strong>: From version 11.7 onward, you must <a href="https://www.embedplus.com/youtube-pro/download/?prokey=' . esc_attr(self::$alloptions[self::$opt_pro]) . '" target="_blank">download the separate plugin here</a> to regain your Pro features. All your settings will automatically migrate after installing the separate Pro download. Thank you for your support and patience during this transition.');
2646
  }
2647
  $new_pointer_content .= '</p>';
2648
 
3313
  <br>
3314
  <input type="radio" disabled> Default &nbsp; <input type="radio" disabled> Popup lightbox
3315
  </p>
 
 
3316
 
3317
+ <div class="hr"></div>
3318
+
3319
+ <p>
3320
+ <img class="sshidethumbimg" src="<?php echo plugins_url('images/sshidethumbimg.jpg', __FILE__) ?>" />
3321
+ <input disabled type="checkbox" class="checkbox">
3322
+ <label>
3323
+ <b class="chktitle">Hide Thumbnail Images:</b> <span class="pronon">(PRO Users)</span> <sup class="orange">NEW</sup>
3324
+ (For "Grid" and "Vertical List" gallery layouts only) Hide the image for each thumbnail, leaving just the text. This can improve performance when imagery is not important.
3325
+ <a href="<?php echo self::$epbase ?>/responsive-youtube-playlist-channel-gallery-for-wordpress.aspx" target="_blank">See an example here &raquo;</a>
3326
+ </label>
3327
+ </p>
3328
 
3329
  <div class="hr"></div>
3330
  <p>
3529
  <p>
3530
  <input name="<?php echo self::$opt_gallery_showpaging; ?>" id="<?php echo self::$opt_gallery_showpaging; ?>" <?php checked($all[self::$opt_gallery_showpaging], 1); ?> type="checkbox" class="checkbox">
3531
  <label for="<?php echo self::$opt_gallery_showpaging; ?>"><b class="chktitle">Show Pagination:</b> Show the Next/Previous buttons and page numbering.
3532
+ It might be useful to hide pagination if you want your gallery to display just a subset of videos from a playlist or channel. That is, only the first page of videos (defined by your page size) will be visible to your visitors if these buttons are hidden.
3533
  </label>
3534
  </p>
3535
  <p>
4116
  wp_enqueue_style('embedplusyoutube', plugins_url() . '/youtube-embed-plus/scripts/embedplus_mce' . self::$min . '.css');
4117
  wp_enqueue_script('__ytprefs_admin__', plugins_url('scripts/ytprefs-admin' . self::$min . '.js', __FILE__), array('jquery'), self::$version, false);
4118
  $admin_script_vars = array(
4119
+ 'wpajaxurl' => admin_url('admin-ajax.php'),
4120
+ 'wizhref' => admin_url('admin.php?page=youtube-ep-wizard') . '&random=' . rand(1, 1000) . '&TB_iframe=true&width=950&height=800'
4121
  //'epblogwidth' => self::get_blogwidth(),
4122
  //'epprokey' => self::$alloptions[self::$opt_pro],
4123
  //'epbasesite' => self::$epbase,
4127
  );
4128
  wp_localize_script('__ytprefs_admin__', '_EPYTA_', $admin_script_vars);
4129
 
4130
+ if (function_exists('add_thickbox'))
4131
+ {
4132
+ add_thickbox();
4133
+ }
4134
 
4135
 
4136
  if ((get_bloginfo('version') >= '3.3') && self::custom_admin_pointers_check())