Version Description
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 2.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3 to 2.3.1
- smartyoutube.php +5 -3
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: Easily insert YouTube videos in posts, comments and RSS feeds.
|
| 6 |
Author: Vladimir Prelovac
|
| 7 |
-
Version: 2.3
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
Updates:
|
|
@@ -21,7 +21,7 @@ To-Doo:
|
|
| 21 |
- localization
|
| 22 |
*/
|
| 23 |
|
| 24 |
-
$yte_localversion="2.3";
|
| 25 |
|
| 26 |
$CustomColors=array (
|
| 27 |
"blank" => array("d6d6d6","f0f0f0"),
|
|
@@ -412,6 +412,8 @@ global $CustomColors;
|
|
| 412 |
$disp_color = get_option('smart_yt_color');
|
| 413 |
$autoplay = get_option('smart_yt_autoplay');
|
| 414 |
|
|
|
|
|
|
|
| 415 |
$high= $high ? "&ap=%2526fmt%3D18" : "" ;
|
| 416 |
|
| 417 |
if ($width=="")
|
|
@@ -425,7 +427,7 @@ global $CustomColors;
|
|
| 425 |
|
| 426 |
// if ( strpos($_SERVER['HTTP_USER_AGENT'], "iPhone") || strpos($_SERVER['HTTP_USER_AGENT'], "iPod") )
|
| 427 |
|
| 428 |
-
if (
|
| 429 |
$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.$high, ENT_QUOTES).'"></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&autoplay='.$autoplay.$high, ENT_QUOTES).'" type="application/x-shockwave-flash" allowfullscreen="true" width="'.$width.'" height="'.$height.'" ></embed><param name="wmode" value="transparent" /></object></span>';
|
| 430 |
else
|
| 431 |
$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.$high, ENT_QUOTES).'"><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.$high, ENT_QUOTES).'"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="transparent" /></object></span>';
|
| 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.3.1
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
Updates:
|
| 21 |
- localization
|
| 22 |
*/
|
| 23 |
|
| 24 |
+
$yte_localversion="2.3.1";
|
| 25 |
|
| 26 |
$CustomColors=array (
|
| 27 |
"blank" => array("d6d6d6","f0f0f0"),
|
| 412 |
$disp_color = get_option('smart_yt_color');
|
| 413 |
$autoplay = get_option('smart_yt_autoplay');
|
| 414 |
|
| 415 |
+
$valid=get_option('smart_yt_valid');
|
| 416 |
+
|
| 417 |
$high= $high ? "&ap=%2526fmt%3D18" : "" ;
|
| 418 |
|
| 419 |
if ($width=="")
|
| 427 |
|
| 428 |
// if ( strpos($_SERVER['HTTP_USER_AGENT'], "iPhone") || strpos($_SERVER['HTTP_USER_AGENT'], "iPod") )
|
| 429 |
|
| 430 |
+
if ($valid=="off")
|
| 431 |
$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.$high, ENT_QUOTES).'"></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&autoplay='.$autoplay.$high, ENT_QUOTES).'" type="application/x-shockwave-flash" allowfullscreen="true" width="'.$width.'" height="'.$height.'" ></embed><param name="wmode" value="transparent" /></object></span>';
|
| 432 |
else
|
| 433 |
$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.$high, ENT_QUOTES).'"><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.$high, ENT_QUOTES).'"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="transparent" /></object></span>';
|
