Version Description
- Fixed wp_footer notice, again
Download this release
Release Info
| Developer | gn_themes |
| Plugin | |
| 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 +5 -1
- inc/core/class.requirements.php +5 -7
- inc/core/shortcodes.php +0 -1
- readme.txt +3 -0
- shortcodes-ultimate.php +1 -1
assets/css/box-shortcodes.css
CHANGED
|
@@ -323,7 +323,7 @@
|
|
| 323 |
|
| 324 |
.su-box {
|
| 325 |
margin: 0 0 1.5em 0;
|
| 326 |
-
border-width:
|
| 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 |
-
|
| 18 |
-
|
| 19 |
}
|
| 20 |
|
| 21 |
public static function wp_footer_notice() {
|
| 22 |
-
if ( get_option(
|
| 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.
|
| 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
|
