| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | * Plugin Name: Blockspare |
| 4 | 4 | * Plugin URI: https://blockspare.com |
| 5 | - * Description: A stunning set of Gutenberg blocks to get you started with the new WordPress editor. You may design complicated layouts for your website in just a few minutes with our adaptable and inventive blocks. | |
| 6 | - * Version: 2.5.0 | |
| 5 | + * Description: News, Magazine and Business Blocks for Gutenberg (Free Patterns, Templates and Page Builder) | |
| 6 | + * Version: 2.6.2 | |
| 7 | 7 | * Author: Blockspare |
| 8 | 8 | * Author URI: https://blockspare.com |
| 9 | 9 | * Text Domain: blockspare |
| 10 | 10 | * License: GPL-2.0+ |
| @@ -19,17 +19,17 @@ | ||
| 19 | 19 | defined('BLOCKSPARE_BASE_FILE') or define('BLOCKSPARE_BASE_FILE', __FILE__); |
| 20 | 20 | defined('BLOCKSPARE_BASE_DIR') or define('BLOCKSPARE_BASE_DIR', dirname(BLOCKSPARE_BASE_FILE)); |
| 21 | 21 | defined('BLOCKSPARE_PLUGIN_URL') or define('BLOCKSPARE_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 22 | 22 | defined('BLOCKSPARE_PLUGIN_DIR') or define('BLOCKSPARE_PLUGIN_DIR', plugin_dir_path(__FILE__)); |
| 23 | - | |
| 23 | + defined('BLOCKSPARE_PRO_PATH') || define('BLOCKSPARE_PRO_PATH','https://www.blockspare.com/'); | |
| 24 | 24 | defined( 'BLOCKSPARE_SHOW_PRO_NOTICES' ) || define( 'BLOCKSPARE_SHOW_PRO_NOTICES', true ); |
| 25 | - defined( 'BLOCKSPARE_VERSION' ) || define( 'BLOCKSPARE_VERSION', '2.5.0' ); | |
| 25 | + defined( 'BLOCKSPARE_VERSION' ) || define( 'BLOCKSPARE_VERSION', '2.6.0' ); | |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | if ( ! version_compare( PHP_VERSION, '5.6', '>=' ) ) { |
| 29 | - add_action( 'admin_notices', 'aft_fail_php_version' ); | |
| 29 | + add_action( 'admin_notices', 'blockspare_fail_php_version' ); | |
| 30 | 30 | } elseif ( ! version_compare( get_bloginfo( 'version' ), '4.7', '>=' ) ) { |
| 31 | - add_action( 'admin_notices', 'aftfail_wp_version' ); | |
| 31 | + add_action( 'admin_notices', 'blockspare_fail_wp_version' ); | |
| 32 | 32 | } else { |
| 33 | 33 | /** |
| 34 | 34 | * Freemius. |
| 35 | 35 | */ |
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | include_once BLOCKSPARE_PLUGIN_DIR.'inc/fonts.php'; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | |
| 48 | - function aft_fail_php_version() { | |
| 48 | + function blockspare_fail_php_version() { | |
| 49 | 49 | /* translators: %s: PHP version */ |
| 50 | 50 | $message = sprintf( esc_html__( 'Blockspare for Gutenberg requires PHP version %s+, plugin is currently NOT RUNNING.', 'blockspare' ), '5.6' ); |
| 51 | 51 | $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); |
| 52 | 52 | echo wp_kses_post( $html_message ); |
| @@ -51,10 +51,10 @@ | ||
| 51 | 51 | $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); |
| 52 | 52 | echo wp_kses_post( $html_message ); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - function aft_fail_wp_version() { | |
| 55 | + function blockspare_fail_wp_version() { | |
| 56 | 56 | /* translators: %s: WordPress version */ |
| 57 | 57 | $message = sprintf( esc_html__( 'Blockspare for Gutenberg requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'blockspare' ), '4.7' ); |
| 58 | 58 | $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); |
| 59 | 59 | echo wp_kses_post( $html_message ); |
| 60 | 60 | } |