=')) { add_action('admin_notices', 'blockspare_fail_php_free_version'); } elseif (!version_compare(get_bloginfo('version'), '4.7', '>=')) { add_action('admin_notices', 'blockspare_fail_wp_free_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'; include_once BLOCKSPARE_PLUGIN_DIR . 'inc/theme-builder/theme-builder-loader.php'; include_once BLOCKSPARE_PLUGIN_DIR . 'inc/ai/class-ai.php'; } function blockspare_fail_php_free_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('