Smart YouTube PRO - Version 4.2.1

Version Description

Download this release

Release Info

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

Code changes from version 4.2.0 to 4.2.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. smartyoutube.php +7 -2
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, metacafe, liveleak, vimeo, facebook, thumbnails
5
  Requires at least: 2.0
6
- Tested up to: 3.5.1
7
  Stable tag: trunk
8
 
9
  Smart Youtube is a professional WordPress Video plugin that allows you to easily insert videos/playlists into your post, comments and in your RSS feed. The plugin is designed to be small and fast and not use any external resources.
@@ -49,6 +49,9 @@ For updates, you can check out [my blog](http://www.prelovac.com/vladimir/) or f
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 4.2.0 =
53
  * Updated to latest Colorbox libraries
54
 
3
  Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
4
  Tags: youtube, video, play, media, Post, posts, admin, metacafe, liveleak, vimeo, facebook, thumbnails
5
  Requires at least: 2.0
6
+ Tested up to: 3.8.0
7
  Stable tag: trunk
8
 
9
  Smart Youtube is a professional WordPress Video plugin that allows you to easily insert videos/playlists into your post, comments and in your RSS feed. The plugin is designed to be small and fast and not use any external resources.
49
 
50
  == Changelog ==
51
 
52
+ = 4.2.1=
53
+ * Added support for center padding
54
+
55
  = 4.2.0 =
56
  * Updated to latest Colorbox libraries
57
 
smartyoutube.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Smart Youtube PRO
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: 4.2.0
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
 
@@ -514,6 +514,7 @@ class SmartYouTube_PRO {
514
  <select id="disp_excerpt_align" name="excerpt_align">
515
  <option value="left" <?php echo ( ( $excerpt_align == 'left' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Left', 'smart-youtube' ); ?></option>
516
  <option value="right" <?php echo ( ( $excerpt_align == 'right' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Right', 'smart-youtube' ); ?></option>
 
517
  </select>
518
  </div>
519
  </div>
@@ -913,7 +914,11 @@ EOT;
913
  return $the_content;
914
  }
915
  if ( isset( $result ) ) {
916
- $the_content = '<div style="float:' . $this->options["excerpt_align"] . ';padding-' . ( $this->options["excerpt_aign"] == 'left' ? 'right' : 'left' ) . ':10px;">' . $result . '</div>' . $the_content . '<div style="clear:both"></div>';
 
 
 
 
917
  }
918
  }
919
 
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: 4.2.1
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
 
514
  <select id="disp_excerpt_align" name="excerpt_align">
515
  <option value="left" <?php echo ( ( $excerpt_align == 'left' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Left', 'smart-youtube' ); ?></option>
516
  <option value="right" <?php echo ( ( $excerpt_align == 'right' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Right', 'smart-youtube' ); ?></option>
517
+ <option value="center" <?php echo ( ( $excerpt_align == 'center' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Center', 'smart-youtube' ); ?></option>
518
  </select>
519
  </div>
520
  </div>
914
  return $the_content;
915
  }
916
  if ( isset( $result ) ) {
917
+ if ($this->options['excerpt_align'] == 'center') {
918
+ $the_content = '<div style="float:' . $this->options["excerpt_align"] . ';padding-' . ( $this->options["excerpt_aign"] == 'left' ? 'right' : 'left' ) . ':10px;">' . $result . '</div>' . $the_content . '<div style="clear:both"></div>';
919
+ }else {
920
+ $the_content = '<div style="padding: 10px 0">' . $result . '</div>' . $the_content . '<div style="clear:both"></div>';
921
+ }
922
  }
923
  }
924