Smart YouTube PRO - Version 2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.0.1 to 2.1

Files changed (2) hide show
  1. readme.txt +6 -2
  2. smartyoutube.php +9 -3
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: 2.5.1
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.
@@ -15,7 +15,7 @@ Smart Youtube is a Wordpress Youtube Plugin that allows you to easily insert You
15
 
16
  The main purpose of the plugin is to correctly embed youtube videos into your blog post. The video will be shown in full in your RSS feed as well.
17
 
18
- From version 2.0 Smart youtube also supports high quality videos.
19
 
20
  The plugin is designed to be small and fast and not use any external resources. It has a number of customizable options.
21
 
@@ -23,6 +23,10 @@ The plugin is designed to be small and fast and not use any external resources.
23
 
24
 
25
  Change Log:
 
 
 
 
26
  v2.0.1:
27
  Fixed high qualiy video issue.
28
 
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: 2.6
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.
15
 
16
  The main purpose of the plugin is to correctly embed youtube videos into your blog post. The video will be shown in full in your RSS feed as well.
17
 
18
+ From version 2.0 Smart youtube also supports playback of high quality videos, works on iPhone and allows you to view videos in fullscreen.
19
 
20
  The plugin is designed to be small and fast and not use any external resources. It has a number of customizable options.
21
 
23
 
24
 
25
  Change Log:
26
+ v2.1:
27
+ - Smart Youtube videos are compatible with iPhone.
28
+ - Fullscreen enabled
29
+
30
  v2.0.1:
31
  Fixed high qualiy video issue.
32
 
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.0.1
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
 
11
  2.0 - Support for playback high quality YouTube videos
12
  1.9 - Added video autoplay option
13
  1.8 - Solved Problem with HTML validation, enabled full video preview in RSS
@@ -19,7 +20,7 @@ To-Doo:
19
  - localization
20
  */
21
 
22
- $yte_localversion="2.0";
23
 
24
  $CustomColors=array (
25
  "blank" => array("d6d6d6","f0f0f0"),
@@ -409,7 +410,12 @@ global $CustomColors;
409
  if ($disp_border)
410
  $height+=18;
411
 
412
- $yte_tag = '<!-- Smart Youtube --><span class="youtube"><object width="'.$width.'" height="'.$height.'" type="application/x-shockwave-flash" 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 name="wmode" value="transparent" /></object></span>';
 
 
 
 
 
413
 
414
  if (is_feed())
415
  {
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.1
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
11
+ 2.1 - Made the application iPhone compatible and allowed full screen
12
  2.0 - Support for playback high quality YouTube videos
13
  1.9 - Added video autoplay option
14
  1.8 - Solved Problem with HTML validation, enabled full video preview in RSS
20
  - localization
21
  */
22
 
23
+ $yte_localversion="2.1";
24
 
25
  $CustomColors=array (
26
  "blank" => array("d6d6d6","f0f0f0"),
410
  if ($disp_border)
411
  $height+=18;
412
 
413
+
414
+
415
+ $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> </object></span>';
416
+
417
+
418
+ // $yte_tag = '<!-- Smart Youtube --><span class="youtube"><object width="'.$width.'" height="'.$height.'" type="application/x-shockwave-flash" 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 name="wmode" value="transparent" /></object></span>';
419
 
420
  if (is_feed())
421
  {