Version Description
Download this release
Release Info
Developer | embedplus |
Plugin | YouTube |
Version | 13.1.2 |
Comparing to | |
See all releases |
Code changes from version 13.1.1 to 13.1.2
- images/index.html +0 -1
- index.html +0 -1
- readme.txt +102 -99
- scripts/index.html +0 -1
- styles/index.html +0 -1
- youtube.php +46 -40
images/index.html
CHANGED
@@ -6,6 +6,5 @@
|
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
9 |
-
<img alt="YouTube Plugin Screenshot" src="../screenshot-3.jpg" />
|
10 |
</body>
|
11 |
</html>
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
|
|
9 |
</body>
|
10 |
</html>
|
index.html
CHANGED
@@ -6,6 +6,5 @@
|
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
9 |
-
<img alt="YouTube Plugin Screenshot" src="screenshot-3.jpg" />
|
10 |
</body>
|
11 |
</html>
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
|
|
9 |
</body>
|
10 |
</html>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== YouTube ===
|
2 |
Contributors: embedplus
|
3 |
-
Plugin Name: YouTube
|
4 |
Tags: youtube gallery, video gallery, youtube channel, youtube live, live stream
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 13.1.
|
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 (with GDPR options)
|
@@ -97,7 +97,7 @@ You can also start and end each individual video at particular times. Like the a
|
|
97 |
|
98 |
See more details after installing. Enjoy!
|
99 |
|
100 |
-
[Maintained by
|
101 |
|
102 |
== Installation ==
|
103 |
|
@@ -120,7 +120,6 @@ See more details after installing. Enjoy!
|
|
120 |
* rel - Set this to 0 to not show related videos at the end of playing (or 1 to show them). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&rel=0"`
|
121 |
* showinfo - Set this to 0 to hide the video title and other info (or 1 to show it). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&showinfo=0"`
|
122 |
* fs - Set this to 0 to hide the fullscreen button (or 1 to show it). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&fs=0"`
|
123 |
-
* autohide - Set this to 1 to slide away the control bar after the video starts playing. It will automatically slide back in again if you mouse over the video. (Set to 2 to always show it). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&autohide=1"`
|
124 |
|
125 |
You can also start and end each individual video at particular times. Like the above, each option should begin with '&'
|
126 |
|
@@ -148,13 +147,17 @@ You can also start and end each individual video at particular times. Like the a
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
-
=
|
|
|
|
|
|
|
|
|
152 |
* Fixes gallery autonext issue
|
153 |
* Fixes deprecated controls parameter
|
154 |
* Fixes "not live" content issue
|
155 |
* Remove deprecated showinfo parameter
|
156 |
|
157 |
-
=
|
158 |
* Brings back the ability to hide related/suggested videos at end of playback
|
159 |
* Allows monetized sites to select multiple IAB categories
|
160 |
* Option to run shortcode in admin (compatibility tab)
|
@@ -162,62 +165,62 @@ You can also start and end each individual video at particular times. Like the a
|
|
162 |
* Fixes "missing dependencies" block editor CSS reference
|
163 |
* Fixes default dimensions issue
|
164 |
|
165 |
-
=
|
166 |
* Clearer instructions
|
167 |
* Feature deprecation (rel, showinfo)
|
168 |
|
169 |
-
=
|
170 |
* Compatible with the new Gutenberg block editor, and stays backwards-compatible with the classic editor
|
171 |
* Marked deprecated features
|
172 |
* Improved wizard instructions
|
173 |
|
174 |
-
=
|
175 |
* Improved ads.txt verification management
|
176 |
* Fixed gallery box-sizing bug
|
177 |
* Remove some deprecated YouTube parameters
|
178 |
|
179 |
-
=
|
180 |
* Improved autoplay compatibility
|
181 |
* Improved sign-up process for the new monetization feature
|
182 |
|
183 |
-
=
|
184 |
* Force HTTPS for the YouTube API if the API is enabled
|
185 |
* Makes the wizard's lightbox expand/contract responsively for different size screens
|
186 |
|
187 |
-
=
|
188 |
* Improves the admin interface, and includes a new optional feature for users that want to monetize their sites through contextual video from vi.ai.
|
189 |
|
190 |
-
=
|
191 |
* Makes the GDPR consent message display more compatible with other plugins (fixes content filter)
|
192 |
|
193 |
-
=
|
194 |
Improved GDPR compliance, with new Privacy section containing:
|
195 |
* GDPR consent mode
|
196 |
* YouTube no cookie
|
197 |
* YouTube API loading restrictions
|
198 |
|
199 |
-
=
|
200 |
* Helps with GDPR compliance by allowing you to choose when YouTube.com's API is loaded
|
201 |
|
202 |
-
=
|
203 |
* Rollback jQuery Updater plugin compatability
|
204 |
|
205 |
-
=
|
206 |
* Updated YouTube API key video tutorial
|
207 |
* Improved channel wizard process
|
208 |
* Better compatibility with jQuery Updater plugin
|
209 |
|
210 |
-
=
|
211 |
* Adds the YouTube wizard button to the new built-in WordPress text widget
|
212 |
* Fixes a Mac/iOS gallery scrolling issue
|
213 |
|
214 |
-
=
|
215 |
* Fixes gallery AJAX issue
|
216 |
* Adds ability to hide fullscreen button
|
217 |
* Adds ability to hide private videos from galleries
|
218 |
* Changes localized script dependency to jquery
|
219 |
|
220 |
-
=
|
221 |
* Improved compatability with PHP 7
|
222 |
* Improved compatability with Divi theme
|
223 |
* Improved AJAX compatibility
|
@@ -227,28 +230,28 @@ Improved GDPR compliance, with new Privacy section containing:
|
|
227 |
* Modernize and improve wizard interface (Pro)
|
228 |
* Ability to hide thumbnail images from galleries (Pro)
|
229 |
|
230 |
-
=
|
231 |
* Fix auto-next gallery issue
|
232 |
* Make settings form more secure
|
233 |
|
234 |
-
=
|
235 |
* Fix playlist gallery issue
|
236 |
|
237 |
-
=
|
238 |
* Improved AJAX theme compatability
|
239 |
* Ability to choose which roles can use the editor wizard
|
240 |
* Volume + autoplay fix
|
241 |
|
242 |
-
=
|
243 |
* Remove gallery thumbnail translucency
|
244 |
* Various bug fixes for galleries and the wizard
|
245 |
|
246 |
-
=
|
247 |
* Separate Free and Pro codebases
|
248 |
* Remove deprecated features
|
249 |
* Clean up code
|
250 |
|
251 |
-
=
|
252 |
* Fixed issue where Free version had some remnants of Pro analytics codebase supporting features here: https://www.embedplus.com/dashboard/easy-youtube-analytics-preview.aspx?platform=sim
|
253 |
* New feature: live streaming from a channel
|
254 |
* Optimized player and gallery loading that may improve GTMetrix reports
|
@@ -258,236 +261,236 @@ Improved GDPR compliance, with new Privacy section containing:
|
|
258 |
* Gallery pagination enhancement
|
259 |
* PHP 7 compatibility testing
|
260 |
|
261 |
-
=
|
262 |
* thumbnail stacking for mobile galleries
|
263 |
* better support for ajax themes
|
264 |
* alt text to images
|
265 |
|
266 |
-
=
|
267 |
* (Free) Improved subscribe button CSS and a new migration option.
|
268 |
* (Pro) Improved accessibility for popup lightbox galleries.
|
269 |
|
270 |
-
=
|
271 |
* (Free) improved debug mode messages
|
272 |
* (Pro) autonext for popup lightbox galleries and hide clear cache button option
|
273 |
|
274 |
-
=
|
275 |
* Improved responsive sizing for AJAX-based themes
|
276 |
* Popup lightbox display option for Pro galleries
|
277 |
|
278 |
-
=
|
279 |
* Adds improved wizard and gallery options for Free and Pro users.
|
280 |
* Improved handling of PHP notices.
|
281 |
* Clear cache shortcut added for Pro users.
|
282 |
|
283 |
-
=
|
284 |
* Automatic continuous play for playlist and channel gallery embeds.
|
285 |
* Ability to add a YouTube channel subscription link to all galleries.
|
286 |
* Ability to hide Previous/Next buttons and page numbers.
|
287 |
* Featured images can now be pulled from playlists (using the thumbnail of the first video).
|
288 |
|
289 |
-
=
|
290 |
Improves HTTPS support for structured data tags, and HTTPS support in Firefox.
|
291 |
|
292 |
-
=
|
293 |
Improves playlist and gallery embedding functionality.
|
294 |
|
295 |
-
=
|
296 |
This version offers a host of updates: compatibility fixes, higher quality featured images, selective responsive sizing, wizard enhancements, and circular shaped thumbnails.
|
297 |
|
298 |
-
=
|
299 |
This update improves compatibility and adds features to Free and Pro galleries.
|
300 |
|
301 |
-
=
|
302 |
Adds legacy option.
|
303 |
|
304 |
-
=
|
305 |
Enhanced debugging support for galleries.
|
306 |
|
307 |
-
=
|
308 |
Enhanced gallery settings for scrolling, video titles, and thumbnail styling.
|
309 |
|
310 |
-
=
|
311 |
Addresses limitations some users were getting when pasting a YouTube channel and/or playlist gallery.
|
312 |
|
313 |
-
=
|
314 |
Adds the ability to make playlist and channel embeds have a gallery layout. By the default, the plugin can generate a grid-based [responsive playlist and channel gallery >>](https://www.embedplus.com/responsive-youtube-playlist-channel-gallery-for-wordpress.aspx)
|
315 |
|
316 |
-
=
|
317 |
Adds start video settings for playlist embeds. You can now choose to start a playlist with a specific video or have the plugin automatically start with the most recently added video.
|
318 |
|
319 |
-
=
|
320 |
Adds the ability to automatically migrate from another plugin's shortcode. Caching feature now allows lifetime settings. Improved compatibility with other plugins using the YouTube API.
|
321 |
|
322 |
-
=
|
323 |
This update includes improved tips (Free and Pro) and adds caching to the Pro version for faster page loading.
|
324 |
|
325 |
-
=
|
326 |
Upgraded code to use YouTube API v3.
|
327 |
|
328 |
-
=
|
329 |
Adds improved accessibility for screen readers and video thumbnail as featured image support.
|
330 |
|
331 |
-
=
|
332 |
Site origin information with each embed code as an extra security measure. In YouTube's/Google's own words, checking this option "protects against malicious third-party JavaScript being injected into your page and hijacking control of your YouTube player." We especially recommend checking it as it adds higher security than the built-in YouTube embedding method that comes with the current version of WordPress (i.e. oembed).
|
333 |
|
334 |
-
=
|
335 |
Adds Autofit Widget option for Free and PRO users. Also adds slide from left animation to [PRO effects >>](https://www.embedplus.com/add-special-effects-to-youtube-embeds-in-wordpress.aspx)
|
336 |
|
337 |
-
=
|
338 |
Improved volume functionality and interface updates (Free and PRO). [Special effects added to PRO version >>](https://www.embedplus.com/add-special-effects-to-youtube-embeds-in-wordpress.aspx)
|
339 |
|
340 |
-
=
|
341 |
HTTPS/SSL detection is now fully automatic. The manual checkbox is no longer needed.
|
342 |
|
343 |
-
=
|
344 |
With this version, the plugin can now automatically detect your site's default language and set the interface of the embedded YouTube player to match.
|
345 |
|
346 |
-
=
|
347 |
Adds automatic localization/internationalization so you can set the player's interface language from English to another.
|
348 |
|
349 |
-
=
|
350 |
Allows volume level initialization.
|
351 |
|
352 |
-
=
|
353 |
* Better embedplus plugin conflict notifications.
|
354 |
* Greater emphasis on HTTPS support due to Google's recent announcement about [HTTPS/SSL as an SEO/SERP signal](https://embedplus.com/convert-old-youtube-embeds-to-https-ssl.aspx).
|
355 |
* Supports latest version of WordPress (3.9.2).
|
356 |
|
357 |
-
=
|
358 |
(PRO) Extends the plugin's existing tagging capabilities by also adding Open Graph markup to enhance Facebook sharing/discovery of your pages.
|
359 |
|
360 |
-
=
|
361 |
Expanded HTTPS/SSL support.
|
362 |
|
363 |
-
=
|
364 |
This update features a new iOS related option for both Free and PRO users. PRO users additionally have the new mobile compatibility checker.
|
365 |
|
366 |
-
=
|
367 |
This update features improved responsive theme support for both Free and PRO versions. It also adds refined schema tag support to the Pro SEO feature.
|
368 |
|
369 |
-
=
|
370 |
Now compatible with WordPress 3.9.
|
371 |
|
372 |
-
=
|
373 |
An at a glance regex impromevent (all users). Dashboard now warns you of embeds that are blocked from your visitors in other countries (PRO).
|
374 |
|
375 |
-
=
|
376 |
Fixes rare YouTube ID issue.
|
377 |
|
378 |
-
=
|
379 |
Fixes rare ajax issue.
|
380 |
|
381 |
-
=
|
382 |
YouTube searching and inserting now works in Text mode of the editor too.
|
383 |
|
384 |
-
=
|
385 |
"At a Glance" direct access to YouTube posts/pages.
|
386 |
|
387 |
-
=
|
388 |
Fixes black bar issue when no height/width is specified.
|
389 |
|
390 |
-
=
|
391 |
Added notice about Google's HD problem.
|
392 |
|
393 |
-
=
|
394 |
Ability to embed an entire channel as a playlist embed.
|
395 |
|
396 |
-
=
|
397 |
Change the color of the progress bar from red to white.
|
398 |
|
399 |
-
=
|
400 |
Added music video extras to inspire your posts (PRO).
|
401 |
|
402 |
-
=
|
403 |
Added autohide controls feature
|
404 |
|
405 |
-
=
|
406 |
Shortcode support for embedding multiple videos on one line
|
407 |
|
408 |
-
=
|
409 |
Fixes for some users of WordPress 3.8
|
410 |
|
411 |
-
=
|
412 |
Removed possible e_notices.
|
413 |
|
414 |
-
=
|
415 |
Given the increasing focus on privacy, the no-cookies options was added as a free option to all users. Priority support enhancements also made.
|
416 |
|
417 |
-
=
|
418 |
Easier access to general settings and dashboard.
|
419 |
|
420 |
-
=
|
421 |
This version opens up the ability to view Internet video discussions to all wizard users.
|
422 |
**Also, due to numerous users being unable to find the wizard button, we moved it up next to the "Add Media" button.**
|
423 |
Finally, we added Video SEO tags as a PRO option.
|
424 |
|
425 |
-
=
|
426 |
Added ability to set default dimensions.
|
427 |
Enhanced compatibility with SSL sites.
|
428 |
|
429 |
-
=
|
430 |
Built-in YouTube video search, viewing, and insertion right from your editor tab (for all users).
|
431 |
The ability to review the latest web discussions about a video you want to embed before embedding it (PRO users).
|
432 |
Other minor optimizations.
|
433 |
|
434 |
-
=
|
435 |
Works when pasting embed link in sidebar text widgets
|
436 |
|
437 |
-
=
|
438 |
Improved separation of PRO and Free features in the UI
|
439 |
|
440 |
-
=
|
441 |
Added optional responsive video layout to fit all screen sizes. (smart phone, PC and tablet)
|
442 |
|
443 |
-
=
|
444 |
Added support for playlists.
|
445 |
added support for wmode.
|
446 |
|
447 |
-
=
|
448 |
Fixed spacing issue. Also added ability to fall back to old spacing format.
|
449 |
|
450 |
-
=
|
451 |
New features for all users: lazy loading for the flash player by default and the ability to hide player controls for a cleaner look.
|
452 |
|
453 |
-
=
|
454 |
Enhanced deleted video checker for PRO users
|
455 |
|
456 |
-
=
|
457 |
Added ability to try to force HTML5 player to speed up page loading
|
458 |
|
459 |
-
=
|
460 |
HTTPS: Added secure YouTube embedding
|
461 |
|
462 |
-
=
|
463 |
Ensures video-specific height overrides defaults properly
|
464 |
|
465 |
-
=
|
466 |
Fixed obscure height problem
|
467 |
|
468 |
-
=
|
469 |
Added Visual YouTube Wizard for PRO users
|
470 |
Added autologin to analytics for PRO users
|
471 |
Added priority support form for PRO users
|
472 |
|
473 |
-
=
|
474 |
Compatible with WP 3.6
|
475 |
|
476 |
-
=
|
477 |
Added auto HD support
|
478 |
Support for shorthand (i.e. `"https://www.youtu.be"`)
|
479 |
Fixed editor issue
|
480 |
|
481 |
-
=
|
482 |
Start/end time shortcut bug fix
|
483 |
|
484 |
-
=
|
485 |
Minor changes
|
486 |
|
487 |
-
=
|
488 |
By request from several users, we've added easier access to the video analytics dashboard
|
489 |
|
490 |
-
=
|
491 |
|
492 |
This upgrade specifically integrates a user-friendly YouTube Analytics Dashboard to this plugin so you can learn a lot more about the videos you post. Download it if you would like it to use your site's YouTube-related activity to help answer questions like:
|
493 |
|
@@ -498,10 +501,10 @@ This upgrade specifically integrates a user-friendly YouTube Analytics Dashboard
|
|
498 |
|
499 |
We think these are all interesting questions; however, note that there's no need to upgrade if you don't.
|
500 |
|
501 |
-
=
|
502 |
Fixed minor bug.
|
503 |
|
504 |
-
=
|
505 |
First release uploaded to the plugin repository.
|
506 |
|
507 |
== Other Notes ==
|
1 |
+
=== Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream ===
|
2 |
Contributors: embedplus
|
3 |
+
Plugin Name: Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream
|
4 |
Tags: youtube gallery, video gallery, youtube channel, youtube live, live stream
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 13.1.2
|
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 (with GDPR options)
|
97 |
|
98 |
See more details after installing. Enjoy!
|
99 |
|
100 |
+
[Maintained by Embed Plus for YouTube >>](https://www.embedplus.com/)
|
101 |
|
102 |
== Installation ==
|
103 |
|
120 |
* rel - Set this to 0 to not show related videos at the end of playing (or 1 to show them). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&rel=0"`
|
121 |
* showinfo - Set this to 0 to hide the video title and other info (or 1 to show it). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&showinfo=0"`
|
122 |
* fs - Set this to 0 to hide the fullscreen button (or 1 to show it). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&fs=0"`
|
|
|
123 |
|
124 |
You can also start and end each individual video at particular times. Like the above, each option should begin with '&'
|
125 |
|
147 |
|
148 |
== Changelog ==
|
149 |
|
150 |
+
= Embed Plus for YouTube WordPress Plugin 13.1.2 =
|
151 |
+
* More descriptive plugin name
|
152 |
+
* Gallery column size and YouTube API message fixes
|
153 |
+
|
154 |
+
= Embed Plus for YouTube WordPress Plugin 13.1.1 =
|
155 |
* Fixes gallery autonext issue
|
156 |
* Fixes deprecated controls parameter
|
157 |
* Fixes "not live" content issue
|
158 |
* Remove deprecated showinfo parameter
|
159 |
|
160 |
+
= Embed Plus for YouTube WordPress Plugin 13.1 =
|
161 |
* Brings back the ability to hide related/suggested videos at end of playback
|
162 |
* Allows monetized sites to select multiple IAB categories
|
163 |
* Option to run shortcode in admin (compatibility tab)
|
165 |
* Fixes "missing dependencies" block editor CSS reference
|
166 |
* Fixes default dimensions issue
|
167 |
|
168 |
+
= Embed Plus for YouTube WordPress Plugin 13.0.1 =
|
169 |
* Clearer instructions
|
170 |
* Feature deprecation (rel, showinfo)
|
171 |
|
172 |
+
= Embed Plus for YouTube WordPress Plugin 13.0 =
|
173 |
* Compatible with the new Gutenberg block editor, and stays backwards-compatible with the classic editor
|
174 |
* Marked deprecated features
|
175 |
* Improved wizard instructions
|
176 |
|
177 |
+
= Embed Plus for YouTube WordPress Plugin 12.2 =
|
178 |
* Improved ads.txt verification management
|
179 |
* Fixed gallery box-sizing bug
|
180 |
* Remove some deprecated YouTube parameters
|
181 |
|
182 |
+
= Embed Plus for YouTube WordPress Plugin 12.1 =
|
183 |
* Improved autoplay compatibility
|
184 |
* Improved sign-up process for the new monetization feature
|
185 |
|
186 |
+
= Embed Plus for YouTube WordPress Plugin 12.0.1 =
|
187 |
* Force HTTPS for the YouTube API if the API is enabled
|
188 |
* Makes the wizard's lightbox expand/contract responsively for different size screens
|
189 |
|
190 |
+
= Embed Plus for YouTube WordPress Plugin 12.0 =
|
191 |
* Improves the admin interface, and includes a new optional feature for users that want to monetize their sites through contextual video from vi.ai.
|
192 |
|
193 |
+
= Embed Plus for YouTube WordPress Plugin 11.9.2 =
|
194 |
* Makes the GDPR consent message display more compatible with other plugins (fixes content filter)
|
195 |
|
196 |
+
= Embed Plus for YouTube WordPress Plugin 11.9.1 =
|
197 |
Improved GDPR compliance, with new Privacy section containing:
|
198 |
* GDPR consent mode
|
199 |
* YouTube no cookie
|
200 |
* YouTube API loading restrictions
|
201 |
|
202 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.7 =
|
203 |
* Helps with GDPR compliance by allowing you to choose when YouTube.com's API is loaded
|
204 |
|
205 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.6.1 =
|
206 |
* Rollback jQuery Updater plugin compatability
|
207 |
|
208 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.6 =
|
209 |
* Updated YouTube API key video tutorial
|
210 |
* Improved channel wizard process
|
211 |
* Better compatibility with jQuery Updater plugin
|
212 |
|
213 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.5 =
|
214 |
* Adds the YouTube wizard button to the new built-in WordPress text widget
|
215 |
* Fixes a Mac/iOS gallery scrolling issue
|
216 |
|
217 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.4 =
|
218 |
* Fixes gallery AJAX issue
|
219 |
* Adds ability to hide fullscreen button
|
220 |
* Adds ability to hide private videos from galleries
|
221 |
* Changes localized script dependency to jquery
|
222 |
|
223 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.3 =
|
224 |
* Improved compatability with PHP 7
|
225 |
* Improved compatability with Divi theme
|
226 |
* Improved AJAX compatibility
|
230 |
* Modernize and improve wizard interface (Pro)
|
231 |
* Ability to hide thumbnail images from galleries (Pro)
|
232 |
|
233 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.2 =
|
234 |
* Fix auto-next gallery issue
|
235 |
* Make settings form more secure
|
236 |
|
237 |
+
= Embed Plus for YouTube WordPress Plugin 11.8.1 =
|
238 |
* Fix playlist gallery issue
|
239 |
|
240 |
+
= Embed Plus for YouTube WordPress Plugin 11.8 =
|
241 |
* Improved AJAX theme compatability
|
242 |
* Ability to choose which roles can use the editor wizard
|
243 |
* Volume + autoplay fix
|
244 |
|
245 |
+
= Embed Plus for YouTube WordPress Plugin 11.7.1 =
|
246 |
* Remove gallery thumbnail translucency
|
247 |
* Various bug fixes for galleries and the wizard
|
248 |
|
249 |
+
= Embed Plus for YouTube WordPress Plugin 11.7 =
|
250 |
* Separate Free and Pro codebases
|
251 |
* Remove deprecated features
|
252 |
* Clean up code
|
253 |
|
254 |
+
= Embed Plus for YouTube WordPress Plugin 11.6 =
|
255 |
* Fixed issue where Free version had some remnants of Pro analytics codebase supporting features here: https://www.embedplus.com/dashboard/easy-youtube-analytics-preview.aspx?platform=sim
|
256 |
* New feature: live streaming from a channel
|
257 |
* Optimized player and gallery loading that may improve GTMetrix reports
|
261 |
* Gallery pagination enhancement
|
262 |
* PHP 7 compatibility testing
|
263 |
|
264 |
+
= Embed Plus for YouTube WordPress Plugin 11.5 =
|
265 |
* thumbnail stacking for mobile galleries
|
266 |
* better support for ajax themes
|
267 |
* alt text to images
|
268 |
|
269 |
+
= Embed Plus for YouTube WordPress Plugin 11.4 =
|
270 |
* (Free) Improved subscribe button CSS and a new migration option.
|
271 |
* (Pro) Improved accessibility for popup lightbox galleries.
|
272 |
|
273 |
+
= Embed Plus for YouTube WordPress Plugin 11.3.1 =
|
274 |
* (Free) improved debug mode messages
|
275 |
* (Pro) autonext for popup lightbox galleries and hide clear cache button option
|
276 |
|
277 |
+
= Embed Plus for YouTube WordPress Plugin 11.3 =
|
278 |
* Improved responsive sizing for AJAX-based themes
|
279 |
* Popup lightbox display option for Pro galleries
|
280 |
|
281 |
+
= Embed Plus for YouTube WordPress Plugin 11.2 =
|
282 |
* Adds improved wizard and gallery options for Free and Pro users.
|
283 |
* Improved handling of PHP notices.
|
284 |
* Clear cache shortcut added for Pro users.
|
285 |
|
286 |
+
= Embed Plus for YouTube WordPress Plugin 11.1 =
|
287 |
* Automatic continuous play for playlist and channel gallery embeds.
|
288 |
* Ability to add a YouTube channel subscription link to all galleries.
|
289 |
* Ability to hide Previous/Next buttons and page numbers.
|
290 |
* Featured images can now be pulled from playlists (using the thumbnail of the first video).
|
291 |
|
292 |
+
= Embed Plus for YouTube WordPress Plugin 11.0.1 =
|
293 |
Improves HTTPS support for structured data tags, and HTTPS support in Firefox.
|
294 |
|
295 |
+
= Embed Plus for YouTube WordPress Plugin 11.0 =
|
296 |
Improves playlist and gallery embedding functionality.
|
297 |
|
298 |
+
= Embed Plus for YouTube WordPress Plugin 10.9 =
|
299 |
This version offers a host of updates: compatibility fixes, higher quality featured images, selective responsive sizing, wizard enhancements, and circular shaped thumbnails.
|
300 |
|
301 |
+
= Embed Plus for YouTube WordPress Plugin 10.8 =
|
302 |
This update improves compatibility and adds features to Free and Pro galleries.
|
303 |
|
304 |
+
= Embed Plus for YouTube WordPress Plugin 10.7 =
|
305 |
Adds legacy option.
|
306 |
|
307 |
+
= Embed Plus for YouTube WordPress Plugin 10.6 =
|
308 |
Enhanced debugging support for galleries.
|
309 |
|
310 |
+
= Embed Plus for YouTube WordPress Plugin 10.5 =
|
311 |
Enhanced gallery settings for scrolling, video titles, and thumbnail styling.
|
312 |
|
313 |
+
= Embed Plus for YouTube WordPress Plugin 10.4 =
|
314 |
Addresses limitations some users were getting when pasting a YouTube channel and/or playlist gallery.
|
315 |
|
316 |
+
= Embed Plus for YouTube WordPress Plugin 10.3 =
|
317 |
Adds the ability to make playlist and channel embeds have a gallery layout. By the default, the plugin can generate a grid-based [responsive playlist and channel gallery >>](https://www.embedplus.com/responsive-youtube-playlist-channel-gallery-for-wordpress.aspx)
|
318 |
|
319 |
+
= Embed Plus for YouTube WordPress Plugin 10.2 =
|
320 |
Adds start video settings for playlist embeds. You can now choose to start a playlist with a specific video or have the plugin automatically start with the most recently added video.
|
321 |
|
322 |
+
= Embed Plus for YouTube WordPress Plugin 10.1 =
|
323 |
Adds the ability to automatically migrate from another plugin's shortcode. Caching feature now allows lifetime settings. Improved compatibility with other plugins using the YouTube API.
|
324 |
|
325 |
+
= Embed Plus for YouTube WordPress Plugin 10.0 =
|
326 |
This update includes improved tips (Free and Pro) and adds caching to the Pro version for faster page loading.
|
327 |
|
328 |
+
= Embed Plus for YouTube WordPress Plugin 9.8 =
|
329 |
Upgraded code to use YouTube API v3.
|
330 |
|
331 |
+
= Embed Plus for YouTube WordPress Plugin 9.7 =
|
332 |
Adds improved accessibility for screen readers and video thumbnail as featured image support.
|
333 |
|
334 |
+
= Embed Plus for YouTube WordPress Plugin 9.5 =
|
335 |
Site origin information with each embed code as an extra security measure. In YouTube's/Google's own words, checking this option "protects against malicious third-party JavaScript being injected into your page and hijacking control of your YouTube player." We especially recommend checking it as it adds higher security than the built-in YouTube embedding method that comes with the current version of WordPress (i.e. oembed).
|
336 |
|
337 |
+
= Embed Plus for YouTube WordPress Plugin 9.4 =
|
338 |
Adds Autofit Widget option for Free and PRO users. Also adds slide from left animation to [PRO effects >>](https://www.embedplus.com/add-special-effects-to-youtube-embeds-in-wordpress.aspx)
|
339 |
|
340 |
+
= Embed Plus for YouTube WordPress Plugin 9.3 =
|
341 |
Improved volume functionality and interface updates (Free and PRO). [Special effects added to PRO version >>](https://www.embedplus.com/add-special-effects-to-youtube-embeds-in-wordpress.aspx)
|
342 |
|
343 |
+
= Embed Plus for YouTube WordPress Plugin 9.2 =
|
344 |
HTTPS/SSL detection is now fully automatic. The manual checkbox is no longer needed.
|
345 |
|
346 |
+
= Embed Plus for YouTube WordPress Plugin 9.1 =
|
347 |
With this version, the plugin can now automatically detect your site's default language and set the interface of the embedded YouTube player to match.
|
348 |
|
349 |
+
= Embed Plus for YouTube WordPress Plugin 9.0 =
|
350 |
Adds automatic localization/internationalization so you can set the player's interface language from English to another.
|
351 |
|
352 |
+
= Embed Plus for YouTube WordPress Plugin 8.9 =
|
353 |
Allows volume level initialization.
|
354 |
|
355 |
+
= Embed Plus for YouTube WordPress Plugin 8.8 =
|
356 |
* Better embedplus plugin conflict notifications.
|
357 |
* Greater emphasis on HTTPS support due to Google's recent announcement about [HTTPS/SSL as an SEO/SERP signal](https://embedplus.com/convert-old-youtube-embeds-to-https-ssl.aspx).
|
358 |
* Supports latest version of WordPress (3.9.2).
|
359 |
|
360 |
+
= Embed Plus for YouTube WordPress Plugin 8.7 =
|
361 |
(PRO) Extends the plugin's existing tagging capabilities by also adding Open Graph markup to enhance Facebook sharing/discovery of your pages.
|
362 |
|
363 |
+
= Embed Plus for YouTube WordPress Plugin 8.6 =
|
364 |
Expanded HTTPS/SSL support.
|
365 |
|
366 |
+
= Embed Plus for YouTube WordPress Plugin 8.5 =
|
367 |
This update features a new iOS related option for both Free and PRO users. PRO users additionally have the new mobile compatibility checker.
|
368 |
|
369 |
+
= Embed Plus for YouTube WordPress Plugin 8.4 =
|
370 |
This update features improved responsive theme support for both Free and PRO versions. It also adds refined schema tag support to the Pro SEO feature.
|
371 |
|
372 |
+
= Embed Plus for YouTube WordPress Plugin 8.3 =
|
373 |
Now compatible with WordPress 3.9.
|
374 |
|
375 |
+
= Embed Plus for YouTube WordPress Plugin 8.2 =
|
376 |
An at a glance regex impromevent (all users). Dashboard now warns you of embeds that are blocked from your visitors in other countries (PRO).
|
377 |
|
378 |
+
= Embed Plus for YouTube WordPress Plugin 8.1 =
|
379 |
Fixes rare YouTube ID issue.
|
380 |
|
381 |
+
= Embed Plus for YouTube WordPress Plugin 8.0 =
|
382 |
Fixes rare ajax issue.
|
383 |
|
384 |
+
= Embed Plus for YouTube WordPress Plugin 7.9 =
|
385 |
YouTube searching and inserting now works in Text mode of the editor too.
|
386 |
|
387 |
+
= Embed Plus for YouTube WordPress Plugin 7.8 =
|
388 |
"At a Glance" direct access to YouTube posts/pages.
|
389 |
|
390 |
+
= Embed Plus for YouTube WordPress Plugin 7.7 =
|
391 |
Fixes black bar issue when no height/width is specified.
|
392 |
|
393 |
+
= Embed Plus for YouTube WordPress Plugin 7.6 =
|
394 |
Added notice about Google's HD problem.
|
395 |
|
396 |
+
= Embed Plus for YouTube WordPress Plugin 7.5 =
|
397 |
Ability to embed an entire channel as a playlist embed.
|
398 |
|
399 |
+
= Embed Plus for YouTube WordPress Plugin 7.3 =
|
400 |
Change the color of the progress bar from red to white.
|
401 |
|
402 |
+
= Embed Plus for YouTube WordPress Plugin 7.2 =
|
403 |
Added music video extras to inspire your posts (PRO).
|
404 |
|
405 |
+
= Embed Plus for YouTube WordPress Plugin 7.1 =
|
406 |
Added autohide controls feature
|
407 |
|
408 |
+
= Embed Plus for YouTube WordPress Plugin 7.0 =
|
409 |
Shortcode support for embedding multiple videos on one line
|
410 |
|
411 |
+
= Embed Plus for YouTube WordPress Plugin 6.4 =
|
412 |
Fixes for some users of WordPress 3.8
|
413 |
|
414 |
+
= Embed Plus for YouTube WordPress Plugin 6.3 =
|
415 |
Removed possible e_notices.
|
416 |
|
417 |
+
= Embed Plus for YouTube WordPress Plugin 6.2 =
|
418 |
Given the increasing focus on privacy, the no-cookies options was added as a free option to all users. Priority support enhancements also made.
|
419 |
|
420 |
+
= Embed Plus for YouTube WordPress Plugin 6.1 =
|
421 |
Easier access to general settings and dashboard.
|
422 |
|
423 |
+
= Embed Plus for YouTube WordPress Plugin 6.0 =
|
424 |
This version opens up the ability to view Internet video discussions to all wizard users.
|
425 |
**Also, due to numerous users being unable to find the wizard button, we moved it up next to the "Add Media" button.**
|
426 |
Finally, we added Video SEO tags as a PRO option.
|
427 |
|
428 |
+
= Embed Plus for YouTube WordPress Plugin 5.1 =
|
429 |
Added ability to set default dimensions.
|
430 |
Enhanced compatibility with SSL sites.
|
431 |
|
432 |
+
= Embed Plus for YouTube WordPress Plugin 5.0 =
|
433 |
Built-in YouTube video search, viewing, and insertion right from your editor tab (for all users).
|
434 |
The ability to review the latest web discussions about a video you want to embed before embedding it (PRO users).
|
435 |
Other minor optimizations.
|
436 |
|
437 |
+
= Embed Plus for YouTube WordPress Plugin 4.8 =
|
438 |
Works when pasting embed link in sidebar text widgets
|
439 |
|
440 |
+
= Embed Plus for YouTube WordPress Plugin 4.7 =
|
441 |
Improved separation of PRO and Free features in the UI
|
442 |
|
443 |
+
= Embed Plus for YouTube WordPress Plugin 4.6 =
|
444 |
Added optional responsive video layout to fit all screen sizes. (smart phone, PC and tablet)
|
445 |
|
446 |
+
= Embed Plus for YouTube WordPress Plugin 4.5 =
|
447 |
Added support for playlists.
|
448 |
added support for wmode.
|
449 |
|
450 |
+
= Embed Plus for YouTube WordPress Plugin 4.1 =
|
451 |
Fixed spacing issue. Also added ability to fall back to old spacing format.
|
452 |
|
453 |
+
= Embed Plus for YouTube WordPress Plugin 4.0 =
|
454 |
New features for all users: lazy loading for the flash player by default and the ability to hide player controls for a cleaner look.
|
455 |
|
456 |
+
= Embed Plus for YouTube WordPress Plugin 3.7 =
|
457 |
Enhanced deleted video checker for PRO users
|
458 |
|
459 |
+
= Embed Plus for YouTube WordPress Plugin 3.5 =
|
460 |
Added ability to try to force HTML5 player to speed up page loading
|
461 |
|
462 |
+
= Embed Plus for YouTube WordPress Plugin 3.3 =
|
463 |
HTTPS: Added secure YouTube embedding
|
464 |
|
465 |
+
= Embed Plus for YouTube WordPress Plugin 3.2 =
|
466 |
Ensures video-specific height overrides defaults properly
|
467 |
|
468 |
+
= Embed Plus for YouTube WordPress Plugin 3.1 =
|
469 |
Fixed obscure height problem
|
470 |
|
471 |
+
= Embed Plus for YouTube WordPress Plugin 3.0 =
|
472 |
Added Visual YouTube Wizard for PRO users
|
473 |
Added autologin to analytics for PRO users
|
474 |
Added priority support form for PRO users
|
475 |
|
476 |
+
= Embed Plus for YouTube WordPress Plugin 2.6 =
|
477 |
Compatible with WP 3.6
|
478 |
|
479 |
+
= Embed Plus for YouTube WordPress Plugin 2.4 =
|
480 |
Added auto HD support
|
481 |
Support for shorthand (i.e. `"https://www.youtu.be"`)
|
482 |
Fixed editor issue
|
483 |
|
484 |
+
= Embed Plus for YouTube WordPress Plugin 2.3 =
|
485 |
Start/end time shortcut bug fix
|
486 |
|
487 |
+
= Embed Plus for YouTube WordPress Plugin 2.2 =
|
488 |
Minor changes
|
489 |
|
490 |
+
= Embed Plus for YouTube WordPress Plugin 2.1 =
|
491 |
By request from several users, we've added easier access to the video analytics dashboard
|
492 |
|
493 |
+
= Embed Plus for YouTube WordPress Plugin 2.0 =
|
494 |
|
495 |
This upgrade specifically integrates a user-friendly YouTube Analytics Dashboard to this plugin so you can learn a lot more about the videos you post. Download it if you would like it to use your site's YouTube-related activity to help answer questions like:
|
496 |
|
501 |
|
502 |
We think these are all interesting questions; however, note that there's no need to upgrade if you don't.
|
503 |
|
504 |
+
= Embed Plus for YouTube WordPress Plugin 1.1 =
|
505 |
Fixed minor bug.
|
506 |
|
507 |
+
= Embed Plus for YouTube WordPress Plugin 1.0 =
|
508 |
First release uploaded to the plugin repository.
|
509 |
|
510 |
== Other Notes ==
|
scripts/index.html
CHANGED
@@ -6,6 +6,5 @@
|
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
9 |
-
<img alt="YouTube Plugin Screenshot" src="../screenshot-3.jpg" />
|
10 |
</body>
|
11 |
</html>
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
|
|
9 |
</body>
|
10 |
</html>
|
styles/index.html
CHANGED
@@ -6,6 +6,5 @@
|
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
9 |
-
<img alt="YouTube Plugin Screenshot" src="screenshot-3.jpg" />
|
10 |
</body>
|
11 |
</html>
|
6 |
<meta name="viewport" content="width=device-width">
|
7 |
</head>
|
8 |
<body>
|
|
|
9 |
</body>
|
10 |
</html>
|
youtube.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Plugin Name: YouTube
|
4 |
Plugin URI: https://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx?ref=plugin
|
5 |
Description: YouTube Embed and YouTube Gallery WordPress Plugin. Embed a responsive video, YouTube channel, playlist gallery, or live stream
|
6 |
-
Version: 13.1.
|
7 |
-
Author:
|
8 |
Author URI: https://www.embedplus.com
|
9 |
*/
|
10 |
|
11 |
/*
|
12 |
-
YouTube
|
13 |
Copyright (C) 2019 EmbedPlus.com
|
14 |
|
15 |
This program is free software: you can redistribute it and/or modify
|
@@ -34,7 +34,7 @@ class YouTubePrefs
|
|
34 |
|
35 |
public static $folder_name = 'youtube-embed-plus';
|
36 |
public static $curltimeout = 30;
|
37 |
-
public static $version = '13.1.
|
38 |
public static $opt_version = 'version';
|
39 |
public static $optembedwidth = null;
|
40 |
public static $optembedheight = null;
|
@@ -124,15 +124,16 @@ class YouTubePrefs
|
|
124 |
public static $onboarding_hook = '';
|
125 |
public static $admin_page_hooks = array();
|
126 |
public static $the_content_filters = array(
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
public static $get_api_key_msg = 'The ### feature now requires a (free) YouTube API key from Google. Please follow the easy steps <a href="https://www.youtube.com/watch?v=6gD0X76-v_g" target="_blank">in this video</a> to create and save your API key.';
|
|
|
136 |
public static $dft_gdpr_consent_message = '<p><strong>Please accept YouTube cookies to play this video.</strong> By accepting you will be accessing content from YouTube, a service provided by an external third party.</p><p><a href="https://policies.google.com/privacy" target="_blank">YouTube privacy policy</a></p><p>If you accept this notice, your choice will be saved and the page will refresh.</p>';
|
137 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
138 |
|
@@ -421,7 +422,7 @@ class YouTubePrefs
|
|
421 |
{
|
422 |
$total = $wpdb->get_var("SELECT FOUND_ROWS();");
|
423 |
global $post;
|
424 |
-
echo '<h2
|
425 |
?>
|
426 |
|
427 |
We recommend using this page as an easy way to check the results of the global default settings you make (e.g. hide annotations) on your recent embeds. Or, simply use it as an index to jump right to your posts that contain YouTube embeds.
|
@@ -455,7 +456,7 @@ class YouTubePrefs
|
|
455 |
|
456 |
public static function is_ajax()
|
457 |
{
|
458 |
-
$is_ajax = (function_exists('wp_doing_ajax') && wp_doing_ajax() || (!empty(
|
459 |
if ($is_ajax)
|
460 |
{
|
461 |
header('HTTP/1.1 200 OK');
|
@@ -1314,6 +1315,19 @@ class YouTubePrefs
|
|
1314 |
return false;
|
1315 |
}
|
1316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1317 |
public static function get_search_page($options)
|
1318 |
{
|
1319 |
$gallobj = new stdClass();
|
@@ -1337,9 +1351,7 @@ class YouTubePrefs
|
|
1337 |
|
1338 |
if (is_wp_error($apiResult))
|
1339 |
{
|
1340 |
-
$gallobj->html =
|
1341 |
-
' Please make sure you performed the <a href="https://www.youtube.com/watch?v=6gD0X76-v_g" target="_blank">steps in this video</a> to create and save a proper server API key.' .
|
1342 |
-
'</div>';
|
1343 |
return $gallobj;
|
1344 |
}
|
1345 |
|
@@ -1349,12 +1361,10 @@ class YouTubePrefs
|
|
1349 |
{
|
1350 |
if (isset($jsonResult->error->message))
|
1351 |
{
|
1352 |
-
$gallobj->html =
|
1353 |
-
' Please make sure you performed the <a href="https://www.youtube.com/watch?v=6gD0X76-v_g" target="_blank">steps in this video</a> to create and save a proper server API key.' .
|
1354 |
-
'</div>';
|
1355 |
return $gallobj;
|
1356 |
}
|
1357 |
-
$gallobj->html = '<div>Sorry, there may be an issue with your YouTube API key.
|
1358 |
return $gallobj;
|
1359 |
}
|
1360 |
|
@@ -1568,7 +1578,8 @@ class YouTubePrefs
|
|
1568 |
echo '<a class="epxout">×</a>';
|
1569 |
}
|
1570 |
?>
|
1571 |
-
Seems like you have two different YouTube plugins by the EmbedPlus Team installed: <b
|
|
|
1572 |
</div>
|
1573 |
|
1574 |
<script type="text/javascript">
|
@@ -2063,7 +2074,7 @@ class YouTubePrefs
|
|
2063 |
$gallobj = new stdClass();
|
2064 |
|
2065 |
$options->pageSize = min(intval($options->pageSize), 50);
|
2066 |
-
$options->columns = intval($options->columns);
|
2067 |
$options->showTitle = intval($options->showTitle);
|
2068 |
$options->showPaging = intval($options->showPaging);
|
2069 |
$options->autonext = intval($options->autonext);
|
@@ -2090,9 +2101,7 @@ class YouTubePrefs
|
|
2090 |
|
2091 |
if (is_wp_error($apiResult))
|
2092 |
{
|
2093 |
-
$gallobj->html =
|
2094 |
-
' Please make sure you performed the <a href="https://www.youtube.com/watch?v=6gD0X76-v_g" target="_blank">steps in this video</a> to create and save a proper server API key.' .
|
2095 |
-
'</div>';
|
2096 |
return $gallobj;
|
2097 |
}
|
2098 |
|
@@ -2111,12 +2120,10 @@ class YouTubePrefs
|
|
2111 |
{
|
2112 |
if (isset($jsonResult->error->message))
|
2113 |
{
|
2114 |
-
$gallobj->html =
|
2115 |
-
' Please make sure you performed the <a href="https://www.youtube.com/watch?v=6gD0X76-v_g" target="_blank">steps in this video</a> to create and save a proper server API key.' .
|
2116 |
-
'</div>';
|
2117 |
return $gallobj;
|
2118 |
}
|
2119 |
-
$gallobj->html = '<div>Sorry, there may be an issue with your YouTube API key.
|
2120 |
return $gallobj;
|
2121 |
}
|
2122 |
|
@@ -2396,7 +2403,6 @@ class YouTubePrefs
|
|
2396 |
|
2397 |
if (!isset($linkparams['v']))
|
2398 |
{
|
2399 |
-
//return apply_filters('the_content', wp_kses_post(self::$alloptions[self::$opt_not_live_content]));
|
2400 |
return apply_filters('ytprefs_filter_the_content_light', wp_kses_post(self::$alloptions[self::$opt_not_live_content]));
|
2401 |
}
|
2402 |
}
|
@@ -2604,7 +2610,6 @@ class YouTubePrefs
|
|
2604 |
$code1 = '<div ' . $centercode . ' id="_ytid_' . rand(10000, 99999) . '"'; //'" width="' . self::$defaultwidth . '" height="' . self::$defaultheight . '" ';
|
2605 |
$code2 = ' class="__youtube_prefs__ __youtube_prefs_gdpr__ ' . ($iscontent ? '' : ' __youtube_prefs_widget__') . '" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll="">' .
|
2606 |
apply_filters('ytprefs_filter_the_content_light', wp_kses_post(self::$alloptions[self::$opt_gdpr_consent_message])) .
|
2607 |
-
//apply_filters('the_content', wp_kses_post(self::$alloptions[self::$opt_gdpr_consent_message])) .
|
2608 |
'<button type="button" class="__youtube_prefs_gdpr__">' . trim(sanitize_text_field(self::$alloptions[self::$opt_gdpr_consent_button])) .
|
2609 |
'<img src="' . plugins_url('images/icon-check.png', __FILE__) . '" alt="accept" data-no-lazy="1" data-skipgform_ajax_framebjll="" /></button>' .
|
2610 |
'</div>';
|
@@ -2780,7 +2785,7 @@ class YouTubePrefs
|
|
2780 |
|
2781 |
public static function ytprefs_plugin_menu()
|
2782 |
{
|
2783 |
-
self::$admin_page_hooks[] = add_menu_page('YouTube Settings', 'YouTube Free', 'manage_options', 'youtube-my-preferences', array(get_class(), 'ytprefs_show_options'),
|
2784 |
self::$admin_page_hooks[] = add_submenu_page('youtube-my-preferences', '', '', 'manage_options', 'youtube-my-preferences', array(get_class(), 'ytprefs_show_options'));
|
2785 |
|
2786 |
include_once(EPYTVI_INCLUDES_PATH . 'vi_admin_menu.php');
|
@@ -2905,9 +2910,9 @@ class YouTubePrefs
|
|
2905 |
$new_pointer_content = '<h3>' . __('New Update') . '</h3>'; // ooopointer
|
2906 |
|
2907 |
$new_pointer_content .= '<p>'; // ooopointer
|
2908 |
-
$new_pointer_content .= "This version
|
2909 |
//$new_pointer_content .= "This version brings back the ability to hide related/suggested videos that show up at the end of YouTube embeds. It also allows monetized sites that are embedding video intelligence (vi) ads to select multiple IAB categories to get more content variety. "
|
2910 |
-
|
2911 |
|
2912 |
if (!empty(self::$alloptions[self::$opt_pro]) && strlen(trim(self::$alloptions[self::$opt_pro])) > 0)
|
2913 |
{
|
@@ -3276,6 +3281,7 @@ class YouTubePrefs
|
|
3276 |
<style type="text/css">
|
3277 |
.wrap {font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif; color: #000000;}
|
3278 |
.wrap-ytprefs {max-width: 1064px;}
|
|
|
3279 |
#ytform p { line-height: 20px; margin: 18px 0; }
|
3280 |
.ytindent {padding: 0px 0px 0px 20px; font-size: 13px; margin-bottom: 100px;}
|
3281 |
.ytindent ul, .ytindent p {font-size: 13px;}
|
@@ -3437,7 +3443,7 @@ class YouTubePrefs
|
|
3437 |
}
|
3438 |
</style>
|
3439 |
<div class="wrap wrap-ytprefs">
|
3440 |
-
<h1><
|
3441 |
<?php
|
3442 |
self::settings_nav();
|
3443 |
?>
|
@@ -3806,7 +3812,7 @@ class YouTubePrefs
|
|
3806 |
</p>
|
3807 |
<p>
|
3808 |
<label for="<?php echo self::$opt_gallery_columns; ?>"><b class="chktitle">Number of Columns:</b></label>
|
3809 |
-
<input name="<?php echo self::$opt_gallery_columns; ?>" id="<?php echo self::$opt_gallery_columns; ?>" type="number" class="textinput" style="width: 60px;" value="<?php echo esc_attr(trim($all[self::$opt_gallery_columns])); ?>">
|
3810 |
Enter how many thumbnails can fit per row.
|
3811 |
</p>
|
3812 |
<p>
|
@@ -4715,7 +4721,7 @@ class YouTubePrefs
|
|
4715 |
<img class="yob-standalone-icon" src="<?php echo plugins_url('images/icon-playlist-self.png', __FILE__) ?>"/>
|
4716 |
<img class="yob-live-icon" src="<?php echo plugins_url('images/icon-player-live.png', __FILE__) ?>"/>
|
4717 |
<img class="yob-privacy-icon" src="<?php echo plugins_url('images/icon-player-privacy.png', __FILE__) ?>"/>
|
4718 |
-
<!-- <img class="yob-monetize-icon" src="<?php echo plugins_url('images/icon-player-money.png', __FILE__) ?>"/>-->
|
4719 |
</div>
|
4720 |
<ul class="ytprefs-ob-filter">
|
4721 |
<li><label><input type="checkbox" data-obfilter="yob-single" /> Single videos.</label></li>
|
@@ -4723,7 +4729,7 @@ class YouTubePrefs
|
|
4723 |
<li><label><input type="checkbox" data-obfilter="yob-standalone" /> Self-contained playlists or channels (no thumbnails, just YouTube's standard playlist player).</label></li>
|
4724 |
<li><label><input type="checkbox" data-obfilter="yob-live" /> Live streams.</label></li>
|
4725 |
<li style="display:none;"><label><input type="checkbox" data-obfilter="yob-privacy" /> With GDPR / privacy features.</label></li>
|
4726 |
-
<!-- <li><label><input type="checkbox" data-obfilter="yob-monetize" /> Relevant video ads that earn me up to 10x higher CPMs (revenue) than display advertising.</label></li>-->
|
4727 |
</ul>
|
4728 |
<div class="ytprefs-ob-nav">
|
4729 |
<button type="button" class="button-secondary ytprefs-ob-nav-close">Cancel</button>
|
1 |
<?php
|
2 |
/*
|
3 |
+
Plugin Name: Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream
|
4 |
Plugin URI: https://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx?ref=plugin
|
5 |
Description: YouTube Embed and YouTube Gallery WordPress Plugin. Embed a responsive video, YouTube channel, playlist gallery, or live stream
|
6 |
+
Version: 13.1.2
|
7 |
+
Author: Embed Plus for YouTube Team
|
8 |
Author URI: https://www.embedplus.com
|
9 |
*/
|
10 |
|
11 |
/*
|
12 |
+
Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream
|
13 |
Copyright (C) 2019 EmbedPlus.com
|
14 |
|
15 |
This program is free software: you can redistribute it and/or modify
|
34 |
|
35 |
public static $folder_name = 'youtube-embed-plus';
|
36 |
public static $curltimeout = 30;
|
37 |
+
public static $version = '13.1.2';
|
38 |
public static $opt_version = 'version';
|
39 |
public static $optembedwidth = null;
|
40 |
public static $optembedheight = null;
|
124 |
public static $onboarding_hook = '';
|
125 |
public static $admin_page_hooks = array();
|
126 |
public static $the_content_filters = array(
|
127 |
+
'wptexturize',
|
128 |
+
'wpautop',
|
129 |
+
'shortcode_unautop',
|
130 |
+
'prepend_attachment',
|
131 |
+
'wp_make_content_images_responsive',
|
132 |
+
'do_shortcode',
|
133 |
+
'convert_smilies'
|
134 |
+
);
|
135 |
public static $get_api_key_msg = 'The ### feature now requires a (free) YouTube API key from Google. Please follow the easy steps <a href="https://www.youtube.com/watch?v=6gD0X76-v_g" target="_blank">in this video</a> to create and save your API key.';
|
136 |
+
public static $boilerplate_api_error_message = ' Please make sure you performed the <a href="https://www.youtube.com/watch?v=6gD0X76-v_g" target="_blank">steps in this video</a> to create and save a proper server API key.';
|
137 |
public static $dft_gdpr_consent_message = '<p><strong>Please accept YouTube cookies to play this video.</strong> By accepting you will be accessing content from YouTube, a service provided by an external third party.</p><p><a href="https://policies.google.com/privacy" target="_blank">YouTube privacy policy</a></p><p>If you accept this notice, your choice will be saved and the page will refresh.</p>';
|
138 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
139 |
|
422 |
{
|
423 |
$total = $wpdb->get_var("SELECT FOUND_ROWS();");
|
424 |
global $post;
|
425 |
+
echo '<h2>10 Latest Posts/Pages with YouTube Videos (' . intval($total) . ' Total)</h2>';
|
426 |
?>
|
427 |
|
428 |
We recommend using this page as an easy way to check the results of the global default settings you make (e.g. hide annotations) on your recent embeds. Or, simply use it as an index to jump right to your posts that contain YouTube embeds.
|
456 |
|
457 |
public static function is_ajax()
|
458 |
{
|
459 |
+
$is_ajax = (function_exists('wp_doing_ajax') && wp_doing_ajax() || (!empty(filter_input(INPUT_SERVER, 'HTTP_X_REQUESTED_WITH')) && strtolower(filter_input(INPUT_SERVER, 'HTTP_X_REQUESTED_WITH')) == 'xmlhttprequest'));
|
460 |
if ($is_ajax)
|
461 |
{
|
462 |
header('HTTP/1.1 200 OK');
|
1315 |
return false;
|
1316 |
}
|
1317 |
|
1318 |
+
public static function clean_api_error($raw_message)
|
1319 |
+
{
|
1320 |
+
return htmlspecialchars(strip_tags(preg_replace('@&key=[^& ]+@i', '&key=*******', $raw_message)));
|
1321 |
+
}
|
1322 |
+
|
1323 |
+
public static function clean_api_error_html($raw_message, $add_boilerplate)
|
1324 |
+
{
|
1325 |
+
$clean_html = '<div>Sorry, there was a YouTube API error: <em>' . self::clean_api_error($raw_message) . '</em>' .
|
1326 |
+
( $add_boilerplate ? self::$boilerplate_api_error_message : '' ) .
|
1327 |
+
'</div>';
|
1328 |
+
return $clean_html;
|
1329 |
+
}
|
1330 |
+
|
1331 |
public static function get_search_page($options)
|
1332 |
{
|
1333 |
$gallobj = new stdClass();
|
1351 |
|
1352 |
if (is_wp_error($apiResult))
|
1353 |
{
|
1354 |
+
$gallobj->html = self::clean_api_error_html($apiResult->get_error_message(), true);
|
|
|
|
|
1355 |
return $gallobj;
|
1356 |
}
|
1357 |
|
1361 |
{
|
1362 |
if (isset($jsonResult->error->message))
|
1363 |
{
|
1364 |
+
$gallobj->html = self::clean_api_error_html($jsonResult->error->message, true);
|
|
|
|
|
1365 |
return $gallobj;
|
1366 |
}
|
1367 |
+
$gallobj->html = '<div>Sorry, there may be an issue with your YouTube API key. ' . self::$boilerplate_api_error_message . '</div>';
|
1368 |
return $gallobj;
|
1369 |
}
|
1370 |
|
1578 |
echo '<a class="epxout">×</a>';
|
1579 |
}
|
1580 |
?>
|
1581 |
+
Seems like you have two different YouTube plugins by the EmbedPlus Team installed: <b>YouTube</b> and <b>Advanced YouTube Embed.</b> We strongly suggest keeping only the one you prefer, so that they don't conflict with each other while trying to create your embeds.
|
1582 |
+
</p>
|
1583 |
</div>
|
1584 |
|
1585 |
<script type="text/javascript">
|
2074 |
$gallobj = new stdClass();
|
2075 |
|
2076 |
$options->pageSize = min(intval($options->pageSize), 50);
|
2077 |
+
$options->columns = intval($options->columns) == 0 ? 3 : intval($options->columns);
|
2078 |
$options->showTitle = intval($options->showTitle);
|
2079 |
$options->showPaging = intval($options->showPaging);
|
2080 |
$options->autonext = intval($options->autonext);
|
2101 |
|
2102 |
if (is_wp_error($apiResult))
|
2103 |
{
|
2104 |
+
$gallobj->html = self::clean_api_error_html($apiResult->get_error_message(), true);
|
|
|
|
|
2105 |
return $gallobj;
|
2106 |
}
|
2107 |
|
2120 |
{
|
2121 |
if (isset($jsonResult->error->message))
|
2122 |
{
|
2123 |
+
$gallobj->html = self::clean_api_error_html($jsonResult->error->message, true);
|
|
|
|
|
2124 |
return $gallobj;
|
2125 |
}
|
2126 |
+
$gallobj->html = '<div>Sorry, there may be an issue with your YouTube API key. ' . self::$boilerplate_api_error_message . '</div>';
|
2127 |
return $gallobj;
|
2128 |
}
|
2129 |
|
2403 |
|
2404 |
if (!isset($linkparams['v']))
|
2405 |
{
|
|
|
2406 |
return apply_filters('ytprefs_filter_the_content_light', wp_kses_post(self::$alloptions[self::$opt_not_live_content]));
|
2407 |
}
|
2408 |
}
|
2610 |
$code1 = '<div ' . $centercode . ' id="_ytid_' . rand(10000, 99999) . '"'; //'" width="' . self::$defaultwidth . '" height="' . self::$defaultheight . '" ';
|
2611 |
$code2 = ' class="__youtube_prefs__ __youtube_prefs_gdpr__ ' . ($iscontent ? '' : ' __youtube_prefs_widget__') . '" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll="">' .
|
2612 |
apply_filters('ytprefs_filter_the_content_light', wp_kses_post(self::$alloptions[self::$opt_gdpr_consent_message])) .
|
|
|
2613 |
'<button type="button" class="__youtube_prefs_gdpr__">' . trim(sanitize_text_field(self::$alloptions[self::$opt_gdpr_consent_button])) .
|
2614 |
'<img src="' . plugins_url('images/icon-check.png', __FILE__) . '" alt="accept" data-no-lazy="1" data-skipgform_ajax_framebjll="" /></button>' .
|
2615 |
'</div>';
|
2785 |
|
2786 |
public static function ytprefs_plugin_menu()
|
2787 |
{
|
2788 |
+
self::$admin_page_hooks[] = add_menu_page('YouTube Settings', 'YouTube Free', 'manage_options', 'youtube-my-preferences', array(get_class(), 'ytprefs_show_options'), 'dashicons-video-alt3', '10.000392854349');
|
2789 |
self::$admin_page_hooks[] = add_submenu_page('youtube-my-preferences', '', '', 'manage_options', 'youtube-my-preferences', array(get_class(), 'ytprefs_show_options'));
|
2790 |
|
2791 |
include_once(EPYTVI_INCLUDES_PATH . 'vi_admin_menu.php');
|
2910 |
$new_pointer_content = '<h3>' . __('New Update') . '</h3>'; // ooopointer
|
2911 |
|
2912 |
$new_pointer_content .= '<p>'; // ooopointer
|
2913 |
+
$new_pointer_content .= "This version has a more descriptive plugin name, and includes gallery column size and YouTube API message fixes for both the Free and <a target=_blank href=" . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer' . ">Pro versions »</a>";
|
2914 |
//$new_pointer_content .= "This version brings back the ability to hide related/suggested videos that show up at the end of YouTube embeds. It also allows monetized sites that are embedding video intelligence (vi) ads to select multiple IAB categories to get more content variety. "
|
2915 |
+
//. (self::vi_logged_in() ? "<a href=\"" . admin_url('admin.php?page=youtube-ep-vi') . "\">Login here to see »</a>" : "<a rel=\"#jumpmonetize\" class=\"epyt-jumptab\" href=\"" . admin_url('admin.php?page=youtube-my-preferences#jumpmonetize') . "\">Login here to see »</a>");
|
2916 |
|
2917 |
if (!empty(self::$alloptions[self::$opt_pro]) && strlen(trim(self::$alloptions[self::$opt_pro])) > 0)
|
2918 |
{
|
3281 |
<style type="text/css">
|
3282 |
.wrap {font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif; color: #000000;}
|
3283 |
.wrap-ytprefs {max-width: 1064px;}
|
3284 |
+
h1 span {vertical-align: middle;}
|
3285 |
#ytform p { line-height: 20px; margin: 18px 0; }
|
3286 |
.ytindent {padding: 0px 0px 0px 20px; font-size: 13px; margin-bottom: 100px;}
|
3287 |
.ytindent ul, .ytindent p {font-size: 13px;}
|
3443 |
}
|
3444 |
</style>
|
3445 |
<div class="wrap wrap-ytprefs">
|
3446 |
+
<h1><span class="dashicons-before dashicons-video-alt3"></span> <?php echo __('YouTube Settings') ?></h1>
|
3447 |
<?php
|
3448 |
self::settings_nav();
|
3449 |
?>
|
3812 |
</p>
|
3813 |
<p>
|
3814 |
<label for="<?php echo self::$opt_gallery_columns; ?>"><b class="chktitle">Number of Columns:</b></label>
|
3815 |
+
<input name="<?php echo self::$opt_gallery_columns; ?>" min="1" id="<?php echo self::$opt_gallery_columns; ?>" type="number" class="textinput" style="width: 60px;" value="<?php echo esc_attr(trim($all[self::$opt_gallery_columns])); ?>">
|
3816 |
Enter how many thumbnails can fit per row.
|
3817 |
</p>
|
3818 |
<p>
|
4721 |
<img class="yob-standalone-icon" src="<?php echo plugins_url('images/icon-playlist-self.png', __FILE__) ?>"/>
|
4722 |
<img class="yob-live-icon" src="<?php echo plugins_url('images/icon-player-live.png', __FILE__) ?>"/>
|
4723 |
<img class="yob-privacy-icon" src="<?php echo plugins_url('images/icon-player-privacy.png', __FILE__) ?>"/>
|
4724 |
+
<!-- <img class="yob-monetize-icon" src="<?php echo plugins_url('images/icon-player-money.png', __FILE__) ?>"/>-->
|
4725 |
</div>
|
4726 |
<ul class="ytprefs-ob-filter">
|
4727 |
<li><label><input type="checkbox" data-obfilter="yob-single" /> Single videos.</label></li>
|
4729 |
<li><label><input type="checkbox" data-obfilter="yob-standalone" /> Self-contained playlists or channels (no thumbnails, just YouTube's standard playlist player).</label></li>
|
4730 |
<li><label><input type="checkbox" data-obfilter="yob-live" /> Live streams.</label></li>
|
4731 |
<li style="display:none;"><label><input type="checkbox" data-obfilter="yob-privacy" /> With GDPR / privacy features.</label></li>
|
4732 |
+
<!-- <li><label><input type="checkbox" data-obfilter="yob-monetize" /> Relevant video ads that earn me up to 10x higher CPMs (revenue) than display advertising.</label></li>-->
|
4733 |
</ul>
|
4734 |
<div class="ytprefs-ob-nav">
|
4735 |
<button type="button" class="button-secondary ytprefs-ob-nav-close">Cancel</button>
|