Version Description
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 2.4.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4 to 2.4.1
- smartyoutube.php +7 -4
smartyoutube.php
CHANGED
|
@@ -4,10 +4,11 @@ Plugin Name: Smart Youtube
|
|
| 4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
| 5 |
Description: Easily insert YouTube videos in posts, comments and RSS feeds.
|
| 6 |
Author: Vladimir Prelovac
|
| 7 |
-
Version: 2.4
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
Updates:
|
|
|
|
| 11 |
2.4 - Added support for extra parameters like &start=50 to start the video at 50th second of play
|
| 12 |
2.2 - Full xHTML validaiton
|
| 13 |
2.1 - Made the application iPhone compatible and allowed full screen
|
|
@@ -415,7 +416,7 @@ global $CustomColors;
|
|
| 415 |
|
| 416 |
$valid=get_option('smart_yt_valid');
|
| 417 |
|
| 418 |
-
$high= $high ? "&ap=%2526fmt%3D18" : "" ;
|
| 419 |
|
| 420 |
if ($width=="")
|
| 421 |
$width=$high ? "480" : "425" ;
|
|
@@ -429,14 +430,16 @@ global $CustomColors;
|
|
| 429 |
// if ( strpos($_SERVER['HTTP_USER_AGENT'], "iPhone") || strpos($_SERVER['HTTP_USER_AGENT'], "iPod") )
|
| 430 |
|
| 431 |
if ($valid=="off")
|
| 432 |
-
$yte_tag = '<!-- Smart Youtube --><span class="youtube"><object width="'.$width.'" height="'.$height.'"><param name="movie" value="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&autoplay='.$autoplay
|
| 433 |
else
|
| 434 |
-
$yte_tag = '<!-- Smart Youtube --><span class="youtube"><object type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" data="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&autoplay='.$autoplay
|
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
if (is_feed())
|
| 439 |
{
|
|
|
|
|
|
|
| 440 |
if (get_option('smart_yt_img')=='on')
|
| 441 |
$yte_tag.='<a href="http://www.youtube.com/watch?v='.$file.$high.'"><img src="http://img.youtube.com/vi/'.$file.'/default.jpg" width="130" height="97" border=0></a>';
|
| 442 |
if (get_option('smart_yt_link')=='on')
|
| 4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
| 5 |
Description: Easily insert YouTube videos in posts, comments and RSS feeds.
|
| 6 |
Author: Vladimir Prelovac
|
| 7 |
+
Version: 2.4.1
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
Updates:
|
| 11 |
+
2.4.1 - Small fixes in embed and rss links
|
| 12 |
2.4 - Added support for extra parameters like &start=50 to start the video at 50th second of play
|
| 13 |
2.2 - Full xHTML validaiton
|
| 14 |
2.1 - Made the application iPhone compatible and allowed full screen
|
| 416 |
|
| 417 |
$valid=get_option('smart_yt_valid');
|
| 418 |
|
| 419 |
+
$high= $high ? "&ap=%2526fmt%3D18" : "" ;
|
| 420 |
|
| 421 |
if ($width=="")
|
| 422 |
$width=$high ? "480" : "425" ;
|
| 430 |
// if ( strpos($_SERVER['HTTP_USER_AGENT'], "iPhone") || strpos($_SERVER['HTTP_USER_AGENT'], "iPod") )
|
| 431 |
|
| 432 |
if ($valid=="off")
|
| 433 |
+
$yte_tag = '<!-- Smart Youtube --><span class="youtube"><object width="'.$width.'" height="'.$height.'"><param name="movie" value="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay, ENT_QUOTES).$high.$time.'"></param><param name="allowFullScreen" value="true"></param><embed src="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay, ENT_QUOTES).$high.$time.'" type="application/x-shockwave-flash" allowfullscreen="true" width="'.$width.'" height="'.$height.'" ></embed><param name="wmode" value="transparent" /></object></span>';
|
| 434 |
else
|
| 435 |
+
$yte_tag = '<!-- Smart Youtube --><span class="youtube"><object type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" data="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay, ENT_QUOTES).$high.$time.'"><param name="movie" value="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay, ENT_QUOTES).$high.$time.'"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="transparent" /></object></span>';
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
if (is_feed())
|
| 440 |
{
|
| 441 |
+
if ($high)
|
| 442 |
+
$high="&fmt=18";
|
| 443 |
if (get_option('smart_yt_img')=='on')
|
| 444 |
$yte_tag.='<a href="http://www.youtube.com/watch?v='.$file.$high.'"><img src="http://img.youtube.com/vi/'.$file.'/default.jpg" width="130" height="97" border=0></a>';
|
| 445 |
if (get_option('smart_yt_link')=='on')
|
