Smart YouTube PRO - Version 3.2

Version Description

Download this release

Release Info

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

Code changes from version 3.1.1 to 3.2

Files changed (2) hide show
  1. readme.txt +3 -31
  2. smartyoutube.php +10 -6
readme.txt CHANGED
@@ -34,6 +34,9 @@ Main Features:
34
 
35
  Change Log:
36
 
 
 
 
37
  v3.1.1
38
  - param closed properly for HTML validation (thanks Jan Eberl)
39
 
@@ -46,37 +49,6 @@ v3.0
46
  v2.8.1
47
  - Added option to remove Annotations
48
 
49
- v2.8
50
- - Supports Playlists
51
-
52
- v2.7.5
53
- - WP_PLUGIN_URL used
54
-
55
- v2.7.4
56
- - Added option to remove info&ratings
57
-
58
- v2.7.3
59
- - Removed annotiations by default
60
-
61
- v2.7
62
- - Added support for sidebar widget videos
63
-
64
- v2.6:
65
- - Added option to disable search box
66
-
67
- v2.5:
68
- - Support for 720p HD (DVD quality) YouTube videos. Use httpvhd://
69
-
70
- v2.4:
71
- - Supports video deep linking. Just add &start=time parameter at the end of url. For example httpv://www.youtube.com/watch?v=OWfksMD4PAg&start=30 will start the video 30 seconds in
72
-
73
- v2.3:
74
- - xHTML valid code is now an option because it breaks videos in some browsers and feeds
75
-
76
- v2.2:
77
- - Full xHTML validation
78
-
79
-
80
  Plugin by Vladimir Prelovac. Looking for <a href="http://www.prelovac.com/vladimir/services">WordPress Consulting</a>?
81
 
82
  == Credits ==
34
 
35
  Change Log:
36
 
37
+ v3.2
38
+ - Added title to widget, fixed HTML code issue with widget
39
+
40
  v3.1.1
41
  - param closed properly for HTML validation (thanks Jan Eberl)
42
 
49
  v2.8.1
50
  - Added option to remove Annotations
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  Plugin by Vladimir Prelovac. Looking for <a href="http://www.prelovac.com/vladimir/services">WordPress Consulting</a>?
53
 
54
  == Credits ==
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: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
6
  Author: Vladimir Prelovac
7
- Version: 3.1.1
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
 
11
  3.1.1 - param closed properly for validation
12
  3.1 - wmode transparent parameter updated to better handle transparancy
13
  3.0 - Added video template, option to set sidebar video size, fixed sidebar widget code, fixed video syntax issue
@@ -633,11 +634,13 @@ function yte_widgetcontrol()
633
  {
634
  if ($_REQUEST['submit'])
635
  {
636
- update_option('smart_yt_wtext', htmlspecialchars($_REQUEST['text']));
 
637
  }
638
- $text=stripslashes(stripslashes(get_option('smart_yt_wtext')));
639
-
640
- echo 'Insert HTML code below. In addition to normal text you may use httpv, httpvh and httpvhd links just like in your posts.<br/><textarea id="text" name="text" rows="10" cols="16" class="widefat">'.$text.'</textarea>';
 
641
  echo '<input type="hidden" id="submit" name="submit" value="1" />';
642
  }
643
 
@@ -645,8 +648,9 @@ function yte_widgetcontrol()
645
  function yte_widget($args = array() )
646
  {
647
  extract ($args);
648
- $text = yte_check(stripslashes(get_option('smart_yt_wtext')), 1);
649
  echo $before_widget;
 
650
  echo $text;
651
  echo $after_widget;
652
 
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.2
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
11
+ 3.2 - Added title to widget, fixed HTML code issue with widget
12
  3.1.1 - param closed properly for validation
13
  3.1 - wmode transparent parameter updated to better handle transparancy
14
  3.0 - Added video template, option to set sidebar video size, fixed sidebar widget code, fixed video syntax issue
634
  {
635
  if ($_REQUEST['submit'])
636
  {
637
+ update_option('smart_yt_wtext', stripslashes(($_REQUEST['yte_text'])));
638
+ update_option('smart_yt_wtitle', stripslashes(($_REQUEST['yte_title'])));
639
  }
640
+ $text=wp_specialchars(get_option('smart_yt_wtext'));
641
+ $title=wp_specialchars(get_option('smart_yt_wtitle'));
642
+ echo 'Title:<br /><input type="text" id="yte_title" name="yte_title" value="'.$title.'" /><br />';
643
+ echo 'Insert HTML code below. In addition to normal text you may use httpv, httpvh and httpvhd links just like in your posts.<br/><textarea id="text" name="yte_text" rows="10" cols="16" class="widefat">'.$text.'</textarea>';
644
  echo '<input type="hidden" id="submit" name="submit" value="1" />';
645
  }
646
 
648
  function yte_widget($args = array() )
649
  {
650
  extract ($args);
651
+ $text = yte_check((get_option('smart_yt_wtext')), 1);
652
  echo $before_widget;
653
+ echo $before_title.(get_option('smart_yt_wtitle')).$after_title;
654
  echo $text;
655
  echo $after_widget;
656