' . __( 'Shortcodes Ultimate: 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' ) . ' ' . __( 'Learn more', 'su' ) . '.' . '

'; } /** * Check PHP and WordPress versions */ public static function php_wp() { // Prepare versions $min_wp = '3.5'; $min_php = '5.1'; $wp = get_bloginfo( 'version' ); $php = phpversion(); // Load textdomain load_plugin_textdomain( 'shortcodes-ultimate', false, dirname( plugin_basename( SU_PLUGIN_FILE ) ), '/languages/' ); // Prepare messages $message_wp = sprintf( __( '

Oops! Plugin not activated…

Shortcodes Ultimate is not fully compatible with your version of WordPress (%s).
Reccomended WordPress version – %s (or higher).

← Return to the plugins screen Continue and activate anyway →', 'su' ), $wp, $min_wp, network_admin_url( 'plugins.php?deactivate=true' ), $_SERVER['REQUEST_URI'] . '&continue=true', ' style="float:right;font-weight:bold"' ); $message_php = sprintf( __( '

Oops! Plugin not activated…

Shortcodes Ultimate is not fully compatible with your PHP version (%s).
Reccomended PHP version – %s (or higher).

← Return to the plugins screen Continue and activate anyway →', 'su' ), $php, $min_php, network_admin_url( 'plugins.php?deactivate=true' ), $_SERVER['REQUEST_URI'] . '&continue=true', ' style="float:right;font-weight:bold"' ); // Check Forced activation if ( isset( $_GET['continue'] ) ) return; // WP version is too low if ( version_compare( $min_wp, $wp, '>' ) ) { deactivate_plugins( plugin_basename( SU_PLUGIN_FILE ) ); wp_die( $message_wp ); } // PHP version is too low elseif ( version_compare( $min_php, $php, '>' ) ) { deactivate_plugins( plugin_basename( SU_PLUGIN_FILE ) ); wp_die( $message_php ); } } } new Shortcodes_Ultimate_Requirements;