Shortcodes Ultimate - Version 4.2.3

Version Description

  • Media manager is now works on widgets page
  • Shortcodes inside of [button]
  • Fixed fatal error in [media]
Download this release

Release Info

Developer gn_themes
Plugin Icon 128x128 Shortcodes Ultimate
Version 4.2.3
Comparing to
See all releases

Code changes from version 4.2.2 to 4.2.3

inc/core/class.generator.php CHANGED
@@ -46,6 +46,7 @@ class Shortcodes_Ultimate_Generator {
46
  add_action( 'wp_footer', array( __CLASS__, 'popup' ) );
47
  add_action( 'admin_footer', array( __CLASS__, 'popup' ) );
48
  // Request assets
 
49
  su_query_asset( 'css', array( 'farbtastic', 'qtip', 'magnific-popup', 'font-awesome', 'su-generator' ) );
50
  su_query_asset( 'js', array( 'jquery', 'farbtastic', 'qtip', 'magnific-popup', 'su-generator' ) );
51
  // Print/return result
46
  add_action( 'wp_footer', array( __CLASS__, 'popup' ) );
47
  add_action( 'admin_footer', array( __CLASS__, 'popup' ) );
48
  // Request assets
49
+ wp_enqueue_media();
50
  su_query_asset( 'css', array( 'farbtastic', 'qtip', 'magnific-popup', 'font-awesome', 'su-generator' ) );
51
  su_query_asset( 'js', array( 'jquery', 'farbtastic', 'qtip', 'magnific-popup', 'su-generator' ) );
52
  // Print/return result
inc/core/class.shortcodes.php CHANGED
@@ -321,7 +321,7 @@ class Shortcodes_Ultimate_Shortcodes {
321
  // Prepare onclick action
322
  $atts['onclick'] = ( $atts['onclick'] ) ? ' onClick="' . $atts['onclick'] . '"' : '';
323
  Shortcodes_Ultimate_Assets::add( 'css', 'su-content-shortcodes' );
324
- return $before . '<a href="' . su_scattr( $atts['url'] ) . '" class="' . implode( $classes, ' ' ) . '" style="' . implode( $a_css, ';' ) . '" target="_' . $atts['target'] . '"' . $atts['onclick'] . '><span style="' . implode( $span_css, ';' ) . '">' . $content . $desc . '</span></a>' . $after;
325
  }
326
 
327
  public static function service( $atts = null, $content = null ) {
@@ -438,9 +438,9 @@ class Shortcodes_Ultimate_Shortcodes {
438
 
439
  public static function media( $atts = null, $content = null ) {
440
  // Check YouTube video
441
- if ( strpos( $atts['url'], 'youtu' ) !== false ) return su_youtube( $atts );
442
  // Check Vimeo video
443
- elseif ( strpos( $atts['url'], 'vimeo' ) !== false ) return su_vimeo( $atts );
444
  // Image
445
  else return '<img src="' . $atts['url'] . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" style="max-width:100%" />';
446
  }
321
  // Prepare onclick action
322
  $atts['onclick'] = ( $atts['onclick'] ) ? ' onClick="' . $atts['onclick'] . '"' : '';
323
  Shortcodes_Ultimate_Assets::add( 'css', 'su-content-shortcodes' );
324
+ return $before . '<a href="' . su_scattr( $atts['url'] ) . '" class="' . implode( $classes, ' ' ) . '" style="' . implode( $a_css, ';' ) . '" target="_' . $atts['target'] . '"' . $atts['onclick'] . '><span style="' . implode( $span_css, ';' ) . '">' . do_shortcode( $content ) . $desc . '</span></a>' . $after;
325
  }
326
 
327
  public static function service( $atts = null, $content = null ) {
438
 
439
  public static function media( $atts = null, $content = null ) {
440
  // Check YouTube video
441
+ if ( strpos( $atts['url'], 'youtu' ) !== false ) return Shortcodes_Ultimate_Shortcodes::youtube( $atts );
442
  // Check Vimeo video
443
+ elseif ( strpos( $atts['url'], 'vimeo' ) !== false ) return Shortcodes_Ultimate_Shortcodes::vimeo( $atts );
444
  // Image
445
  else return '<img src="' . $atts['url'] . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" style="max-width:100%" />';
446
  }
readme.txt CHANGED
@@ -95,6 +95,11 @@ Upgrade normally via your Wordpress admin -> Plugins panel.
95
 
96
  == Changelog ==
97
 
 
 
 
 
 
98
  = 4.2.2 =
99
  * New media manager added for galleries manager
100
  * New media manager added to the file fields in Generator
95
 
96
  == Changelog ==
97
 
98
+ = 4.2.3 =
99
+ * Media manager is now works on widgets page
100
+ * Shortcodes inside of [button]
101
+ * Fixed fatal error in [media]
102
+
103
  = 4.2.2 =
104
  * New media manager added for galleries manager
105
  * New media manager added to the file fields in Generator
shortcodes-ultimate.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://gndev.info/shortcodes-ultimate/
5
- Version: 4.2.2
6
  Author: Vladimir Anokhin
7
  Author URI: http://gndev.info/
8
  Description: Supercharge your WordPress theme with mega pack of shortcodes
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://gndev.info/shortcodes-ultimate/
5
+ Version: 4.2.3
6
  Author: Vladimir Anokhin
7
  Author URI: http://gndev.info/
8
  Description: Supercharge your WordPress theme with mega pack of shortcodes