Shortcodes Ultimate - Version 4.1.4

Version Description

  • Fixed wp_footer notice, again
Download this release

Release Info

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

Code changes from version 4.1.3 to 4.1.4

assets/css/box-shortcodes.css CHANGED
@@ -323,7 +323,7 @@
323
 
324
  .su-box {
325
  margin: 0 0 1.5em 0;
326
- border-width: 1px;
327
  border-style: solid;
328
  }
329
  .su-box-title {
@@ -332,6 +332,10 @@
332
  font-weight: bold;
333
  font-size: 1.1em;
334
  }
 
 
 
 
335
  .su-box-content { padding: 1em; }
336
  .su-box-style-soft .su-box-title {
337
  background-image: url('../images/styles/style-soft.png');
323
 
324
  .su-box {
325
  margin: 0 0 1.5em 0;
326
+ border-width: 2px;
327
  border-style: solid;
328
  }
329
  .su-box-title {
332
  font-weight: bold;
333
  font-size: 1.1em;
334
  }
335
+ .su-box-content {
336
+ background-color: #fff;
337
+ color: #444;
338
+ }
339
  .su-box-content { padding: 1em; }
340
  .su-box-style-soft .su-box-title {
341
  background-image: url('../images/styles/style-soft.png');
inc/core/class.requirements.php CHANGED
@@ -1,25 +1,23 @@
1
  <?php
2
  class Shortcodes_Ultimate_Requirements {
3
 
4
- static $wp_footer_option = 'su_no_wp_footer';
5
-
6
  /**
7
  * Constructor
8
  */
9
  function __construct() {
10
- add_action( 'shutdown', array( __CLASS__, 'wp_footer_check' ) );
11
  add_action( 'admin_notices', array( __CLASS__, 'wp_footer_notice' ) );
12
  add_action( 'su/activation', array( __CLASS__, 'php_wp' ) );
13
  }
14
 
15
  public static function wp_footer_check() {
16
- if ( is_admin() ) return;
17
- if ( did_action( 'wp_footer' ) < 1 ) update_option( self::$wp_footer_option, true );
18
- else delete_option( self::$wp_footer_option );
19
  }
20
 
21
  public static function wp_footer_notice() {
22
- if ( get_option( self::$wp_footer_option ) ) echo '<div class="error"><p>' . __( '<b>Shortcodes Ultimate:</b> Your current theme does not use wp_footer tag. Shortcodes will not work properly. Please add the wp_footer in the footer of your theme.', 'su' ) . ' <a href="http://codex.wordpress.org/Function_Reference/wp_footer" target="_blank">' . __( 'Learn more', 'su' ) . '</a>.' . '</p></div>';
23
  }
24
 
25
  /**
1
  <?php
2
  class Shortcodes_Ultimate_Requirements {
3
 
 
 
4
  /**
5
  * Constructor
6
  */
7
  function __construct() {
8
+ add_action( 'shutdown', array( __CLASS__, 'wp_footer_check' ), -99 );
9
  add_action( 'admin_notices', array( __CLASS__, 'wp_footer_notice' ) );
10
  add_action( 'su/activation', array( __CLASS__, 'php_wp' ) );
11
  }
12
 
13
  public static function wp_footer_check() {
14
+ if ( is_admin() || strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) !== false ) return;
15
+ delete_option( 'su_no_wp_footer' );
16
+ if ( !did_action( 'wp_footer' ) && !did_action( 'admin_init' ) && !defined( 'DOING_AJAX' ) ) update_option( 'su_no_wp_footer', true );
17
  }
18
 
19
  public static function wp_footer_notice() {
20
+ if ( get_option( 'su_no_wp_footer' ) ) echo '<div class="error"><p>' . __( '<b>Shortcodes Ultimate:</b> Your current theme does not use wp_footer tag. Shortcodes will not work properly. Please add the wp_footer in the footer of your theme.', 'su' ) . ' <a href="http://codex.wordpress.org/Function_Reference/wp_footer" target="_blank">' . __( 'Learn more', 'su' ) . '</a>.' . '</p></div>';
21
  }
22
 
23
  /**
inc/core/shortcodes.php CHANGED
@@ -550,7 +550,6 @@ function su_lightbox_shortcode( $atts, $content = null ) {
550
  su_query_asset( 'css', 'magnific-popup' );
551
  su_query_asset( 'js', 'jquery' );
552
  su_query_asset( 'js', 'magnific-popup' );
553
- su_query_asset( 'js', 'su-other-shortcodes' );
554
  return '<span class="su-lightbox' . su_ecssc( $atts ) . '" data-mfp-src="' . $atts['src'] . '" data-mfp-type="' . $atts['type'] . '">' . do_shortcode( $content ) . '</span>';
555
  }
556
 
550
  su_query_asset( 'css', 'magnific-popup' );
551
  su_query_asset( 'js', 'jquery' );
552
  su_query_asset( 'js', 'magnific-popup' );
 
553
  return '<span class="su-lightbox' . su_ecssc( $atts ) . '" data-mfp-src="' . $atts['src'] . '" data-mfp-type="' . $atts['type'] . '">' . do_shortcode( $content ) . '</span>';
554
  }
555
 
readme.txt CHANGED
@@ -94,6 +94,9 @@ Upgrade normally via your Wordpress admin -> Plugins panel.
94
 
95
  == Changelog ==
96
 
 
 
 
97
  = 4.1.3 =
98
  * Small fix for tooltips
99
  * Fixed wp_footer notice
94
 
95
  == Changelog ==
96
 
97
+ = 4.1.4 =
98
+ * Fixed wp_footer notice, again
99
+
100
  = 4.1.3 =
101
  * Small fix for tooltips
102
  * Fixed wp_footer notice
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.1.3
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.1.4
6
  Author: Vladimir Anokhin
7
  Author URI: http://gndev.info/
8
  Description: Supercharge your WordPress theme with mega pack of shortcodes