YouTube - Version 9.0

Version Description

Download this release

Release Info

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

Code changes from version 8.9 to 9.0

Files changed (6) hide show
  1. images/index.html +11 -0
  2. index.html +11 -0
  3. readme.txt +7 -2
  4. screenshot-6.jpg +0 -0
  5. scripts/index.html +11 -0
  6. youtube.php +76 -14
images/index.html ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width">
7
+ </head>
8
+ <body>
9
+ <img src="../screenshot-3.jpg" />
10
+ </body>
11
+ </html>
index.html ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width">
7
+ </head>
8
+ <body>
9
+ <img src="screenshot-3.jpg" />
10
+ </body>
11
+ </html>
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === YouTube ===
2
  Contributors: embedplus
3
  Plugin Name: YouTube Embed
4
- Tags: 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
5
  Requires at least: 2.9
6
  Tested up to: 4.0
7
- Stable tag: 8.9
8
  License: GPLv3 or later
9
 
10
  YouTube embed plugin with basic features and convenient defaults. Upgrade now to add tracking, instant video SEO tags, and much more!
@@ -13,6 +13,7 @@ YouTube embed plugin with basic features and convenient defaults. Upgrade now to
13
 
14
  **600,000+ downloads! Here are some recently added features:**
15
 
 
16
  * 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)
17
  * iOS playback preferences
18
  * Embed an entire channel as a playlist
@@ -130,9 +131,13 @@ You can also start and end each individual video at particular times. Like the a
130
  3. YouTube Embed Screenshot 3: Visual YouTube Wizard and Search Tool
131
  4. YouTube Embed Screenshot 4: Wizard Insert Search Result Screenshot
132
  5. YouTube Embed Screenshot 5: Wizard Search Results Screenshot
 
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = YouTube Embed 8.9 =
137
  Allows volume level initialization.
138
 
1
  === YouTube ===
2
  Contributors: embedplus
3
  Plugin Name: YouTube Embed
4
+ Tags: 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.0
8
  License: GPLv3 or later
9
 
10
  YouTube embed plugin with basic features and convenient defaults. Upgrade now to add tracking, instant video SEO tags, and much more!
13
 
14
  **600,000+ downloads! Here are some recently added features:**
15
 
16
+ * 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
131
  3. YouTube Embed Screenshot 3: Visual YouTube Wizard and Search Tool
132
  4. YouTube Embed Screenshot 4: Wizard Insert Search Result Screenshot
133
  5. YouTube Embed Screenshot 5: Wizard Search Results Screenshot
134
+ 6. YouTube Embed Screenshot 6: Localization/internationalization so you can set the player's interface language
135
 
136
  == Changelog ==
137
 
138
+ = YouTube Embed 9.0 =
139
+ Adds automatic localization/internationalization so you can set the player's interface language from English to another.
140
+
141
  = YouTube Embed 8.9 =
142
  Allows volume level initialization.
143
 
screenshot-6.jpg ADDED
Binary file
scripts/index.html ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width">
7
+ </head>
8
+ <body>
9
+ <img src="../screenshot-3.jpg" />
10
+ </body>
11
+ </html>
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: 8.9
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 = '8.9';
36
  public static $opt_version = 'version';
37
  public static $optembedwidth = null;
38
  public static $optembedheight = null;
@@ -56,6 +56,8 @@ class YouTubePrefs
56
  public static $opt_wmode = 'wmode';
57
  public static $opt_vq = 'vq';
58
  public static $opt_html5 = 'html5';
 
 
59
  public static $opt_ssl = 'ssl';
60
  public static $opt_ogvideo = 'ogvideo';
61
  public static $opt_nocookie = 'nocookie';
@@ -129,6 +131,7 @@ class YouTubePrefs
129
  self::$opt_autohide,
130
  self::$opt_controls,
131
  self::$opt_html5,
 
132
  self::$opt_theme,
133
  self::$opt_color,
134
  self::$opt_listType,
@@ -643,6 +646,8 @@ class YouTubePrefs
643
  $_playsinline = 0;
644
  $_defaultvol = 0;
645
  $_vol = '';
 
 
646
 
647
  $arroptions = get_option(self::$opt_alloptions);
648
 
@@ -660,6 +665,8 @@ class YouTubePrefs
660
  $_showinfo = self::tryget($arroptions, self::$opt_showinfo, 1);
661
  $_playsinline = self::tryget($arroptions, self::$opt_playsinline, 0);
662
  $_html5 = self::tryget($arroptions, self::$opt_html5, 0);
 
 
663
  $_theme = self::tryget($arroptions, self::$opt_theme, 'dark');
664
  $_color = self::tryget($arroptions, self::$opt_color, 'red');
665
  $_wmode = self::tryget($arroptions, self::$opt_wmode, 'opaque');
@@ -698,6 +705,8 @@ class YouTubePrefs
698
  self::$opt_playsinline => $_playsinline,
699
  self::$opt_autohide => $_autohide,
700
  self::$opt_html5 => $_html5,
 
 
701
  self::$opt_theme => $_theme,
702
  self::$opt_color => $_color,
703
  self::$opt_wmode => $_wmode,
@@ -824,6 +833,11 @@ class YouTubePrefs
824
  }
825
 
826
 
 
 
 
 
 
827
  if (self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0)
828
  {
829
  if (isset($finalparams[self::$opt_html5]) && $finalparams[self::$opt_html5] == 0)
@@ -1317,12 +1331,13 @@ class YouTubePrefs
1317
  $new_pointer_content .= '<p>'; // . __(''); // ooopointer
1318
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
1319
  {
1320
- $new_pointer_content .= __("This update allows volume level initialization for your YouTube embeds. <a href=\"" . admin_url('admin.php?page=youtube-my-preferences') . "#jumpdefaults\">See the settings page for more details &raquo;</a>");
1321
- //$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.');
 
1322
  }
1323
  else
1324
  {
1325
- $new_pointer_content .= __("This update allows volume level initialization for your YouTube embeds. <a href=\"" . admin_url('admin.php?page=youtube-my-preferences') . "#jumpdefaults\">See the settings page for more details &raquo;</a>");
1326
  //$new_pointer_content .= __('');
1327
  }
1328
  $new_pointer_content .= '</p>';
@@ -1397,6 +1412,7 @@ class YouTubePrefs
1397
  $new_options[self::$opt_schemaorg] = self::postchecked(self::$opt_schemaorg) ? 1 : 0;
1398
  $new_options[self::$opt_defaultdims] = self::postchecked(self::$opt_defaultdims) ? 1 : 0;
1399
  $new_options[self::$opt_defaultvol] = self::postchecked(self::$opt_defaultvol) ? 1 : 0;
 
1400
 
1401
  $_defaultwidth = '';
1402
  try
@@ -1431,6 +1447,20 @@ class YouTubePrefs
1431
  }
1432
  $new_options[self::$opt_vol] = $_vol;
1433
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1434
  $all = $new_options + $all;
1435
 
1436
  // Save the posted value in the database
@@ -1503,6 +1533,7 @@ class YouTubePrefs
1503
  b, strong {font-weight: bold;}
1504
  input.checkbox[disabled] {border: 1px dotted #444444;}
1505
  .pad10 {padding: 10px;}
 
1506
 
1507
  #boxdefaultvol {font-weight: bold; padding: 0px 10px; <?php echo $all[self::$opt_defaultvol] ? '' : 'display: none;' ?>}
1508
  .vol-output {display: none; width: 30px; color: #008800;}
@@ -1572,7 +1603,7 @@ class YouTubePrefs
1572
  <br>
1573
  <br>
1574
 
1575
- <img style="width: 500px; margin: 0 auto; display: block;" src="<?php echo plugins_url('images/ssprowizard.png', __FILE__) ?>" >
1576
 
1577
  </p>
1578
  <div class="jumper" id="jumpdefaults"></div>
@@ -1694,8 +1725,16 @@ class YouTubePrefs
1694
  </label>
1695
  </p>
1696
 
 
 
 
 
 
 
 
 
1697
 
1698
- <p class="smallnote orange">Below are PRO features for enhanced SEO and performance (works for even past embed links):</p>
1699
  <?php
1700
  if ($all[self::$opt_pro] && strlen(trim($all[self::$opt_pro])) > 0)
1701
  {
@@ -1767,7 +1806,7 @@ class YouTubePrefs
1767
  <?php _e("How To Override Defaults / Other Options") ?> <a href="#top" class="totop">&#9650; top</a>
1768
  </h3>
1769
  <p>Suppose you have a few videos that need to be different from the above defaults. You can add options to the end of a link as displayed below to override the above defaults. Each option should begin with '&'.
1770
- <br><span class="pronon">PRO users: You can use the <span class="button-primary cuz">&#9658; Customize</span> button that you will see inside the wizard, instead of memorizing the following.</span>
1771
  <?php
1772
  _e('<ul>');
1773
  _e("<li><strong>width</strong> - Sets the width of your player. If omitted, the default width will be the width of your theme's content.<em> Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&width=500</strong>&height=350</em></li>");
@@ -1864,17 +1903,17 @@ class YouTubePrefs
1864
  </li>
1865
  <li>
1866
  <img src="<?php echo plugins_url('images/iconvolume.png', __FILE__) ?>">
1867
- Fine-Grained Volume Initialization – Make individual video volume settings in the wizard <sup class="orange bold">NEW</sup>
1868
  </li>
1869
 
1870
  <li>
1871
  <img src="<?php echo plugins_url('images/infinity.png', __FILE__) ?>">
1872
  Unlimited PRO upgrades and downloads
1873
  </li>
1874
- <!-- <li>
1875
- <img src="<?php echo plugins_url('images/questionsale.png', __FILE__) ?>">
1876
- What else? You tell us!
1877
- </li> -->
1878
  </ul>
1879
  </div>
1880
  <div style="clear: both;"></div>
@@ -1985,6 +2024,16 @@ class YouTubePrefs
1985
  }
1986
  }
1987
 
 
 
 
 
 
 
 
 
 
 
1988
  if (!valid)
1989
  {
1990
  alert(alertmessage);
@@ -2010,6 +2059,19 @@ class YouTubePrefs
2010
  });
2011
 
2012
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2013
 
2014
 
2015
  jQuery('#<?php echo self::$opt_defaultvol; ?>').change(function()
@@ -2233,7 +2295,7 @@ class YouTubePrefs
2233
  add_action('wp_print_scripts', 'youtubeprefs_output_scriptvars');
2234
 
2235
  if (
2236
- //(!(isset(YouTubePrefs::$alloptions[YouTubePrefs::$opt_pro]) && strlen(trim(YouTubePrefs::$alloptions[YouTubePrefs::$opt_pro])) > 0)) && // display only if not pro ooopointer
2237
  (get_bloginfo('version') >= '3.3') && YouTubePrefs::custom_admin_pointers_check()
2238
  )
2239
  {
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.0
7
  Author: EmbedPlus Team
8
  Author URI: http://www.embedplus.com
9
  */
32
  class YouTubePrefs
33
  {
34
 
35
+ public static $version = '9.0';
36
  public static $opt_version = 'version';
37
  public static $optembedwidth = null;
38
  public static $optembedheight = null;
56
  public static $opt_wmode = 'wmode';
57
  public static $opt_vq = 'vq';
58
  public static $opt_html5 = 'html5';
59
+ public static $opt_dohl = 'dohl';
60
+ public static $opt_hl = 'hl';
61
  public static $opt_ssl = 'ssl';
62
  public static $opt_ogvideo = 'ogvideo';
63
  public static $opt_nocookie = 'nocookie';
131
  self::$opt_autohide,
132
  self::$opt_controls,
133
  self::$opt_html5,
134
+ self::$opt_hl,
135
  self::$opt_theme,
136
  self::$opt_color,
137
  self::$opt_listType,
646
  $_playsinline = 0;
647
  $_defaultvol = 0;
648
  $_vol = '';
649
+ $_hl = '';
650
+ $_dohl = 0;
651
 
652
  $arroptions = get_option(self::$opt_alloptions);
653
 
665
  $_showinfo = self::tryget($arroptions, self::$opt_showinfo, 1);
666
  $_playsinline = self::tryget($arroptions, self::$opt_playsinline, 0);
667
  $_html5 = self::tryget($arroptions, self::$opt_html5, 0);
668
+ $_hl = self::tryget($arroptions, self::$opt_hl, '');
669
+ $_dohl = self::tryget($arroptions, self::$opt_dohl, 0);
670
  $_theme = self::tryget($arroptions, self::$opt_theme, 'dark');
671
  $_color = self::tryget($arroptions, self::$opt_color, 'red');
672
  $_wmode = self::tryget($arroptions, self::$opt_wmode, 'opaque');
705
  self::$opt_playsinline => $_playsinline,
706
  self::$opt_autohide => $_autohide,
707
  self::$opt_html5 => $_html5,
708
+ self::$opt_hl => $_hl,
709
+ self::$opt_dohl => $_dohl,
710
  self::$opt_theme => $_theme,
711
  self::$opt_color => $_color,
712
  self::$opt_wmode => $_wmode,
833
  }
834
 
835
 
836
+ if (!(self::$alloptions[self::$opt_dohl] == 1 && isset($finalparams[self::$opt_hl]) && strlen($finalparams[self::$opt_hl]) == 2))
837
+ {
838
+ unset($finalparams[self::$opt_hl]);
839
+ }
840
+
841
  if (self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0)
842
  {
843
  if (isset($finalparams[self::$opt_html5]) && $finalparams[self::$opt_html5] == 0)
1331
  $new_pointer_content .= '<p>'; // . __(''); // ooopointer
1332
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
1333
  {
1334
+ $new_pointer_content .= __('This update adds the ability to change the player&#39;s interface language from English to another language preferred by you and/or your visitors (for both Free and <a href="' . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer" target="_blank">PRO &raquo;</a> users).');
1335
+ //<a href=\"" . admin_url('admin.php?page=youtube-my-preferences') . "#jumpdefaults\">See the settings page for more details &raquo;</a>"
1336
+ //$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.');
1337
  }
1338
  else
1339
  {
1340
+ $new_pointer_content .= __("Language update. <a href=\"" . admin_url('admin.php?page=youtube-my-preferences') . "#jumpdefaults\">See the settings page for more details &raquo;</a>");
1341
  //$new_pointer_content .= __('');
1342
  }
1343
  $new_pointer_content .= '</p>';
1412
  $new_options[self::$opt_schemaorg] = self::postchecked(self::$opt_schemaorg) ? 1 : 0;
1413
  $new_options[self::$opt_defaultdims] = self::postchecked(self::$opt_defaultdims) ? 1 : 0;
1414
  $new_options[self::$opt_defaultvol] = self::postchecked(self::$opt_defaultvol) ? 1 : 0;
1415
+ $new_options[self::$opt_dohl] = self::postchecked(self::$opt_dohl) ? 1 : 0;
1416
 
1417
  $_defaultwidth = '';
1418
  try
1447
  }
1448
  $new_options[self::$opt_vol] = $_vol;
1449
 
1450
+
1451
+ $_hl = '';
1452
+ try
1453
+ {
1454
+ $temphl = strtolower(trim($_POST[self::$opt_hl]));
1455
+ $_hl = preg_match('/^[a-z][a-z]$/i', $temphl) ? $temphl : '';
1456
+ }
1457
+ catch (Exception $ex)
1458
+ {
1459
+
1460
+ }
1461
+ $new_options[self::$opt_hl] = $_hl;
1462
+
1463
+
1464
  $all = $new_options + $all;
1465
 
1466
  // Save the posted value in the database
1533
  b, strong {font-weight: bold;}
1534
  input.checkbox[disabled] {border: 1px dotted #444444;}
1535
  .pad10 {padding: 10px;}
1536
+ #boxdohl {font-weight: bold; padding: 0px 10px; <?php echo $all[self::$opt_dohl] ? '' : 'display: none;' ?>}
1537
 
1538
  #boxdefaultvol {font-weight: bold; padding: 0px 10px; <?php echo $all[self::$opt_defaultvol] ? '' : 'display: none;' ?>}
1539
  .vol-output {display: none; width: 30px; color: #008800;}
1603
  <br>
1604
  <br>
1605
 
1606
+ <a href="<?php echo self::$epbase ?>/dashboard/pro-easy-video-analytics.aspx" target="_blank" style="text-decoration: none;"><img style="width: 500px; margin: 0 auto; display: block;" src="<?php echo plugins_url('images/ssprowizard.png', __FILE__) ?>" ></a>
1607
 
1608
  </p>
1609
  <div class="jumper" id="jumpdefaults"></div>
1725
  </label>
1726
  </p>
1727
 
1728
+ <p>
1729
+ <input name="<?php echo self::$opt_dohl; ?>" id="<?php echo self::$opt_dohl; ?>" <?php checked($all[self::$opt_dohl], 1); ?> type="checkbox" class="checkbox">
1730
+ <span id="boxdohl">
1731
+ 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">
1732
+ </span>
1733
+ <label for="<?php echo self::$opt_dohl; ?>"><b class="chktitle">Player Localization/Internationalization: <sup class="orange">NEW</sup></b>
1734
+ Change the player's interface language from English to another language preferred by you and/or your visitors. This will set the player's tooltips and default caption track depending on the availability of your desired language. Checking this option will display a box to enter the appropriate two-letter language code. <a href="<?php echo self::$epbase ?>/youtube-iso-639-1-language-codes.aspx" target="_blank">See here for a mapping of languages to YouTube supported codes &raquo;</a></label>
1735
+ </p>
1736
 
1737
+ <p class="smallnote orange">Below are PRO features for enhanced SEO and performance (works for even past embed links). <a href="<?php echo self::$epbase ?>/dashboard/pro-easy-video-analytics.aspx" target="_blank">Activate them &raquo;</a></p>
1738
  <?php
1739
  if ($all[self::$opt_pro] && strlen(trim($all[self::$opt_pro])) > 0)
1740
  {
1806
  <?php _e("How To Override Defaults / Other Options") ?> <a href="#top" class="totop">&#9650; top</a>
1807
  </h3>
1808
  <p>Suppose you have a few videos that need to be different from the above defaults. You can add options to the end of a link as displayed below to override the above defaults. Each option should begin with '&'.
1809
+ <br><span class="smallnote orange">PRO users: You can use the <span class="button-primary cuz">&#9658; Customize</span> button that you will see inside the wizard, instead of memorizing the following.</span>
1810
  <?php
1811
  _e('<ul>');
1812
  _e("<li><strong>width</strong> - Sets the width of your player. If omitted, the default width will be the width of your theme's content.<em> Example: http://www.youtube.com/watch?v=quwebVjAEJA<strong>&width=500</strong>&height=350</em></li>");
1903
  </li>
1904
  <li>
1905
  <img src="<?php echo plugins_url('images/iconvolume.png', __FILE__) ?>">
1906
+ Fine-Grained Volume Initialization – Individual video volume settings in the wizard <sup class="orange bold">NEW</sup>
1907
  </li>
1908
 
1909
  <li>
1910
  <img src="<?php echo plugins_url('images/infinity.png', __FILE__) ?>">
1911
  Unlimited PRO upgrades and downloads
1912
  </li>
1913
+ <!-- <li>
1914
+ <img src="<?php echo plugins_url('images/questionsale.png', __FILE__) ?>">
1915
+ What else? You tell us!
1916
+ </li> -->
1917
  </ul>
1918
  </div>
1919
  <div style="clear: both;"></div>
2024
  }
2025
  }
2026
 
2027
+ if (jQuery("#<?php echo self::$opt_dohl; ?>").is(":checked"))
2028
+ {
2029
+ if (!(/^[A-Za-z][A-Za-z]$/.test(jQuery.trim(jQuery("#<?php echo self::$opt_hl; ?>").val()))))
2030
+ {
2031
+ alertmessage += "Please enter a valid 2-letter language code.";
2032
+ jQuery("#boxdohl input").css("background-color", "#ffcccc").css("border", "2px solid #000000");
2033
+ valid = false;
2034
+ }
2035
+ }
2036
+
2037
  if (!valid)
2038
  {
2039
  alert(alertmessage);
2059
  });
2060
 
2061
 
2062
+ jQuery('#<?php echo self::$opt_dohl; ?>').change(function()
2063
+ {
2064
+ if (jQuery(this).is(":checked"))
2065
+ {
2066
+ jQuery("#boxdohl").show(500);
2067
+ }
2068
+ else
2069
+ {
2070
+ jQuery("#boxdohl").hide(500);
2071
+ }
2072
+
2073
+ });
2074
+
2075
 
2076
 
2077
  jQuery('#<?php echo self::$opt_defaultvol; ?>').change(function()
2295
  add_action('wp_print_scripts', 'youtubeprefs_output_scriptvars');
2296
 
2297
  if (
2298
+ (!(isset(YouTubePrefs::$alloptions[YouTubePrefs::$opt_pro]) && strlen(trim(YouTubePrefs::$alloptions[YouTubePrefs::$opt_pro])) > 0)) && // display only if not pro ooopointer
2299
  (get_bloginfo('version') >= '3.3') && YouTubePrefs::custom_admin_pointers_check()
2300
  )
2301
  {