Smart YouTube PRO - Version 2.3.1

Version Description

Download this release

Release Info

Developer freediver
Plugin Icon 128x128 Smart YouTube PRO
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3 to 2.3.1

Files changed (1) hide show
  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 (!get_option('smart_yt_valid'))
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.'&amp;rel='.$disp_rel.'&amp;color1='.$CustomColors[$disp_color][0].'&amp;color2='.$CustomColors[$disp_color][1].'&amp;border='.$disp_border.'&amp;fs=1&amp;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.'&amp;rel='.$disp_rel.'&amp;color1='.$CustomColors[$disp_color][0].'&amp;color2='.$CustomColors[$disp_color][1].'&amp;border='.$disp_border.'&amp;fs=1&amp;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>';