Version Description
Download this release
Release Info
Developer | embedplus |
Plugin | YouTube |
Version | 11.8.4 |
Comparing to | |
See all releases |
Code changes from version 11.8.3 to 11.8.4
- readme.txt +9 -1
- youtube.php +38 -8
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.
|
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
|
@@ -61,6 +61,7 @@ Customizations can be also made to each YouTube embed by adding more to the link
|
|
61 |
* modestbranding - Set this to 1 to remove the YouTube logo while playing (or 0 to show the logo). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&modestbranding=1"`
|
62 |
* 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"`
|
63 |
* 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"`
|
|
|
64 |
* 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"`
|
65 |
|
66 |
You can also start and end each individual video at particular times. Like the above, each option should begin with '&'
|
@@ -117,6 +118,7 @@ See more details after installing. Enjoy!
|
|
117 |
* modestbranding - Set this to 1 to remove the YouTube logo while playing (or 0 to show the logo). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&modestbranding=1"`
|
118 |
* 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"`
|
119 |
* 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"`
|
|
|
120 |
* 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"`
|
121 |
|
122 |
You can also start and end each individual video at particular times. Like the above, each option should begin with '&'
|
@@ -145,6 +147,12 @@ You can also start and end each individual video at particular times. Like the a
|
|
145 |
|
146 |
== Changelog ==
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
= WordPress YouTube Embed 11.8.3 =
|
149 |
* Improved compatability with PHP 7
|
150 |
* Improved compatability with Divi theme
|
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
|
61 |
* modestbranding - Set this to 1 to remove the YouTube logo while playing (or 0 to show the logo). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&modestbranding=1"`
|
62 |
* 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"`
|
63 |
* 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"`
|
64 |
+
* 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"`
|
65 |
* 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"`
|
66 |
|
67 |
You can also start and end each individual video at particular times. Like the above, each option should begin with '&'
|
118 |
* modestbranding - Set this to 1 to remove the YouTube logo while playing (or 0 to show the logo). Example: `"https://www.youtube.com/watch?v=quwebVjAEJA&modestbranding=1"`
|
119 |
* 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"`
|
120 |
* 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"`
|
121 |
+
* 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"`
|
122 |
* 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"`
|
123 |
|
124 |
You can also start and end each individual video at particular times. Like the above, each option should begin with '&'
|
147 |
|
148 |
== Changelog ==
|
149 |
|
150 |
+
= WordPress YouTube Embed 11.8.4 =
|
151 |
+
* Fixes gallery AJAX issue
|
152 |
+
* Adds ability to hide fullscreen button
|
153 |
+
* Adds ability to hide private videos from galleries
|
154 |
+
* Changes localized script dependency to jquery
|
155 |
+
|
156 |
= WordPress YouTube Embed 11.8.3 =
|
157 |
* Improved compatability with PHP 7
|
158 |
* Improved compatability with Divi theme
|
youtube.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: YouTube
|
4 |
-
Plugin URI:
|
5 |
Description: YouTube Embed and YouTube Gallery WordPress Plugin. Embed a responsive video, YouTube channel, playlist gallery, or live stream
|
6 |
-
Version: 11.8.
|
7 |
Author: EmbedPlus Team
|
8 |
-
Author URI:
|
9 |
*/
|
10 |
|
11 |
/*
|
@@ -33,7 +33,7 @@ class YouTubePrefs
|
|
33 |
{
|
34 |
|
35 |
public static $curltimeout = 20;
|
36 |
-
public static $version = '11.8.
|
37 |
public static $opt_version = 'version';
|
38 |
public static $optembedwidth = null;
|
39 |
public static $optembedheight = null;
|
@@ -51,6 +51,7 @@ class YouTubePrefs
|
|
51 |
public static $opt_modestbranding = 'modestbranding';
|
52 |
public static $opt_rel = 'rel';
|
53 |
public static $opt_showinfo = 'showinfo';
|
|
|
54 |
public static $opt_playsinline = 'playsinline';
|
55 |
public static $opt_autohide = 'autohide';
|
56 |
public static $opt_controls = 'controls';
|
@@ -87,6 +88,7 @@ class YouTubePrefs
|
|
87 |
public static $opt_gallery_collapse_grid = 'gallery_collapse_grid';
|
88 |
public static $opt_gallery_collapse_grid_breaks = 'gallery_collapse_grid_breaks';
|
89 |
public static $opt_gallery_scrolloffset = 'gallery_scrolloffset';
|
|
|
90 |
public static $opt_gallery_showtitle = 'gallery_showtitle';
|
91 |
public static $opt_gallery_showpaging = 'gallery_showpaging';
|
92 |
public static $opt_gallery_thumbplay = 'gallery_thumbplay';
|
@@ -158,6 +160,7 @@ class YouTubePrefs
|
|
158 |
self::$opt_modestbranding,
|
159 |
self::$opt_rel,
|
160 |
self::$opt_showinfo,
|
|
|
161 |
self::$opt_playsinline,
|
162 |
self::$opt_autohide,
|
163 |
self::$opt_controls,
|
@@ -1221,7 +1224,12 @@ class YouTubePrefs
|
|
1221 |
|
1222 |
public static function is_ajax()
|
1223 |
{
|
1224 |
-
|
|
|
|
|
|
|
|
|
|
|
1225 |
}
|
1226 |
|
1227 |
public static function my_embedplus_glance_vids()
|
@@ -1563,6 +1571,7 @@ class YouTubePrefs
|
|
1563 |
$_modestbranding = 0;
|
1564 |
$_rel = 1;
|
1565 |
$_showinfo = 1;
|
|
|
1566 |
$_theme = 'dark';
|
1567 |
$_color = 'red';
|
1568 |
$_autohide = 2;
|
@@ -1597,6 +1606,7 @@ class YouTubePrefs
|
|
1597 |
$_gallery_collapse_grid = 0;
|
1598 |
$_gallery_collapse_grid_breaks = self::$dft_bpts;
|
1599 |
$_gallery_scrolloffset = 20;
|
|
|
1600 |
$_gallery_showtitle = 1;
|
1601 |
$_gallery_showpaging = 1;
|
1602 |
$_gallery_autonext = 0;
|
@@ -1625,6 +1635,7 @@ class YouTubePrefs
|
|
1625 |
$_modestbranding = self::tryget($arroptions, self::$opt_modestbranding, 0);
|
1626 |
$_rel = self::tryget($arroptions, self::$opt_rel, 1);
|
1627 |
$_showinfo = self::tryget($arroptions, self::$opt_showinfo, 1);
|
|
|
1628 |
$_theme = self::tryget($arroptions, self::$opt_theme, 'dark');
|
1629 |
$_color = self::tryget($arroptions, self::$opt_color, 'red');
|
1630 |
$_autohide = self::tryget($arroptions, self::$opt_autohide, 2);
|
@@ -1660,6 +1671,7 @@ class YouTubePrefs
|
|
1660 |
$_gallery_collapse_grid = self::tryget($arroptions, self::$opt_gallery_collapse_grid, 0);
|
1661 |
$_gallery_collapse_grid_breaks = self::tryget($arroptions, self::$opt_gallery_collapse_grid_breaks, self::$dft_bpts);
|
1662 |
$_gallery_scrolloffset = self::tryget($arroptions, self::$opt_gallery_scrolloffset, 20);
|
|
|
1663 |
$_gallery_showtitle = self::tryget($arroptions, self::$opt_gallery_showtitle, 1);
|
1664 |
$_gallery_showpaging = self::tryget($arroptions, self::$opt_gallery_showpaging, 1);
|
1665 |
$_gallery_autonext = self::tryget($arroptions, self::$opt_gallery_autonext, 0);
|
@@ -1691,6 +1703,7 @@ class YouTubePrefs
|
|
1691 |
self::$opt_modestbranding => $_modestbranding,
|
1692 |
self::$opt_rel => $_rel,
|
1693 |
self::$opt_showinfo => $_showinfo,
|
|
|
1694 |
self::$opt_theme => $_theme,
|
1695 |
self::$opt_color => $_color,
|
1696 |
self::$opt_autohide => $_autohide,
|
@@ -1725,6 +1738,7 @@ class YouTubePrefs
|
|
1725 |
self::$opt_gallery_collapse_grid => $_gallery_collapse_grid,
|
1726 |
self::$opt_gallery_collapse_grid_breaks => $_gallery_collapse_grid_breaks,
|
1727 |
self::$opt_gallery_scrolloffset => $_gallery_scrolloffset,
|
|
|
1728 |
self::$opt_gallery_showtitle => $_gallery_showtitle,
|
1729 |
self::$opt_gallery_showpaging => $_gallery_showpaging,
|
1730 |
self::$opt_gallery_autonext => $_gallery_autonext,
|
@@ -1975,6 +1989,11 @@ class YouTubePrefs
|
|
1975 |
$thumb->title = $options->showTitle ? $item->snippet->title : '';
|
1976 |
$thumb->privacyStatus = isset($item->status->privacyStatus) ? $item->status->privacyStatus : null;
|
1977 |
|
|
|
|
|
|
|
|
|
|
|
1978 |
if ($cnt == 0 && $options->pageToken == null)
|
1979 |
{
|
1980 |
$init_id = $thumb->id;
|
@@ -2619,11 +2638,11 @@ class YouTubePrefs
|
|
2619 |
$new_pointer_content .= '<p>'; // ooopointer
|
2620 |
if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
|
2621 |
{
|
2622 |
-
$new_pointer_content .= __("This update
|
2623 |
}
|
2624 |
else
|
2625 |
{
|
2626 |
-
$new_pointer_content .= __("This update
|
2627 |
}
|
2628 |
$new_pointer_content .= '</p>';
|
2629 |
|
@@ -2681,6 +2700,7 @@ class YouTubePrefs
|
|
2681 |
$new_options[self::$opt_modestbranding] = self::postchecked(self::$opt_modestbranding) ? 1 : 0;
|
2682 |
$new_options[self::$opt_rel] = self::postchecked(self::$opt_rel) ? 1 : 0;
|
2683 |
$new_options[self::$opt_showinfo] = self::postchecked(self::$opt_showinfo) ? 1 : 0;
|
|
|
2684 |
$new_options[self::$opt_playsinline] = self::postchecked(self::$opt_playsinline) ? 1 : 0;
|
2685 |
$new_options[self::$opt_origin] = self::postchecked(self::$opt_origin) ? 1 : 0;
|
2686 |
$new_options[self::$opt_controls] = self::postchecked(self::$opt_controls) ? 2 : 0;
|
@@ -2703,6 +2723,7 @@ class YouTubePrefs
|
|
2703 |
$new_options[self::$opt_defaultdims] = self::postchecked(self::$opt_defaultdims) ? 1 : 0;
|
2704 |
$new_options[self::$opt_defaultvol] = self::postchecked(self::$opt_defaultvol) ? 1 : 0;
|
2705 |
$new_options[self::$opt_dohl] = self::postchecked(self::$opt_dohl) ? 1 : 0;
|
|
|
2706 |
$new_options[self::$opt_gallery_showtitle] = self::postchecked(self::$opt_gallery_showtitle) ? 1 : 0;
|
2707 |
$new_options[self::$opt_gallery_showpaging] = self::postchecked(self::$opt_gallery_showpaging) ? 1 : 0;
|
2708 |
$new_options[self::$opt_gallery_autonext] = self::postchecked(self::$opt_gallery_autonext) ? 1 : 0;
|
@@ -3110,6 +3131,10 @@ class YouTubePrefs
|
|
3110 |
<input name="<?php echo self::$opt_showinfo; ?>" id="<?php echo self::$opt_showinfo; ?>" <?php checked($all[self::$opt_showinfo], 1); ?> type="checkbox" class="checkbox">
|
3111 |
<label for="<?php echo self::$opt_showinfo; ?>"><?php _e('<b class="chktitle">Show Title:</b> Show the video title and other info.') ?></label>
|
3112 |
</p>
|
|
|
|
|
|
|
|
|
3113 |
<p>
|
3114 |
<input name="<?php echo self::$opt_acctitle; ?>" id="<?php echo self::$opt_acctitle; ?>" <?php checked($all[self::$opt_acctitle], 1); ?> type="checkbox" class="checkbox">
|
3115 |
<label for="<?php echo self::$opt_acctitle; ?>"><b class="chktitle">Accessible Title Attributes: </b> Improve accessibility by using title attributes for screen reader support. It should help your site pass functional accessibility evaluations (FAE). </label>
|
@@ -3538,6 +3563,10 @@ class YouTubePrefs
|
|
3538 |
<input name="<?php echo self::$opt_gallery_showtitle; ?>" id="<?php echo self::$opt_gallery_showtitle; ?>" <?php checked($all[self::$opt_gallery_showtitle], 1); ?> type="checkbox" class="checkbox">
|
3539 |
<label for="<?php echo self::$opt_gallery_showtitle; ?>"><b class="chktitle">Show Thumbnail Title:</b> Show titles with each thumbnail.</label>
|
3540 |
</p>
|
|
|
|
|
|
|
|
|
3541 |
<p>
|
3542 |
<input name="<?php echo self::$opt_gallery_autonext; ?>" id="<?php echo self::$opt_gallery_autonext; ?>" <?php checked($all[self::$opt_gallery_autonext], 1); ?> type="checkbox" class="checkbox">
|
3543 |
<label for="<?php echo self::$opt_gallery_autonext; ?>"><b class="chktitle">Automatic Continuous Play:</b> Automatically play the next video in the gallery as soon as the current video finished.
|
@@ -3616,6 +3645,7 @@ class YouTubePrefs
|
|
3616 |
_e("<li><strong>modestbranding</strong> - Set this to 1 to remove the YouTube logo while playing (or 0 to show the logo). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&modestbranding=1</strong></em> </li>");
|
3617 |
_e("<li><strong>rel</strong> - Set this to 0 to not show related videos at the end of playing (or 1 to show them). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&rel=0</strong></em> </li>");
|
3618 |
_e("<li><strong>showinfo</strong> - Set this to 0 to hide the video title and other info (or 1 to show it). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&showinfo=0</strong></em> </li>");
|
|
|
3619 |
_e("<li><strong>color</strong> - Set this to 'white' to make the player have a white progress bar (or 'red' for a red progress bar). Note: Using white will disable the modestbranding option. <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&color=white</strong></em> </li>");
|
3620 |
_e("<li><strong>controls</strong> - Set this to 0 to completely hide the video controls (or 2 to show it). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&controls=0</strong></em> </li>");
|
3621 |
_e("<li><strong>autohide</strong> - 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). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&autohide=1</strong></em> </li>");
|
@@ -4031,7 +4061,7 @@ class YouTubePrefs
|
|
4031 |
'stopMobileBuffer' => self::$alloptions[self::$opt_stop_mobile_buffer] == '1' ? true : false
|
4032 |
);
|
4033 |
|
4034 |
-
wp_localize_script('
|
4035 |
}
|
4036 |
|
4037 |
////////////////////// cloudflare accomodation
|
1 |
<?php
|
2 |
/*
|
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 |
*/
|
10 |
|
11 |
/*
|
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;
|
51 |
public static $opt_modestbranding = 'modestbranding';
|
52 |
public static $opt_rel = 'rel';
|
53 |
public static $opt_showinfo = 'showinfo';
|
54 |
+
public static $opt_fs = 'fs';
|
55 |
public static $opt_playsinline = 'playsinline';
|
56 |
public static $opt_autohide = 'autohide';
|
57 |
public static $opt_controls = 'controls';
|
88 |
public static $opt_gallery_collapse_grid = 'gallery_collapse_grid';
|
89 |
public static $opt_gallery_collapse_grid_breaks = 'gallery_collapse_grid_breaks';
|
90 |
public static $opt_gallery_scrolloffset = 'gallery_scrolloffset';
|
91 |
+
public static $opt_gallery_hideprivate = 'gallery_hideprivate';
|
92 |
public static $opt_gallery_showtitle = 'gallery_showtitle';
|
93 |
public static $opt_gallery_showpaging = 'gallery_showpaging';
|
94 |
public static $opt_gallery_thumbplay = 'gallery_thumbplay';
|
160 |
self::$opt_modestbranding,
|
161 |
self::$opt_rel,
|
162 |
self::$opt_showinfo,
|
163 |
+
self::$opt_fs,
|
164 |
self::$opt_playsinline,
|
165 |
self::$opt_autohide,
|
166 |
self::$opt_controls,
|
1224 |
|
1225 |
public static function is_ajax()
|
1226 |
{
|
1227 |
+
$is_ajax = (function_exists('wp_doing_ajax') && wp_doing_ajax() || (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'));
|
1228 |
+
if ($is_ajax)
|
1229 |
+
{
|
1230 |
+
header('HTTP/1.1 200 OK');
|
1231 |
+
}
|
1232 |
+
return $is_ajax;
|
1233 |
}
|
1234 |
|
1235 |
public static function my_embedplus_glance_vids()
|
1571 |
$_modestbranding = 0;
|
1572 |
$_rel = 1;
|
1573 |
$_showinfo = 1;
|
1574 |
+
$_fs = 1;
|
1575 |
$_theme = 'dark';
|
1576 |
$_color = 'red';
|
1577 |
$_autohide = 2;
|
1606 |
$_gallery_collapse_grid = 0;
|
1607 |
$_gallery_collapse_grid_breaks = self::$dft_bpts;
|
1608 |
$_gallery_scrolloffset = 20;
|
1609 |
+
$_gallery_hideprivate = 0;
|
1610 |
$_gallery_showtitle = 1;
|
1611 |
$_gallery_showpaging = 1;
|
1612 |
$_gallery_autonext = 0;
|
1635 |
$_modestbranding = self::tryget($arroptions, self::$opt_modestbranding, 0);
|
1636 |
$_rel = self::tryget($arroptions, self::$opt_rel, 1);
|
1637 |
$_showinfo = self::tryget($arroptions, self::$opt_showinfo, 1);
|
1638 |
+
$_fs = self::tryget($arroptions, self::$opt_fs, 1);
|
1639 |
$_theme = self::tryget($arroptions, self::$opt_theme, 'dark');
|
1640 |
$_color = self::tryget($arroptions, self::$opt_color, 'red');
|
1641 |
$_autohide = self::tryget($arroptions, self::$opt_autohide, 2);
|
1671 |
$_gallery_collapse_grid = self::tryget($arroptions, self::$opt_gallery_collapse_grid, 0);
|
1672 |
$_gallery_collapse_grid_breaks = self::tryget($arroptions, self::$opt_gallery_collapse_grid_breaks, self::$dft_bpts);
|
1673 |
$_gallery_scrolloffset = self::tryget($arroptions, self::$opt_gallery_scrolloffset, 20);
|
1674 |
+
$_gallery_hideprivate = self::tryget($arroptions, self::$opt_gallery_hideprivate, 0);
|
1675 |
$_gallery_showtitle = self::tryget($arroptions, self::$opt_gallery_showtitle, 1);
|
1676 |
$_gallery_showpaging = self::tryget($arroptions, self::$opt_gallery_showpaging, 1);
|
1677 |
$_gallery_autonext = self::tryget($arroptions, self::$opt_gallery_autonext, 0);
|
1703 |
self::$opt_modestbranding => $_modestbranding,
|
1704 |
self::$opt_rel => $_rel,
|
1705 |
self::$opt_showinfo => $_showinfo,
|
1706 |
+
self::$opt_fs => $_fs,
|
1707 |
self::$opt_theme => $_theme,
|
1708 |
self::$opt_color => $_color,
|
1709 |
self::$opt_autohide => $_autohide,
|
1738 |
self::$opt_gallery_collapse_grid => $_gallery_collapse_grid,
|
1739 |
self::$opt_gallery_collapse_grid_breaks => $_gallery_collapse_grid_breaks,
|
1740 |
self::$opt_gallery_scrolloffset => $_gallery_scrolloffset,
|
1741 |
+
self::$opt_gallery_hideprivate => $_gallery_hideprivate,
|
1742 |
self::$opt_gallery_showtitle => $_gallery_showtitle,
|
1743 |
self::$opt_gallery_showpaging => $_gallery_showpaging,
|
1744 |
self::$opt_gallery_autonext => $_gallery_autonext,
|
1989 |
$thumb->title = $options->showTitle ? $item->snippet->title : '';
|
1990 |
$thumb->privacyStatus = isset($item->status->privacyStatus) ? $item->status->privacyStatus : null;
|
1991 |
|
1992 |
+
if ($thumb->privacyStatus == 'private' && self::$alloptions[self::$opt_gallery_hideprivate] == 1)
|
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 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 »</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 |
|
2700 |
$new_options[self::$opt_modestbranding] = self::postchecked(self::$opt_modestbranding) ? 1 : 0;
|
2701 |
$new_options[self::$opt_rel] = self::postchecked(self::$opt_rel) ? 1 : 0;
|
2702 |
$new_options[self::$opt_showinfo] = self::postchecked(self::$opt_showinfo) ? 1 : 0;
|
2703 |
+
$new_options[self::$opt_fs] = self::postchecked(self::$opt_fs) ? 1 : 0;
|
2704 |
$new_options[self::$opt_playsinline] = self::postchecked(self::$opt_playsinline) ? 1 : 0;
|
2705 |
$new_options[self::$opt_origin] = self::postchecked(self::$opt_origin) ? 1 : 0;
|
2706 |
$new_options[self::$opt_controls] = self::postchecked(self::$opt_controls) ? 2 : 0;
|
2723 |
$new_options[self::$opt_defaultdims] = self::postchecked(self::$opt_defaultdims) ? 1 : 0;
|
2724 |
$new_options[self::$opt_defaultvol] = self::postchecked(self::$opt_defaultvol) ? 1 : 0;
|
2725 |
$new_options[self::$opt_dohl] = self::postchecked(self::$opt_dohl) ? 1 : 0;
|
2726 |
+
$new_options[self::$opt_gallery_hideprivate] = self::postchecked(self::$opt_gallery_hideprivate) ? 1 : 0;
|
2727 |
$new_options[self::$opt_gallery_showtitle] = self::postchecked(self::$opt_gallery_showtitle) ? 1 : 0;
|
2728 |
$new_options[self::$opt_gallery_showpaging] = self::postchecked(self::$opt_gallery_showpaging) ? 1 : 0;
|
2729 |
$new_options[self::$opt_gallery_autonext] = self::postchecked(self::$opt_gallery_autonext) ? 1 : 0;
|
3131 |
<input name="<?php echo self::$opt_showinfo; ?>" id="<?php echo self::$opt_showinfo; ?>" <?php checked($all[self::$opt_showinfo], 1); ?> type="checkbox" class="checkbox">
|
3132 |
<label for="<?php echo self::$opt_showinfo; ?>"><?php _e('<b class="chktitle">Show Title:</b> Show the video title and other info.') ?></label>
|
3133 |
</p>
|
3134 |
+
<p>
|
3135 |
+
<input name="<?php echo self::$opt_fs; ?>" id="<?php echo self::$opt_fs; ?>" <?php checked($all[self::$opt_fs], 1); ?> type="checkbox" class="checkbox">
|
3136 |
+
<label for="<?php echo self::$opt_fs; ?>"><?php _e('<b class="chktitle">Show Fullscreen Button:</b> <sup class="orange">NEW</sup> Show the fullscreen button.') ?></label>
|
3137 |
+
</p>
|
3138 |
<p>
|
3139 |
<input name="<?php echo self::$opt_acctitle; ?>" id="<?php echo self::$opt_acctitle; ?>" <?php checked($all[self::$opt_acctitle], 1); ?> type="checkbox" class="checkbox">
|
3140 |
<label for="<?php echo self::$opt_acctitle; ?>"><b class="chktitle">Accessible Title Attributes: </b> Improve accessibility by using title attributes for screen reader support. It should help your site pass functional accessibility evaluations (FAE). </label>
|
3563 |
<input name="<?php echo self::$opt_gallery_showtitle; ?>" id="<?php echo self::$opt_gallery_showtitle; ?>" <?php checked($all[self::$opt_gallery_showtitle], 1); ?> type="checkbox" class="checkbox">
|
3564 |
<label for="<?php echo self::$opt_gallery_showtitle; ?>"><b class="chktitle">Show Thumbnail Title:</b> Show titles with each thumbnail.</label>
|
3565 |
</p>
|
3566 |
+
<p>
|
3567 |
+
<input name="<?php echo self::$opt_gallery_hideprivate; ?>" id="<?php echo self::$opt_gallery_hideprivate; ?>" <?php checked($all[self::$opt_gallery_hideprivate], 1); ?> type="checkbox" class="checkbox">
|
3568 |
+
<label for="<?php echo self::$opt_gallery_hideprivate; ?>"><b class="chktitle">Hide Private Thumbnails:</b> <sup class="orange">NEW</sup> Hide thumbnails for videos in a playlist that cannot be embedded yet. Note: This may make some page sizes look uneven.</label>
|
3569 |
+
</p>
|
3570 |
<p>
|
3571 |
<input name="<?php echo self::$opt_gallery_autonext; ?>" id="<?php echo self::$opt_gallery_autonext; ?>" <?php checked($all[self::$opt_gallery_autonext], 1); ?> type="checkbox" class="checkbox">
|
3572 |
<label for="<?php echo self::$opt_gallery_autonext; ?>"><b class="chktitle">Automatic Continuous Play:</b> Automatically play the next video in the gallery as soon as the current video finished.
|
3645 |
_e("<li><strong>modestbranding</strong> - Set this to 1 to remove the YouTube logo while playing (or 0 to show the logo). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&modestbranding=1</strong></em> </li>");
|
3646 |
_e("<li><strong>rel</strong> - Set this to 0 to not show related videos at the end of playing (or 1 to show them). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&rel=0</strong></em> </li>");
|
3647 |
_e("<li><strong>showinfo</strong> - Set this to 0 to hide the video title and other info (or 1 to show it). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&showinfo=0</strong></em> </li>");
|
3648 |
+
_e("<li><strong>fs</strong> - Set this to 0 to hide the fullscreen button (or 1 to show it). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&fs=0</strong></em> </li>");
|
3649 |
_e("<li><strong>color</strong> - Set this to 'white' to make the player have a white progress bar (or 'red' for a red progress bar). Note: Using white will disable the modestbranding option. <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&color=white</strong></em> </li>");
|
3650 |
_e("<li><strong>controls</strong> - Set this to 0 to completely hide the video controls (or 2 to show it). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&controls=0</strong></em> </li>");
|
3651 |
_e("<li><strong>autohide</strong> - 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). <em>Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&autohide=1</strong></em> </li>");
|
4061 |
'stopMobileBuffer' => self::$alloptions[self::$opt_stop_mobile_buffer] == '1' ? true : false
|
4062 |
);
|
4063 |
|
4064 |
+
wp_localize_script('jquery', '_EPYT_', $my_script_vars);
|
4065 |
}
|
4066 |
|
4067 |
////////////////////// cloudflare accomodation
|