Smart YouTube PRO - Version 3.4.1

Version Description

Download this release

Release Info

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

Code changes from version 3.4 to 3.4.1

Files changed (3) hide show
  1. readme.txt +3 -0
  2. smartyoutube.class.php +14 -12
  3. smartyoutube.php +2 -1
readme.txt CHANGED
@@ -36,6 +36,9 @@ Plugin by Vladimir Prelovac. Looking for <a href="http://www.prelovac.com/vladim
36
 
37
  == Changelog ==
38
 
 
 
 
39
  = 3.4 =
40
  * Completely rewritten the plugin
41
  * Added new HD video support (use vh now for all high quality videos)
36
 
37
  == Changelog ==
38
 
39
+ = 3.4.1=
40
+ * Fixed widget problem
41
+
42
  = 3.4 =
43
  * Completely rewritten the plugin
44
  * Added new HD video support (use vh now for all high quality videos)
smartyoutube.class.php CHANGED
@@ -540,6 +540,17 @@ EOT;
540
 
541
  function install()
542
  {
 
 
 
 
 
 
 
 
 
 
 
543
  if (get_option($this->key)) return true;
544
 
545
  // upgrade the options format (as all-in-one, not single entries)
@@ -564,6 +575,8 @@ EOT;
564
  'template' => '{video}',
565
  'autoplay' => 0,
566
  'privacy' => 0,
 
 
567
  );
568
 
569
  // migrate the old-fashion options
@@ -578,17 +591,6 @@ EOT;
578
  }
579
 
580
  add_option($this->key, $this->options);
581
-
582
- // register widget
583
- if (function_exists('register_sidebar_widget'))
584
- {
585
- register_sidebar_widget('Smart YouTube', array($this, 'widget'));
586
- }
587
-
588
- if (function_exists('register_widget_control'))
589
- {
590
- register_widget_control('Smart YouTube', array($this, 'widget_control'));
591
- }
592
  }
593
 
594
  function widget($args = array())
@@ -597,7 +599,7 @@ EOT;
597
  $text = $this->check($this->options['wtext'], 1);
598
  echo
599
  $before_widget,
600
- $before_title, $this->options['wtext'], $after_title,
601
  $text,
602
  $after_widget;
603
  }
540
 
541
  function install()
542
  {
543
+ // register widget
544
+ if (function_exists('register_sidebar_widget'))
545
+ {
546
+ register_sidebar_widget('Smart YouTube', array($this, 'widget'));
547
+ }
548
+
549
+ if (function_exists('register_widget_control'))
550
+ {
551
+ register_widget_control('Smart YouTube', array($this, 'widget_control'));
552
+ }
553
+
554
  if (get_option($this->key)) return true;
555
 
556
  // upgrade the options format (as all-in-one, not single entries)
575
  'template' => '{video}',
576
  'autoplay' => 0,
577
  'privacy' => 0,
578
+ 'wtext' => '',
579
+ 'wtitle' => '',
580
  );
581
 
582
  // migrate the old-fashion options
591
  }
592
 
593
  add_option($this->key, $this->options);
 
 
 
 
 
 
 
 
 
 
 
594
  }
595
 
596
  function widget($args = array())
599
  $text = $this->check($this->options['wtext'], 1);
600
  echo
601
  $before_widget,
602
+ $before_title, $this->options['wtitle'], $after_title,
603
  $text,
604
  $after_widget;
605
  }
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.4
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
 
11
  3.4 - Completely rewritten the plugin, added new HD video support, added video privacy option
12
  3.3.2 - Fixed xHTML validation for playlists (credit Dietmar)
13
  3.3.1 - Fixed Iphone validation (credit John Neumann)
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.4.1
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
11
+ 3.4.1 - Fixed widget
12
  3.4 - Completely rewritten the plugin, added new HD video support, added video privacy option
13
  3.3.2 - Fixed xHTML validation for playlists (credit Dietmar)
14
  3.3.1 - Fixed Iphone validation (credit John Neumann)