YouTube - Version 9.2

Version Description

Download this release

Release Info

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

Code changes from version 9.1 to 9.2

Files changed (2) hide show
  1. readme.txt +8 -5
  2. youtube.php +87 -93
readme.txt CHANGED
@@ -3,17 +3,17 @@ Contributors: embedplus
3
  Plugin Name: YouTube Embed
4
  Tags: get_locale, translator, locale, country code, country, TinyMCE, localization, internationalization, language, multi-language, translate, captions, subtitles, hl, audio, initialize, mute, sound, track, volume, at a glance, channel, annotations, music, music video, songs, song, lyrics, responsive, short code, shortcode, youtube shortcode, health, diagnostic, youtube status, seo, video seo, rich snippets, reddit, google+, google plus, comments, search, widget, sidebar, responsive, fluid, iphone, mobile, android, tablet, ipad, youtube playlist, playlists, playlist, wmode, hd, autohd, auto hd, video analytics, analytics, google, google analytics, view count, vlog, vlogging, web videos, youtube analytics, youtube, youtube plugin, youtube shortcode, embed youtube, plugin, video, video shortcode, embed videos, youtube player, shortcode, simple, simple youtube, smart youtube playback, youtube embed, wordpress youtube embed, embedding youtube, youtube embedding, video plugin, https, ssl, secure, no-cookie, cookie, html5, youtube html5, multilingual, multi-lingual, l10n, i18n
5
  Requires at least: 2.9
6
- Tested up to: 4.0
7
- Stable tag: 9.1
8
  License: GPLv3 or later
9
 
10
  YouTube embed plugin. Responsive sizing and many other conveniences. Upgrade for performance, analytics, SEO tags and more!
11
 
12
  == Description ==
13
 
14
- **600,000+ downloads! Here are some recently added features:**
15
 
16
- * Automatic localization/internationalization so you can set the player's interface [language from English to another >>](http://www.embedplus.com/youtube-iso-639-1-language-codes.aspx)
17
  * Instant HTTPS support. It can even convert past non-HTTPS videos to HTTPS. Did you know that Google uses [HTTPS/SSL support as a ranking signal for SERP?](http://embedplus.com/convert-old-youtube-embeds-to-https-ssl.aspx)
18
  * iOS playback preferences
19
  * Embed an entire channel as a playlist
@@ -59,7 +59,7 @@ Customizations can be also made to each YouTube embed by adding more to the link
59
 
60
  * width - Sets the width of your player. If omitted, the default width will be the width of your theme's content. Example: `http://www.youtube.com/watch?v=quwebVjAEJA&width=500&height=350`
61
  * height - Sets the height of your player. If omitted, this will be calculated for you automatically. Example: `http://www.youtube.com/watch?v=quwebVjAEJA&width=500&height=350`
62
- * vq - Set this to `hd720` or `hd1080` to force the video to play in HD quality. Example: `http://www.youtube.com/watch?v=quwebVjAEJA&vq=hd720`
63
  * autoplay - Set this to 1 to autoplay the video (or 0 to play the video once). Example: `http://www.youtube.com/watch?v=quwebVjAEJA&autoplay=1`
64
  * cc_load_policy - Set this to 1 to turn on closed captioning (or 0 to leave them off). Example: `http://www.youtube.com/watch?v=quwebVjAEJA&cc_load_policy=1`
65
  * iv_load_policy - Set this to 3 to turn off annotations (or 1 to show them). Example: `http://www.youtube.com/watch?v=quwebVjAEJA&iv_load_policy=3`
@@ -135,6 +135,9 @@ You can also start and end each individual video at particular times. Like the a
135
 
136
  == Changelog ==
137
 
 
 
 
138
  = YouTube Embed 9.1 =
139
  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.
140
 
3
  Plugin Name: YouTube Embed
4
  Tags: get_locale, translator, locale, country code, country, TinyMCE, localization, internationalization, language, multi-language, translate, captions, subtitles, hl, audio, initialize, mute, sound, track, volume, at a glance, channel, annotations, music, music video, songs, song, lyrics, responsive, short code, shortcode, youtube shortcode, health, diagnostic, youtube status, seo, video seo, rich snippets, reddit, google+, google plus, comments, search, widget, sidebar, responsive, fluid, iphone, mobile, android, tablet, ipad, youtube playlist, playlists, playlist, wmode, hd, autohd, auto hd, video analytics, analytics, google, google analytics, view count, vlog, vlogging, web videos, youtube analytics, youtube, youtube plugin, youtube shortcode, embed youtube, plugin, video, video shortcode, embed videos, youtube player, shortcode, simple, simple youtube, smart youtube playback, youtube embed, wordpress youtube embed, embedding youtube, youtube embedding, video plugin, https, ssl, secure, no-cookie, cookie, html5, youtube html5, multilingual, multi-lingual, l10n, i18n
5
  Requires at least: 2.9
6
+ Tested up to: 4.0.1
7
+ Stable tag: 9.2
8
  License: GPLv3 or later
9
 
10
  YouTube embed plugin. Responsive sizing and many other conveniences. Upgrade for performance, analytics, SEO tags and more!
11
 
12
  == Description ==
13
 
14
+ **700,000+ downloads! Here are some recently added features:**
15
 
16
+ * [Automatic localization/internationalization](http://www.embedplus.com/youtube-iso-639-1-language-codes.aspx) so you can set the player's interface language from English to another
17
  * Instant HTTPS support. It can even convert past non-HTTPS videos to HTTPS. Did you know that Google uses [HTTPS/SSL support as a ranking signal for SERP?](http://embedplus.com/convert-old-youtube-embeds-to-https-ssl.aspx)
18
  * iOS playback preferences
19
  * Embed an entire channel as a playlist
59
 
60
  * width - Sets the width of your player. If omitted, the default width will be the width of your theme's content. Example: `http://www.youtube.com/watch?v=quwebVjAEJA&width=500&height=350`
61
  * height - Sets the height of your player. If omitted, this will be calculated for you automatically. Example: `http://www.youtube.com/watch?v=quwebVjAEJA&width=500&height=350`
62
+ * vq - Set this to `hd720` or `hd1080` to force the video to play in HD quality, if available. Example: `http://www.youtube.com/watch?v=quwebVjAEJA&vq=hd720`
63
  * autoplay - Set this to 1 to autoplay the video (or 0 to play the video once). Example: `http://www.youtube.com/watch?v=quwebVjAEJA&autoplay=1`
64
  * cc_load_policy - Set this to 1 to turn on closed captioning (or 0 to leave them off). Example: `http://www.youtube.com/watch?v=quwebVjAEJA&cc_load_policy=1`
65
  * iv_load_policy - Set this to 3 to turn off annotations (or 1 to show them). Example: `http://www.youtube.com/watch?v=quwebVjAEJA&iv_load_policy=3`
135
 
136
  == Changelog ==
137
 
138
+ = YouTube Embed 9.2 =
139
+ HTTPS/SSL detection is now fully automatic. The manual checkbox is no longer needed.
140
+
141
  = YouTube Embed 9.1 =
142
  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.
143
 
youtube.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: YouTube
4
  Plugin URI: http://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx
5
  Description: YouTube embed plugin with basic features and convenient defaults. Upgrade now to add tracking, instant video SEO tags, and much more!
6
- Version: 9.1
7
  Author: EmbedPlus Team
8
  Author URI: http://www.embedplus.com
9
  */
@@ -32,7 +32,7 @@
32
  class YouTubePrefs
33
  {
34
 
35
- public static $version = '9.1';
36
  public static $opt_version = 'version';
37
  public static $optembedwidth = null;
38
  public static $optembedheight = null;
@@ -70,7 +70,7 @@ class YouTubePrefs
70
  public static $opt_defaultvol = 'defaultvol';
71
  public static $opt_vol = 'vol';
72
  public static $opt_schemaorg = 'schemaorg';
73
- public static $opt_dynload = 'dynload';
74
  public static $opt_alloptions = 'youtubeprefs_alloptions';
75
  public static $alloptions = null;
76
  public static $yt_options = array();
@@ -640,7 +640,7 @@ class YouTubePrefs
640
  $_oldspacing = 1;
641
  $_responsive = 0;
642
  $_schemaorg = 0;
643
- $_dynload = 0;
644
  $_wmode = 'opaque';
645
  $_defaultdims = 0;
646
  $_defaultwidth = '';
@@ -682,7 +682,7 @@ class YouTubePrefs
682
  $_oldspacing = self::tryget($arroptions, self::$opt_oldspacing, 1);
683
  $_responsive = self::tryget($arroptions, self::$opt_responsive, 0);
684
  $_schemaorg = self::tryget($arroptions, self::$opt_schemaorg, 0);
685
- $_dynload = self::tryget($arroptions, self::$opt_dynload, 0);
686
  $_defaultdims = self::tryget($arroptions, self::$opt_defaultdims, 0);
687
  $_defaultwidth = self::tryget($arroptions, self::$opt_defaultwidth, '');
688
  $_defaultheight = self::tryget($arroptions, self::$opt_defaultheight, '');
@@ -722,7 +722,7 @@ class YouTubePrefs
722
  self::$opt_oldspacing => $_oldspacing,
723
  self::$opt_responsive => $_responsive,
724
  self::$opt_schemaorg => $_schemaorg,
725
- self::$opt_dynload => $_dynload,
726
  self::$opt_defaultdims => $_defaultdims,
727
  self::$opt_defaultwidth => $_defaultwidth,
728
  self::$opt_defaultheight => $_defaultheight,
@@ -811,11 +811,11 @@ class YouTubePrefs
811
  $linkparams['v'] = array_pop($vtemp);
812
  }
813
 
814
- $linkscheme = 'http';
815
  $youtubebaseurl = 'youtube';
816
  $schemaorgoutput = '';
817
  $voloutput = '';
818
- $dynsrc = '';
819
 
820
  $finalparams = $linkparams + self::$alloptions;
821
 
@@ -826,10 +826,10 @@ class YouTubePrefs
826
  $youtubebaseurl = 'youtube-nocookie';
827
  }
828
 
829
- if (self::$alloptions[self::$opt_ssl] == 1)
830
- {
831
- $linkscheme = 'https';
832
- }
833
 
834
  if (self::$alloptions[self::$opt_defaultvol] == 1)
835
  {
@@ -863,13 +863,15 @@ class YouTubePrefs
863
  $schemaorgoutput = self::getschemaorgoutput($finalparams['v']);
864
  }
865
 
866
- // if (self::$alloptions[self::$opt_dynload] == 1
867
- // //&& $finalparams[self::$opt_autoplay] != 1
868
- // )
869
- // {
870
- // $dynsrc = 'data-ep-';
871
- // }
872
 
 
 
 
 
 
 
 
 
873
  if (isset($linkparams[self::$opt_vol]) && is_numeric(trim($linkparams[self::$opt_vol])))
874
  {
875
  $voloutput = ' data-vol="' . $linkparams[self::$opt_vol] . '" ';
@@ -894,24 +896,24 @@ class YouTubePrefs
894
  }
895
 
896
  $code1 = '<iframe ' . $centercode . ' id="_ytid_' . rand(10000, 99999) . '" width="' . self::$defaultwidth . '" height="' . self::$defaultheight .
897
- '" ' . $dynsrc . 'src="' . $linkscheme . '://www.' . $youtubebaseurl . '.com/embed/' . (isset($linkparams['v']) ? $linkparams['v'] : '') . '?';
898
  $code2 = '" frameborder="0" type="text/html" class="__youtube_prefs__' . ($iscontent ? '' : ' __youtube_prefs_widget__') .
899
  '"' . $voloutput . ' allowfullscreen webkitallowfullscreen mozallowfullscreen ></iframe>' . $schemaorgoutput;
900
 
901
  $origin = '';
902
 
903
- try
904
- {
905
- if (!empty($_SERVER["HTTP_HOST"]))
906
- {
907
- $origin = 'origin=' .
908
- ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? 'https://' : 'http://') . $_SERVER["HTTP_HOST"] . '&';
909
- }
910
- }
911
- catch (Exception $e)
912
- {
913
-
914
- }
915
  $finalsrc = 'enablejsapi=1&'; // . $origin;
916
 
917
  if (count($finalparams) > 1)
@@ -1351,13 +1353,15 @@ class YouTubePrefs
1351
  $new_pointer_content .= '<p>'; // . __(''); // ooopointer
1352
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
1353
  {
1354
- $new_pointer_content .= __('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 it (for FREE and <a href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO versions &raquo;)</a>.');
 
1355
  //<a href=\"" . admin_url('admin.php?page=youtube-my-preferences') . "#jumpdefaults\">See the settings page for more details &raquo;</a>"
1356
  //$new_pointer_content .= __('This YouTube plugin update makes HTTPS embedding available for both FREE and <a class="orange" href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO &raquo;</a> users. Please view this settings page to see the option. It will even automatically go and secure the non-HTTPS embeds you made in the past.');
1357
  }
1358
  else
1359
  {
1360
- $new_pointer_content .= __('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 (for FREE and <a href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO versions &raquo;)</a>.');
 
1361
  //$new_pointer_content .= __('');
1362
  }
1363
  $new_pointer_content .= '</p>';
@@ -1426,11 +1430,11 @@ class YouTubePrefs
1426
  $new_options[self::$opt_vq] = self::postchecked(self::$opt_vq) ? 'hd720' : '';
1427
  $new_options[self::$opt_nocookie] = self::postchecked(self::$opt_nocookie) ? 1 : 0;
1428
  $new_options[self::$opt_ogvideo] = self::postchecked(self::$opt_ogvideo) ? 1 : 0;
1429
- $new_options[self::$opt_ssl] = self::postchecked(self::$opt_ssl) ? 1 : 0;
1430
  $new_options[self::$opt_oldspacing] = self::postchecked(self::$opt_oldspacing) ? 1 : 0;
1431
  $new_options[self::$opt_responsive] = self::postchecked(self::$opt_responsive) ? 1 : 0;
1432
  $new_options[self::$opt_schemaorg] = self::postchecked(self::$opt_schemaorg) ? 1 : 0;
1433
- //$new_options[self::$opt_dynload] = self::postchecked(self::$opt_dynload) ? 1 : 0;
1434
  $new_options[self::$opt_defaultdims] = self::postchecked(self::$opt_defaultdims) ? 1 : 0;
1435
  $new_options[self::$opt_defaultvol] = self::postchecked(self::$opt_defaultvol) ? 1 : 0;
1436
  $new_options[self::$opt_dohl] = self::postchecked(self::$opt_dohl) ? 1 : 0;
@@ -1571,7 +1575,7 @@ class YouTubePrefs
1571
  <a href="#jumpwiz">Visual YouTube Wizard</a>
1572
  <a href="#jumpdefaults">Set Defaults</a>
1573
  <a href="#jumpoverride">How To Override Defaults</a>
1574
- <a href="#jumppro" style="border-color: #888888;">Go PRO!</a>
1575
  <a href="#jumpsupport">Support</a>
1576
  </div>
1577
 
@@ -1583,13 +1587,13 @@ class YouTubePrefs
1583
  </h3>
1584
  <p>
1585
  <b>For videos:</b> <i>Method 1 - </i> Do you already have a URL to the video you want to embed? All you have to do is paste it on its own line, as shown below (including the http:// part). Easy, eh?<br>
1586
- <i>Method 2 - </i> If you want to have two or more videos next to each other on the same line, wrap each link with the <code>[embedyt]...[/embedyt]</code> shortcode. <b>Tip for embedding videos on the same line:</b> As shown in the example image below, decrease the size of each video so that they fit together on the same line (See the "How To Override Defaults" section for height and width instructions).
1587
  </p>
1588
  <p>
1589
  <b>For playlists:</b> Go to the page for the playlist that lists all of its videos (<a target="_blank" href="http://www.youtube.com/playlist?list=PL70DEC2B0568B5469">Example &raquo;</a>). Click on the video that you want the playlist to start with. Copy and paste that browser URL into your blog on its own line. If you want to have two or more playlists next to each other on the same line, wrap each link with the <code>[embedyt]...[/embedyt]</code> shortcode.
1590
  </p>
1591
  <p>
1592
- <b>For channel playlists:<sup class="orange">NEW</sup></b> At your editor, click on the <img style="vertical-align: text-bottom;" src="<?php echo plugins_url('images/wizbuttonbig.png', __FILE__) ?>"> wizard button and choose the option <i>Search for a video or channel to insert in my editor.</i> Then, click on the <i>channel playlist</i> option there (instead of <i>single video</i>). Search for the channel username and follow the rest of the directions there.
1593
  </p>
1594
  <p>
1595
  <b>Examples:</b><br><br>
@@ -1665,7 +1669,7 @@ class YouTubePrefs
1665
  </p>
1666
  <p>
1667
  <input name="<?php echo self::$opt_modestbranding; ?>" id="<?php echo self::$opt_modestbranding; ?>" <?php checked($all[self::$opt_modestbranding], 1); ?> type="checkbox" class="checkbox">
1668
- <label for="<?php echo self::$opt_modestbranding; ?>"><?php _e('<b class="chktitle">Modest Branding:</b> Hide YouTube logo from control bar while playing.') ?></label>
1669
  </p>
1670
  <p>
1671
  <input name="<?php echo self::$opt_rel; ?>" id="<?php echo self::$opt_rel; ?>" <?php checked($all[self::$opt_rel], 1); ?> type="checkbox" class="checkbox">
@@ -1685,7 +1689,7 @@ class YouTubePrefs
1685
  </p>
1686
  <p>
1687
  <input name="<?php echo self::$opt_vq; ?>" id="<?php echo self::$opt_vq; ?>" <?php checked($all[self::$opt_vq], 'hd720'); ?> type="checkbox" class="checkbox">
1688
- <label for="<?php echo self::$opt_vq; ?>"><?php _e('<b class="chktitle">HD Quality:</b> Force HD quality when available.') ?> </label>
1689
  </p>
1690
  <p>
1691
  <input name="<?php echo self::$opt_controls; ?>" id="<?php echo self::$opt_controls; ?>" <?php checked($all[self::$opt_controls], 2); ?> type="checkbox" class="checkbox">
@@ -1697,7 +1701,7 @@ class YouTubePrefs
1697
  </p>
1698
  <p>
1699
  <input name="<?php echo self::$opt_responsive; ?>" id="<?php echo self::$opt_responsive; ?>" <?php checked($all[self::$opt_responsive], 1); ?> type="checkbox" class="checkbox">
1700
- <label for="<?php echo self::$opt_responsive; ?>"><?php _e('<b class="chktitle">Responsive Video Sizing:</b> Make your videos responsive so that they dynamically fit in all screen sizes (smart phone, PC and tablet). NOTE: While this is checked, any custom hardcoded widths and heights you may have set will dynamically change too.') ?></label>
1701
  </p>
1702
  <p>
1703
  <input name="<?php echo self::$opt_defaultdims; ?>" id="<?php echo self::$opt_defaultdims; ?>" <?php checked($all[self::$opt_defaultdims], 1); ?> type="checkbox" class="checkbox">
@@ -1706,12 +1710,12 @@ class YouTubePrefs
1706
  Height: <input type="text" name="<?php echo self::$opt_defaultheight; ?>" id="<?php echo self::$opt_defaultheight; ?>" value="<?php echo trim($all[self::$opt_defaultheight]); ?>" class="textinput" style="width: 50px;">
1707
  </span>
1708
 
1709
- <label for="<?php echo self::$opt_defaultdims; ?>"><?php _e('<b class="chktitle">Default Dimensions:</b> Make your videos have a default size (NOTE: Checking the responsive option will override this size setting) ') ?></label>
1710
  </p>
1711
  <p>
1712
  <input name="<?php echo self::$opt_nocookie; ?>" id="<?php echo self::$opt_nocookie; ?>" <?php checked($all[self::$opt_nocookie], 1); ?> type="checkbox" class="checkbox">
1713
  <label for="<?php echo self::$opt_nocookie; ?>">
1714
- <b class="chktitle">YouTube Cookies:</b> Prevent YouTube from leaving tracking cookies on your visitors browsers unless they actual play the videos. This is coded to apply this behavior on links in your past post as well. (Checking this might affect YouTube API behavior)
1715
  </label>
1716
  </p>
1717
  <p>
@@ -1728,13 +1732,13 @@ class YouTubePrefs
1728
  <b class="chktitle">Legacy Spacing:</b> Continue the spacing style from version 4.0 and older. Those versions required you to manually add spacing above and below your video. Unchecking this will automatically add the spacing.
1729
  </label>
1730
  </p>
1731
- <p>
1732
  <input name="<?php echo self::$opt_ssl; ?>" id="<?php echo self::$opt_ssl; ?>" <?php checked($all[self::$opt_ssl], 1); ?> type="checkbox" class="checkbox">
1733
  <label for="<?php echo self::$opt_ssl; ?>">
1734
  <b class="chktitle">HTTPS/SSL Player:</b> Do you have a website that uses HTTPS? Check this to use the secure YouTube player for all of your embeds.
1735
  This will go back and also secure your past embeds as they are loaded on their pages. Most web browsers will warn users when they access web pages via HTTPS that contain embedded content loaded via HTTP. If your main site is currently accessed via HTTPS, using HTTPS URLs for your YouTube embeds will prevent your users from running into that warning. If you're not currently supporting HTTPS/SSL, <a href="http://embedplus.com/convert-old-youtube-embeds-to-https-ssl.aspx" target="_blank">here's some motivation from Google &raquo;</a>
1736
  </label>
1737
- </p>
1738
  <p>
1739
  <input name="<?php echo self::$opt_defaultvol; ?>" id="<?php echo self::$opt_defaultvol; ?>" <?php checked($all[self::$opt_defaultvol], 1); ?> type="checkbox" class="checkbox">
1740
  <span id="boxdefaultvol">
@@ -1748,7 +1752,7 @@ class YouTubePrefs
1748
 
1749
  <p>
1750
  <input name="<?php echo self::$opt_dohl; ?>" id="<?php echo self::$opt_dohl; ?>" <?php checked($all[self::$opt_dohl], 1); ?> type="checkbox" class="checkbox">
1751
- <!-- <span id="boxdohl">
1752
  Language: <input type="text" name="<?php echo self::$opt_hl; ?>" id="<?php echo self::$opt_hl; ?>" value="<?php echo trim($all[self::$opt_hl]); ?>" class="textinput" style="width: 50px;" maxlength="2">
1753
  </span>-->
1754
  <label for="<?php echo self::$opt_dohl; ?>"><b class="chktitle">Player Localization / Internationalization: <sup class="orange">NEW</sup></b>
@@ -1763,7 +1767,8 @@ class YouTubePrefs
1763
  <p>
1764
  <input name="<?php echo self::$opt_html5; ?>" id="<?php echo self::$opt_html5; ?>" <?php checked($all[self::$opt_html5], 1); ?> type="checkbox" class="checkbox">
1765
  <label for="<?php echo self::$opt_html5; ?>">
1766
- <b>(PRO)</b> <b class="chktitle">HTML5 First:</b> Speed up your pages containing YouTube videos by using YouTube's HTML5 player instead of the Flash player when available. It's been noted that using the HTML5 player offers visibly lower page load times than Flash. Our own internal tests along with data from some beta testers suggest the same thing. In fact, some experiments show that pages (with multiple embeds) can have over four times less size with HTML5 than Flash.
 
1767
  </label>
1768
  </p>
1769
  <p>
@@ -1781,15 +1786,7 @@ class YouTubePrefs
1781
  <b>(PRO)</b> <b class="chktitle">Facebook Open Graph Markup:</b> <span class="pronon">(NEW: PRO Users)</span> Update YouTube embeds on your pages with Open Graph markup to enhance Facebook sharing and discovery of the pages. Your shared pages, for example, will also display embedded video thumbnails on Facebook Timelines.
1782
  </label>
1783
  </p>
1784
- <input name="<?php echo self::$opt_dynload; ?>" type="hidden" value="0" />
1785
- <!--
1786
- <p>
1787
- <input name="<?php echo self::$opt_dynload; ?>" id="<?php echo self::$opt_dynload; ?>" <?php checked($all[self::$opt_dynload], 1); ?> type="checkbox" class="checkbox">
1788
- <label for="<?php echo self::$opt_dynload; ?>">
1789
- <b>(PRO)</b> <b class="chktitle"></b>
1790
- </label>
1791
- </p>
1792
- -->
1793
  <?php
1794
  }
1795
  else
@@ -1798,7 +1795,8 @@ class YouTubePrefs
1798
  <p>
1799
  <input disabled type="checkbox" class="checkbox">
1800
  <label>
1801
- <b class="chktitle">HTML5 First:</b> <span class="pronon">(PRO Users)</span> Speed up your pages containing YouTube videos by using YouTube's HTML5 player instead of the Flash player when available. It's been noted that using the HTML5 player offers visibly lower page load times than Flash. Our own internal tests along with data from some beta testers suggest the same thing. <b>In fact, some experiments show that pages (with multiple embeds) can have over four times less size with HTML5 than Flash.</b>
 
1802
  </label>
1803
  </p>
1804
  <p>
@@ -1816,13 +1814,6 @@ class YouTubePrefs
1816
  <b class="chktitle">Facebook Open Graph Markup:</b> <span class="pronon">(NEW: PRO Users)</span> Update YouTube embeds on your pages with Open Graph markup to enhance Facebook sharing and discovery of the pages. Your shared pages, for example, will also display embedded video thumbnails on Facebook Timelines.
1817
  </label>
1818
  </p>
1819
-
1820
- <!-- <p>
1821
- <input disabled type="checkbox" class="checkbox">
1822
- <label>
1823
- <b class="chktitle"></b> <span class="pronon"></span>
1824
- </label>
1825
- </p>-->
1826
 
1827
  <?php
1828
  }
@@ -2028,7 +2019,7 @@ class YouTubePrefs
2028
  <a href="#jumpwiz">Visual YouTube Wizard</a>
2029
  <a href="#jumpdefaults">Set Defaults</a>
2030
  <a href="#jumpoverride">How To Override Defaults</a>
2031
- <a href="#jumppro" style="border-color: #888888;">Go PRO!</a>
2032
  <a href="#jumpsupport">Support</a>
2033
  </div>
2034
 
@@ -2060,15 +2051,15 @@ class YouTubePrefs
2060
  }
2061
  }
2062
 
2063
- // if (jQuery("#<?php echo self::$opt_dohl; ?>").is(":checked"))
2064
- // {
2065
- // if (!(/^[A-Za-z][A-Za-z]$/.test(jQuery.trim(jQuery("#<?php echo self::$opt_hl; ?>").val()))))
2066
- // {
2067
- // alertmessage += "Please enter a valid 2-letter language code.";
2068
- // jQuery("#boxdohl input").css("background-color", "#ffcccc").css("border", "2px solid #000000");
2069
- // valid = false;
2070
- // }
2071
- // }
2072
 
2073
  if (!valid)
2074
  {
@@ -2095,18 +2086,18 @@ class YouTubePrefs
2095
  });
2096
 
2097
 
2098
- // jQuery('#<?php echo self::$opt_dohl; ?>').change(function()
2099
- // {
2100
- // if (jQuery(this).is(":checked"))
2101
- // {
2102
- // jQuery("#boxdohl").show(500);
2103
- // }
2104
- // else
2105
- // {
2106
- // jQuery("#boxdohl").hide(500);
2107
- // }
2108
- //
2109
- // });
2110
 
2111
 
2112
 
@@ -2209,10 +2200,13 @@ class YouTubePrefs
2209
  public static function ytprefsscript()
2210
  {
2211
  wp_enqueue_script('__ytprefs__', plugins_url('scripts/ytprefs.min.js', __FILE__));
2212
- // if (!is_admin() && (self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0) && self::$alloptions[self::$opt_dynload] == 1)
2213
- // {
2214
- // wp_enqueue_script('__dynload__', plugins_url('scripts/jquery.lazyloadxt.extra.js', __FILE__));
2215
- // }
 
 
 
2216
  }
2217
 
2218
  public static function get_blogwidth()
@@ -2320,9 +2314,9 @@ class YouTubePrefs
2320
 
2321
  register_activation_hook(__FILE__, array('YouTubePrefs', 'initoptions'));
2322
  $youtubeplgplus = new YouTubePrefs();
2323
-
2324
-
2325
- add_action('wp_enqueue_scripts', array('YouTubePrefs', 'ytprefsscript'));
2326
  add_action("wp_ajax_my_embedplus_pro_record", array('YouTubePrefs', 'my_embedplus_pro_record'));
2327
  add_action("wp_ajax_my_embedplus_glance_vids", array('YouTubePrefs', 'my_embedplus_glance_vids'));
2328
  add_action("wp_ajax_my_embedplus_glance_count", array('YouTubePrefs', 'my_embedplus_glance_count'));
3
  Plugin Name: YouTube
4
  Plugin URI: http://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx
5
  Description: YouTube embed plugin with basic features and convenient defaults. Upgrade now to add tracking, instant video SEO tags, and much more!
6
+ Version: 9.2
7
  Author: EmbedPlus Team
8
  Author URI: http://www.embedplus.com
9
  */
32
  class YouTubePrefs
33
  {
34
 
35
+ public static $version = '9.2';
36
  public static $opt_version = 'version';
37
  public static $optembedwidth = null;
38
  public static $optembedheight = null;
70
  public static $opt_defaultvol = 'defaultvol';
71
  public static $opt_vol = 'vol';
72
  public static $opt_schemaorg = 'schemaorg';
73
+ //public static $opt_dynload = 'dynload'; ooodyn
74
  public static $opt_alloptions = 'youtubeprefs_alloptions';
75
  public static $alloptions = null;
76
  public static $yt_options = array();
640
  $_oldspacing = 1;
641
  $_responsive = 0;
642
  $_schemaorg = 0;
643
+ //$_dynload = 0; ooodyn
644
  $_wmode = 'opaque';
645
  $_defaultdims = 0;
646
  $_defaultwidth = '';
682
  $_oldspacing = self::tryget($arroptions, self::$opt_oldspacing, 1);
683
  $_responsive = self::tryget($arroptions, self::$opt_responsive, 0);
684
  $_schemaorg = self::tryget($arroptions, self::$opt_schemaorg, 0);
685
+ //$_dynload = self::tryget($arroptions, self::$opt_dynload, 0); ooodyn
686
  $_defaultdims = self::tryget($arroptions, self::$opt_defaultdims, 0);
687
  $_defaultwidth = self::tryget($arroptions, self::$opt_defaultwidth, '');
688
  $_defaultheight = self::tryget($arroptions, self::$opt_defaultheight, '');
722
  self::$opt_oldspacing => $_oldspacing,
723
  self::$opt_responsive => $_responsive,
724
  self::$opt_schemaorg => $_schemaorg,
725
+ //self::$opt_dynload => $_dynload, ooodyn
726
  self::$opt_defaultdims => $_defaultdims,
727
  self::$opt_defaultwidth => $_defaultwidth,
728
  self::$opt_defaultheight => $_defaultheight,
811
  $linkparams['v'] = array_pop($vtemp);
812
  }
813
 
814
+ //$linkscheme = 'http';
815
  $youtubebaseurl = 'youtube';
816
  $schemaorgoutput = '';
817
  $voloutput = '';
818
+ //$dynsrc = ''; ooodyn
819
 
820
  $finalparams = $linkparams + self::$alloptions;
821
 
826
  $youtubebaseurl = 'youtube-nocookie';
827
  }
828
 
829
+ // if (self::$alloptions[self::$opt_ssl] == 1)
830
+ // {
831
+ // $linkscheme = 'https';
832
+ // }
833
 
834
  if (self::$alloptions[self::$opt_defaultvol] == 1)
835
  {
863
  $schemaorgoutput = self::getschemaorgoutput($finalparams['v']);
864
  }
865
 
 
 
 
 
 
 
866
 
867
+ /* ooodyn
868
+ if (self::$alloptions[self::$opt_dynload] == 1
869
+ //&& $finalparams[self::$opt_autoplay] != 1
870
+ )
871
+ {
872
+ $dynsrc = 'data-ep-';
873
+ }
874
+ */
875
  if (isset($linkparams[self::$opt_vol]) && is_numeric(trim($linkparams[self::$opt_vol])))
876
  {
877
  $voloutput = ' data-vol="' . $linkparams[self::$opt_vol] . '" ';
896
  }
897
 
898
  $code1 = '<iframe ' . $centercode . ' id="_ytid_' . rand(10000, 99999) . '" width="' . self::$defaultwidth . '" height="' . self::$defaultheight .
899
+ '" ' /* . $dynsrc ooodyn */ . 'src="' . '//www.' . $youtubebaseurl . '.com/embed/' . (isset($linkparams['v']) ? $linkparams['v'] : '') . '?';
900
  $code2 = '" frameborder="0" type="text/html" class="__youtube_prefs__' . ($iscontent ? '' : ' __youtube_prefs_widget__') .
901
  '"' . $voloutput . ' allowfullscreen webkitallowfullscreen mozallowfullscreen ></iframe>' . $schemaorgoutput;
902
 
903
  $origin = '';
904
 
905
+ // try
906
+ // {
907
+ // if (!empty($_SERVER["HTTP_HOST"]))
908
+ // {
909
+ // $origin = 'origin=' .
910
+ // ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? 'https://' : 'http://') . $_SERVER["HTTP_HOST"] . '&';
911
+ // }
912
+ // }
913
+ // catch (Exception $e)
914
+ // {
915
+ //
916
+ // }
917
  $finalsrc = 'enablejsapi=1&'; // . $origin;
918
 
919
  if (count($finalparams) > 1)
1353
  $new_pointer_content .= '<p>'; // . __(''); // ooopointer
1354
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
1355
  {
1356
+ $new_pointer_content .= __('HTTPS/SSL detection is now fully automatic. The manual checkbox is no longer needed (for FREE and <a href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO versions &raquo;</a>).');
1357
+ //$new_pointer_content .= __('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 it (for FREE and <a href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO versions &raquo;)</a>.');
1358
  //<a href=\"" . admin_url('admin.php?page=youtube-my-preferences') . "#jumpdefaults\">See the settings page for more details &raquo;</a>"
1359
  //$new_pointer_content .= __('This YouTube plugin update makes HTTPS embedding available for both FREE and <a class="orange" href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO &raquo;</a> users. Please view this settings page to see the option. It will even automatically go and secure the non-HTTPS embeds you made in the past.');
1360
  }
1361
  else
1362
  {
1363
+ $new_pointer_content .= __('HTTPS/SSL detection is now fully automatic. The manual checkbox is no longer needed (for FREE and <a href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO versions &raquo;</a>).');
1364
+ //$new_pointer_content .= __('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 (for FREE and <a href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO versions &raquo;)</a>.');
1365
  //$new_pointer_content .= __('');
1366
  }
1367
  $new_pointer_content .= '</p>';
1430
  $new_options[self::$opt_vq] = self::postchecked(self::$opt_vq) ? 'hd720' : '';
1431
  $new_options[self::$opt_nocookie] = self::postchecked(self::$opt_nocookie) ? 1 : 0;
1432
  $new_options[self::$opt_ogvideo] = self::postchecked(self::$opt_ogvideo) ? 1 : 0;
1433
+ //$new_options[self::$opt_ssl] = self::postchecked(self::$opt_ssl) ? 1 : 0;
1434
  $new_options[self::$opt_oldspacing] = self::postchecked(self::$opt_oldspacing) ? 1 : 0;
1435
  $new_options[self::$opt_responsive] = self::postchecked(self::$opt_responsive) ? 1 : 0;
1436
  $new_options[self::$opt_schemaorg] = self::postchecked(self::$opt_schemaorg) ? 1 : 0;
1437
+ //$new_options[self::$opt_dynload] = self::postchecked(self::$opt_dynload) ? 1 : 0; ooodyn
1438
  $new_options[self::$opt_defaultdims] = self::postchecked(self::$opt_defaultdims) ? 1 : 0;
1439
  $new_options[self::$opt_defaultvol] = self::postchecked(self::$opt_defaultvol) ? 1 : 0;
1440
  $new_options[self::$opt_dohl] = self::postchecked(self::$opt_dohl) ? 1 : 0;
1575
  <a href="#jumpwiz">Visual YouTube Wizard</a>
1576
  <a href="#jumpdefaults">Set Defaults</a>
1577
  <a href="#jumpoverride">How To Override Defaults</a>
1578
+ <a href="#jumppro" style="border-color: #888888;">Why Go PRO?</a>
1579
  <a href="#jumpsupport">Support</a>
1580
  </div>
1581
 
1587
  </h3>
1588
  <p>
1589
  <b>For videos:</b> <i>Method 1 - </i> Do you already have a URL to the video you want to embed? All you have to do is paste it on its own line, as shown below (including the http:// part). Easy, eh?<br>
1590
+ <i>Method 2 - </i> If you want to do some formatting (e.g. add HTML to center a video) or have two or more videos next to each other on the same line, wrap each link with the <code>[embedyt]...[/embedyt]</code> shortcode. <b>Tip for embedding videos on the same line:</b> As shown in the example image below, decrease the size of each video so that they fit together on the same line (See the "How To Override Defaults" section for height and width instructions).
1591
  </p>
1592
  <p>
1593
  <b>For playlists:</b> Go to the page for the playlist that lists all of its videos (<a target="_blank" href="http://www.youtube.com/playlist?list=PL70DEC2B0568B5469">Example &raquo;</a>). Click on the video that you want the playlist to start with. Copy and paste that browser URL into your blog on its own line. If you want to have two or more playlists next to each other on the same line, wrap each link with the <code>[embedyt]...[/embedyt]</code> shortcode.
1594
  </p>
1595
  <p>
1596
+ <b>For channel playlists:</b> At your editor, click on the <img style="vertical-align: text-bottom;" src="<?php echo plugins_url('images/wizbuttonbig.png', __FILE__) ?>"> wizard button and choose the option <i>Search for a video or channel to insert in my editor.</i> Then, click on the <i>channel playlist</i> option there (instead of <i>single video</i>). Search for the channel username and follow the rest of the directions there.
1597
  </p>
1598
  <p>
1599
  <b>Examples:</b><br><br>
1669
  </p>
1670
  <p>
1671
  <input name="<?php echo self::$opt_modestbranding; ?>" id="<?php echo self::$opt_modestbranding; ?>" <?php checked($all[self::$opt_modestbranding], 1); ?> type="checkbox" class="checkbox">
1672
+ <label for="<?php echo self::$opt_modestbranding; ?>"><?php _e('<b class="chktitle">Modest Branding:</b> No YouTube logo will be shown on the control bar. Instead, the logo will only show as a watermark when the video is paused/stopped.') ?></label>
1673
  </p>
1674
  <p>
1675
  <input name="<?php echo self::$opt_rel; ?>" id="<?php echo self::$opt_rel; ?>" <?php checked($all[self::$opt_rel], 1); ?> type="checkbox" class="checkbox">
1689
  </p>
1690
  <p>
1691
  <input name="<?php echo self::$opt_vq; ?>" id="<?php echo self::$opt_vq; ?>" <?php checked($all[self::$opt_vq], 'hd720'); ?> type="checkbox" class="checkbox">
1692
+ <label for="<?php echo self::$opt_vq; ?>"><?php _e('<b class="chktitle">HD Quality:</b> Force HD quality when available. <b>NOTE: YouTube is deprecating this unofficially supported option.</b>') ?> </label>
1693
  </p>
1694
  <p>
1695
  <input name="<?php echo self::$opt_controls; ?>" id="<?php echo self::$opt_controls; ?>" <?php checked($all[self::$opt_controls], 2); ?> type="checkbox" class="checkbox">
1701
  </p>
1702
  <p>
1703
  <input name="<?php echo self::$opt_responsive; ?>" id="<?php echo self::$opt_responsive; ?>" <?php checked($all[self::$opt_responsive], 1); ?> type="checkbox" class="checkbox">
1704
+ <label for="<?php echo self::$opt_responsive; ?>"><?php _e('<b class="chktitle">Responsive Video Sizing:</b> Make your videos responsive so that they dynamically fit in all screen sizes (smart phone, PC and tablet). NOTE: While this is checked, any custom hardcoded widths and heights you may have set will dynamically change too. <b>Do not check this if your theme already handles responsive video sizing.</b>') ?></label>
1705
  </p>
1706
  <p>
1707
  <input name="<?php echo self::$opt_defaultdims; ?>" id="<?php echo self::$opt_defaultdims; ?>" <?php checked($all[self::$opt_defaultdims], 1); ?> type="checkbox" class="checkbox">
1710
  Height: <input type="text" name="<?php echo self::$opt_defaultheight; ?>" id="<?php echo self::$opt_defaultheight; ?>" value="<?php echo trim($all[self::$opt_defaultheight]); ?>" class="textinput" style="width: 50px;">
1711
  </span>
1712
 
1713
+ <label for="<?php echo self::$opt_defaultdims; ?>"><?php _e('<b class="chktitle">Default Dimensions:</b> Make your videos have a default size. (NOTE: Checking the responsive option will override this size setting) ') ?></label>
1714
  </p>
1715
  <p>
1716
  <input name="<?php echo self::$opt_nocookie; ?>" id="<?php echo self::$opt_nocookie; ?>" <?php checked($all[self::$opt_nocookie], 1); ?> type="checkbox" class="checkbox">
1717
  <label for="<?php echo self::$opt_nocookie; ?>">
1718
+ <b class="chktitle">YouTube Cookies:</b> Prevent YouTube from leaving tracking cookies on your visitors browsers unless they actual play the videos. This is coded to apply this behavior on links in your past post as well. <b>NOTE: Do not check this if you plan to embed playlists.</b>
1719
  </label>
1720
  </p>
1721
  <p>
1732
  <b class="chktitle">Legacy Spacing:</b> Continue the spacing style from version 4.0 and older. Those versions required you to manually add spacing above and below your video. Unchecking this will automatically add the spacing.
1733
  </label>
1734
  </p>
1735
+ <!-- <p>
1736
  <input name="<?php echo self::$opt_ssl; ?>" id="<?php echo self::$opt_ssl; ?>" <?php checked($all[self::$opt_ssl], 1); ?> type="checkbox" class="checkbox">
1737
  <label for="<?php echo self::$opt_ssl; ?>">
1738
  <b class="chktitle">HTTPS/SSL Player:</b> Do you have a website that uses HTTPS? Check this to use the secure YouTube player for all of your embeds.
1739
  This will go back and also secure your past embeds as they are loaded on their pages. Most web browsers will warn users when they access web pages via HTTPS that contain embedded content loaded via HTTP. If your main site is currently accessed via HTTPS, using HTTPS URLs for your YouTube embeds will prevent your users from running into that warning. If you're not currently supporting HTTPS/SSL, <a href="http://embedplus.com/convert-old-youtube-embeds-to-https-ssl.aspx" target="_blank">here's some motivation from Google &raquo;</a>
1740
  </label>
1741
+ </p>-->
1742
  <p>
1743
  <input name="<?php echo self::$opt_defaultvol; ?>" id="<?php echo self::$opt_defaultvol; ?>" <?php checked($all[self::$opt_defaultvol], 1); ?> type="checkbox" class="checkbox">
1744
  <span id="boxdefaultvol">
1752
 
1753
  <p>
1754
  <input name="<?php echo self::$opt_dohl; ?>" id="<?php echo self::$opt_dohl; ?>" <?php checked($all[self::$opt_dohl], 1); ?> type="checkbox" class="checkbox">
1755
+ <!-- <span id="boxdohl">
1756
  Language: <input type="text" name="<?php echo self::$opt_hl; ?>" id="<?php echo self::$opt_hl; ?>" value="<?php echo trim($all[self::$opt_hl]); ?>" class="textinput" style="width: 50px;" maxlength="2">
1757
  </span>-->
1758
  <label for="<?php echo self::$opt_dohl; ?>"><b class="chktitle">Player Localization / Internationalization: <sup class="orange">NEW</sup></b>
1767
  <p>
1768
  <input name="<?php echo self::$opt_html5; ?>" id="<?php echo self::$opt_html5; ?>" <?php checked($all[self::$opt_html5], 1); ?> type="checkbox" class="checkbox">
1769
  <label for="<?php echo self::$opt_html5; ?>">
1770
+ <b>(PRO)</b> <b class="chktitle">HTML5 First:</b>
1771
+ Use YouTube's HTML5 player instead of the Flash player when available.
1772
  </label>
1773
  </p>
1774
  <p>
1786
  <b>(PRO)</b> <b class="chktitle">Facebook Open Graph Markup:</b> <span class="pronon">(NEW: PRO Users)</span> Update YouTube embeds on your pages with Open Graph markup to enhance Facebook sharing and discovery of the pages. Your shared pages, for example, will also display embedded video thumbnails on Facebook Timelines.
1787
  </label>
1788
  </p>
1789
+
 
 
 
 
 
 
 
 
1790
  <?php
1791
  }
1792
  else
1795
  <p>
1796
  <input disabled type="checkbox" class="checkbox">
1797
  <label>
1798
+ <b class="chktitle">HTML5 First:</b> <span class="pronon">(PRO Users)</span>
1799
+ Use YouTube's HTML5 player instead of the Flash player when available.
1800
  </label>
1801
  </p>
1802
  <p>
1814
  <b class="chktitle">Facebook Open Graph Markup:</b> <span class="pronon">(NEW: PRO Users)</span> Update YouTube embeds on your pages with Open Graph markup to enhance Facebook sharing and discovery of the pages. Your shared pages, for example, will also display embedded video thumbnails on Facebook Timelines.
1815
  </label>
1816
  </p>
 
 
 
 
 
 
 
1817
 
1818
  <?php
1819
  }
2019
  <a href="#jumpwiz">Visual YouTube Wizard</a>
2020
  <a href="#jumpdefaults">Set Defaults</a>
2021
  <a href="#jumpoverride">How To Override Defaults</a>
2022
+ <a href="#jumppro" style="border-color: #888888;">Why Go PRO?</a>
2023
  <a href="#jumpsupport">Support</a>
2024
  </div>
2025
 
2051
  }
2052
  }
2053
 
2054
+ // if (jQuery("#<?php echo self::$opt_dohl; ?>").is(":checked"))
2055
+ // {
2056
+ // if (!(/^[A-Za-z][A-Za-z]$/.test(jQuery.trim(jQuery("#<?php echo self::$opt_hl; ?>").val()))))
2057
+ // {
2058
+ // alertmessage += "Please enter a valid 2-letter language code.";
2059
+ // jQuery("#boxdohl input").css("background-color", "#ffcccc").css("border", "2px solid #000000");
2060
+ // valid = false;
2061
+ // }
2062
+ // }
2063
 
2064
  if (!valid)
2065
  {
2086
  });
2087
 
2088
 
2089
+ // jQuery('#<?php echo self::$opt_dohl; ?>').change(function()
2090
+ // {
2091
+ // if (jQuery(this).is(":checked"))
2092
+ // {
2093
+ // jQuery("#boxdohl").show(500);
2094
+ // }
2095
+ // else
2096
+ // {
2097
+ // jQuery("#boxdohl").hide(500);
2098
+ // }
2099
+ //
2100
+ // });
2101
 
2102
 
2103
 
2200
  public static function ytprefsscript()
2201
  {
2202
  wp_enqueue_script('__ytprefs__', plugins_url('scripts/ytprefs.min.js', __FILE__));
2203
+
2204
+ /* ooodyn
2205
+ if (!is_admin() && (self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0) && self::$alloptions[self::$opt_dynload] == 1)
2206
+ {
2207
+ wp_enqueue_script('__dynload__', plugins_url('scripts/jquery.lazyloadxt.extra.js', __FILE__), array('jquery'), false, false, true);
2208
+ }
2209
+ */
2210
  }
2211
 
2212
  public static function get_blogwidth()
2314
 
2315
  register_activation_hook(__FILE__, array('YouTubePrefs', 'initoptions'));
2316
  $youtubeplgplus = new YouTubePrefs();
2317
+
2318
+
2319
+ add_action('wp_enqueue_scripts', array('YouTubePrefs', 'ytprefsscript'), 100);
2320
  add_action("wp_ajax_my_embedplus_pro_record", array('YouTubePrefs', 'my_embedplus_pro_record'));
2321
  add_action("wp_ajax_my_embedplus_glance_vids", array('YouTubePrefs', 'my_embedplus_glance_vids'));
2322
  add_action("wp_ajax_my_embedplus_glance_count", array('YouTubePrefs', 'my_embedplus_glance_count'));