at path:
ROOT
/
wp-content
/
plugins
/
blockspare
/
blockspare.php
run:
R
W
Run
admin
DIR
2025-05-31 10:45:05
R
W
Run
assets
DIR
2025-05-31 10:46:26
R
W
Run
dist
DIR
2025-05-31 10:44:17
R
W
Run
freemius
DIR
2025-05-31 10:45:06
R
W
Run
inc
DIR
2025-05-31 10:46:21
R
W
Run
languages
DIR
2025-05-31 10:44:09
R
W
Run
src
DIR
2025-05-31 10:46:31
R
W
Run
LICENSE
17.62 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
blockspare.php
3.08 KB
2025-05-31 10:41:28
R
W
Run
Delete
Rename
freemius.php
1.38 KB
2025-05-31 10:41:28
R
W
Run
Delete
Rename
readme.txt
16.38 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
error_log
up
📄
blockspare.php
Save
<?php /* * Plugin Name: Blockspare * Plugin URI: https://blockspare.com * 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. * Version: 2.1.1 * Author: Blockspare * Author URI: https://blockspare.com * Text Domain: blockspare * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.html */ defined('ABSPATH') or die('No script kiddies please!'); // prevent direct access /** * Define global constants **/ defined('BLOCKSPARE_BASE_FILE') or define('BLOCKSPARE_BASE_FILE', __FILE__); defined('BLOCKSPARE_BASE_DIR') or define('BLOCKSPARE_BASE_DIR', dirname(BLOCKSPARE_BASE_FILE)); defined('BLOCKSPARE_PLUGIN_URL') or define('BLOCKSPARE_PLUGIN_URL', plugin_dir_url(__FILE__)); defined('BLOCKSPARE_PLUGIN_DIR') or define('BLOCKSPARE_PLUGIN_DIR', plugin_dir_path(__FILE__)); defined( 'BLOCKSPARE_SHOW_PRO_NOTICES' ) || define( 'BLOCKSPARE_SHOW_PRO_NOTICES', true ); defined( 'BLOCKSPARE_VERSION' ) || define( 'BLOCKSPARE_VERSION', '2.1.1' ); if ( ! version_compare( PHP_VERSION, '5.6', '>=' ) ) { add_action( 'admin_notices', 'aft_fail_php_version' ); } elseif ( ! version_compare( get_bloginfo( 'version' ), '4.7', '>=' ) ) { add_action( 'admin_notices', 'aftfail_wp_version' ); } else { /** * Freemius. */ require_once(BLOCKSPARE_PLUGIN_DIR.'/freemius.php'); /** * Plugin init and welcome. */ include_once BLOCKSPARE_PLUGIN_DIR. 'inc/init.php'; include_once BLOCKSPARE_PLUGIN_DIR.'inc/welcome.php'; include_once BLOCKSPARE_PLUGIN_DIR.'inc/fonts.php'; } function aft_fail_php_version() { /* translators: %s: PHP version */ $message = sprintf( esc_html__( 'Blockspare for Gutenberg requires PHP version %s+, plugin is currently NOT RUNNING.', 'blockspare' ), '5.6' ); $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); echo wp_kses_post( $html_message ); } function aft_fail_wp_version() { /* translators: %s: WordPress version */ $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' ); $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); echo wp_kses_post( $html_message ); }