Version Description
Download this release
Release Info
Developer | freediver |
Plugin | Smart YouTube PRO |
Version | 3.9.0 |
Comparing to | |
See all releases |
Code changes from version 3.8.9 to 3.9.0
- readme.txt +5 -1
- smartyoutube.class.php +16 -5
- smartyoutube.php +1 -1
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: freediver
|
|
3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
4 |
Tags: youtube, video, play, media, Post, posts, admin
|
5 |
Requires at least: 2.0
|
6 |
-
Tested up to: 3.
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Smart Youtube plugin allows you to insert full featured YouTube videos into your post, comments and in RSS feed.
|
@@ -37,6 +37,10 @@ Plugin by Vladimir Prelovac. Looking for <a href="http://www.prelovac.com/vladim
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
40 |
= 3.8.9 =
|
41 |
* Supports new youtube dark 'Cosmic panda' theme
|
42 |
|
3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
4 |
Tags: youtube, video, play, media, Post, posts, admin
|
5 |
Requires at least: 2.0
|
6 |
+
Tested up to: 3.3
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Smart Youtube plugin allows you to insert full featured YouTube videos into your post, comments and in RSS feed.
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 3.9 =
|
41 |
+
* Support for no-branding player
|
42 |
+
* Fixed a bug with two dashes in name
|
43 |
+
|
44 |
= 3.8.9 =
|
45 |
* Supports new youtube dark 'Cosmic panda' theme
|
46 |
|
smartyoutube.class.php
CHANGED
@@ -118,6 +118,7 @@ class SmartYouTube
|
|
118 |
stripslashes(htmlspecialchars($_POST['disp_template']));;
|
119 |
$this->options['tag'] = !isset($_POST['tag']) ? '' : $_POST['tag'];
|
120 |
$this->options['dark_player'] = ! isset( $_POST['dark_player'] ) ? 'off' : 'on';
|
|
|
121 |
|
122 |
update_option($this->key, $this->options);
|
123 |
|
@@ -160,6 +161,7 @@ class SmartYouTube
|
|
160 |
$disp_template = wp_specialchars($this->options['template']);
|
161 |
$tag = $this->options['tag'];
|
162 |
$dark_player = $this->options['dark_player'] == 'on' ? 'checked="checked"' : '';
|
|
|
163 |
|
164 |
if (!$disp_width)
|
165 |
{
|
@@ -350,6 +352,7 @@ class SmartYouTube
|
|
350 |
<input type="checkbox" id="disp_ann" name="disp_ann" $disp_ann /><label for="disp_ann"> Remove Annotations</label><br />
|
351 |
<input type="checkbox" id="privacy" name="disp_privacy" $disp_privacy /><label for="privacy"> Enable privacy-enhanced mode [<a target="_blank" href="http://www.google.com/support/youtube/bin/answer.py?answer=141046">?</a>] (videos may not work for Iphone users)</label><br />
|
352 |
<input type="checkbox" id="dark_player" name="dark_player" $dark_player /><label for="dark_player"> Use new Youtube "dark" player (requires IFRAME mode to be turned on)</label><br />
|
|
|
353 |
</div>
|
354 |
|
355 |
<h3>Custom code compatibility</h3>
|
@@ -396,7 +399,7 @@ END;
|
|
396 |
if (strpos($the_content, "httpv") !== false )
|
397 |
{
|
398 |
$char_codes = array('×', '–');
|
399 |
-
$replacements = array("x", "
|
400 |
$the_content = str_replace($char_codes, $replacements, $the_content);
|
401 |
|
402 |
|
@@ -468,6 +471,7 @@ END;
|
|
468 |
$template = trim($this->options['template']) == '' ? '{video}' : $this->options['template'];
|
469 |
$valid = $this->options['valid'];
|
470 |
$dark_player = ( $this->options['dark_player'] == 'on' ) ? '&theme=dark' : '';
|
|
|
471 |
|
472 |
switch ($high)
|
473 |
{
|
@@ -515,6 +519,12 @@ END;
|
|
515 |
{
|
516 |
$height += 18;
|
517 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
|
519 |
if ($autoplay)
|
520 |
$ap='&autoplay=1';
|
@@ -522,14 +532,14 @@ END;
|
|
522 |
$root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
|
523 |
|
524 |
if ($this->options['iframe']=='on')
|
525 |
-
$video_url = htmlspecialchars("$root_url/embed/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
|
526 |
else
|
527 |
-
$video_url = htmlspecialchars("$root_url/v/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
|
528 |
|
529 |
if ($playlist)
|
530 |
{
|
531 |
|
532 |
-
$video_url = htmlspecialchars("$root_url/p/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap&loop={$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
|
533 |
|
534 |
if ($this->options['iframe']=='on')
|
535 |
$yte_tag = <<<EOT
|
@@ -705,7 +715,8 @@ EOT;
|
|
705 |
'wtitle' => '',
|
706 |
'tag' => '',
|
707 |
'iframe' => 'on',
|
708 |
-
'dark_player' => ''
|
|
|
709 |
);
|
710 |
|
711 |
$saved = get_option($this->key);
|
118 |
stripslashes(htmlspecialchars($_POST['disp_template']));;
|
119 |
$this->options['tag'] = !isset($_POST['tag']) ? '' : $_POST['tag'];
|
120 |
$this->options['dark_player'] = ! isset( $_POST['dark_player'] ) ? 'off' : 'on';
|
121 |
+
$this->options['logoless'] = ! isset( $_POST['logoless'] ) ? 'off' : 'on';
|
122 |
|
123 |
update_option($this->key, $this->options);
|
124 |
|
161 |
$disp_template = wp_specialchars($this->options['template']);
|
162 |
$tag = $this->options['tag'];
|
163 |
$dark_player = $this->options['dark_player'] == 'on' ? 'checked="checked"' : '';
|
164 |
+
$logoless = $this->options['logoless'] == 'on' ? 'checked="checked"' : '';
|
165 |
|
166 |
if (!$disp_width)
|
167 |
{
|
352 |
<input type="checkbox" id="disp_ann" name="disp_ann" $disp_ann /><label for="disp_ann"> Remove Annotations</label><br />
|
353 |
<input type="checkbox" id="privacy" name="disp_privacy" $disp_privacy /><label for="privacy"> Enable privacy-enhanced mode [<a target="_blank" href="http://www.google.com/support/youtube/bin/answer.py?answer=141046">?</a>] (videos may not work for Iphone users)</label><br />
|
354 |
<input type="checkbox" id="dark_player" name="dark_player" $dark_player /><label for="dark_player"> Use new Youtube "dark" player (requires IFRAME mode to be turned on)</label><br />
|
355 |
+
<input type="checkbox" id="logoless" name="logoless" $logoless /><label for="logoless">Hide YouTube Logo</label><br />
|
356 |
</div>
|
357 |
|
358 |
<h3>Custom code compatibility</h3>
|
399 |
if (strpos($the_content, "httpv") !== false )
|
400 |
{
|
401 |
$char_codes = array('×', '–');
|
402 |
+
$replacements = array("x", "--");
|
403 |
$the_content = str_replace($char_codes, $replacements, $the_content);
|
404 |
|
405 |
|
471 |
$template = trim($this->options['template']) == '' ? '{video}' : $this->options['template'];
|
472 |
$valid = $this->options['valid'];
|
473 |
$dark_player = ( $this->options['dark_player'] == 'on' ) ? '&theme=dark' : '';
|
474 |
+
$logoless = $this->options['logoless'];
|
475 |
|
476 |
switch ($high)
|
477 |
{
|
519 |
{
|
520 |
$height += 18;
|
521 |
}
|
522 |
+
|
523 |
+
if ( $logoless = 'on' ) {
|
524 |
+
$ll = '&modestbranding=1';
|
525 |
+
} else {
|
526 |
+
$ll = '';
|
527 |
+
}
|
528 |
|
529 |
if ($autoplay)
|
530 |
$ap='&autoplay=1';
|
532 |
$root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
|
533 |
|
534 |
if ($this->options['iframe']=='on')
|
535 |
+
$video_url = htmlspecialchars("$root_url/embed/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
|
536 |
else
|
537 |
+
$video_url = htmlspecialchars("$root_url/v/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
|
538 |
|
539 |
if ($playlist)
|
540 |
{
|
541 |
|
542 |
+
$video_url = htmlspecialchars("$root_url/p/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap$ll&loop={$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
|
543 |
|
544 |
if ($this->options['iframe']=='on')
|
545 |
$yte_tag = <<<EOT
|
715 |
'wtitle' => '',
|
716 |
'tag' => '',
|
717 |
'iframe' => 'on',
|
718 |
+
'dark_player' => '',
|
719 |
+
'logoless' => 'on'
|
720 |
);
|
721 |
|
722 |
$saved = get_option($this->key);
|
smartyoutube.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Smart Youtube
|
|
4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
5 |
Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
|
6 |
Author: Vladimir Prelovac
|
7 |
-
Version: 3.
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
|
4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
5 |
Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
|
6 |
Author: Vladimir Prelovac
|
7 |
+
Version: 3.9.0
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
|