Version Description
- Fixed the problem with autoplaying iframe embed videos
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 3.8.8 |
| Comparing to | |
| See all releases | |
Code changes from version 3.8.7 to 3.8.8
- readme.txt +3 -0
- smartyoutube.class.php +11 -8
- smartyoutube.php +1 -1
readme.txt
CHANGED
|
@@ -37,6 +37,9 @@ Plugin by Vladimir Prelovac. Looking for <a href="http://www.prelovac.com/vladim
|
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
= 3.8.7 =
|
| 41 |
* Now supports both youtube.com and youtu.be links
|
| 42 |
* Fixed single vs double dash problem
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
| 40 |
+
= 3.8.8 =
|
| 41 |
+
* Fixed the problem with autoplaying iframe embed videos
|
| 42 |
+
|
| 43 |
= 3.8.7 =
|
| 44 |
* Now supports both youtube.com and youtu.be links
|
| 45 |
* Fixed single vs double dash problem
|
smartyoutube.class.php
CHANGED
|
@@ -14,7 +14,7 @@ class SmartYouTube
|
|
| 14 |
|
| 15 |
function __construct()
|
| 16 |
{
|
| 17 |
-
$this->local_version = '3.8.
|
| 18 |
$this->custom_colors = array(
|
| 19 |
'blank' => array('d6d6d6', 'f0f0f0'),
|
| 20 |
'storm' => array('3a3a3a', '999999'),
|
|
@@ -512,18 +512,21 @@ END;
|
|
| 512 |
{
|
| 513 |
$height += 18;
|
| 514 |
}
|
| 515 |
-
|
|
|
|
|
|
|
|
|
|
| 516 |
$root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
|
| 517 |
|
| 518 |
if ($this->options['iframe']=='on')
|
| 519 |
-
$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&
|
| 520 |
else
|
| 521 |
-
$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&
|
| 522 |
|
| 523 |
if ($playlist)
|
| 524 |
{
|
| 525 |
|
| 526 |
-
$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&
|
| 527 |
|
| 528 |
if ($this->options['iframe']=='on')
|
| 529 |
$yte_tag = <<<EOT
|
|
@@ -538,7 +541,7 @@ EOT;
|
|
| 538 |
else
|
| 539 |
$yte_tag = <<<EOT
|
| 540 |
<span class="youtube">
|
| 541 |
-
<iframe title="YouTube video player" class="youtube-player" type="text/html" src="$video_url" width="$width" height="$height" frameborder="0"></iframe>
|
| 542 |
</span>
|
| 543 |
EOT;
|
| 544 |
}
|
|
@@ -547,7 +550,7 @@ EOT;
|
|
| 547 |
if ($this->options['iframe']=='on')
|
| 548 |
$yte_tag = <<<EOT
|
| 549 |
<span class="youtube">
|
| 550 |
-
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0"></iframe>
|
| 551 |
</span>
|
| 552 |
EOT;
|
| 553 |
else
|
|
@@ -568,7 +571,7 @@ EOT;
|
|
| 568 |
if ($this->options['iframe']=='on')
|
| 569 |
$yte_tag = <<<EOT
|
| 570 |
<span class="youtube">
|
| 571 |
-
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0"></iframe>
|
| 572 |
</span>
|
| 573 |
EOT;
|
| 574 |
else
|
| 14 |
|
| 15 |
function __construct()
|
| 16 |
{
|
| 17 |
+
$this->local_version = '3.8.8'; // TODO: Change this number???
|
| 18 |
$this->custom_colors = array(
|
| 19 |
'blank' => array('d6d6d6', 'f0f0f0'),
|
| 20 |
'storm' => array('3a3a3a', '999999'),
|
| 512 |
{
|
| 513 |
$height += 18;
|
| 514 |
}
|
| 515 |
+
|
| 516 |
+
if ($autoplay)
|
| 517 |
+
$ap='&autoplay=1';
|
| 518 |
+
|
| 519 |
$root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
|
| 520 |
|
| 521 |
if ($this->options['iframe']=='on')
|
| 522 |
+
$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", ENT_QUOTES) . $high . $time;
|
| 523 |
else
|
| 524 |
+
$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", ENT_QUOTES) . $high . $time;
|
| 525 |
|
| 526 |
if ($playlist)
|
| 527 |
{
|
| 528 |
|
| 529 |
+
$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", ENT_QUOTES) . $high . $time;
|
| 530 |
|
| 531 |
if ($this->options['iframe']=='on')
|
| 532 |
$yte_tag = <<<EOT
|
| 541 |
else
|
| 542 |
$yte_tag = <<<EOT
|
| 543 |
<span class="youtube">
|
| 544 |
+
<iframe title="YouTube video player" class="youtube-player" type="text/html" src="$video_url" width="$width" height="$height" frameborder="0" allowfullscreen></iframe>
|
| 545 |
</span>
|
| 546 |
EOT;
|
| 547 |
}
|
| 550 |
if ($this->options['iframe']=='on')
|
| 551 |
$yte_tag = <<<EOT
|
| 552 |
<span class="youtube">
|
| 553 |
+
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe>
|
| 554 |
</span>
|
| 555 |
EOT;
|
| 556 |
else
|
| 571 |
if ($this->options['iframe']=='on')
|
| 572 |
$yte_tag = <<<EOT
|
| 573 |
<span class="youtube">
|
| 574 |
+
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe>
|
| 575 |
</span>
|
| 576 |
EOT;
|
| 577 |
else
|
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.
|
| 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.8.8
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
|
