set_basename( is_readable( __DIR__ . '/premium/Bootstrap.php' ), __FILE__ );
if ( !is_readable( __DIR__ . '/premium/Bootstrap.php' ) ) {
// Tell the administrator, on the Plugins screen only, that this Free copy is idle.
add_action( 'admin_notices', static function () : void {
$screen = ( function_exists( 'get_current_screen' ) ? get_current_screen() : null );
if ( !$screen || 'plugins' !== $screen->id || !current_user_can( 'activate_plugins' ) ) {
return;
}
echo '
' . esc_html__( 'Abientot Pro is active and includes everything in Abientot, so Abientot is not running. You can deactivate Abientot.', 'abientot' ) . '
';
} );
}
} else {
// Keep this conditional function declaration: required for SDK coexistence handling.
if ( !function_exists( 'abientot_fs' ) ) {
function abientot_fs() {
global $abientot_fs;
if ( !isset( $abientot_fs ) ) {
require_once __DIR__ . '/vendor/freemius/start.php';
$abientot_fs = fs_dynamic_init( array(
'id' => '40940',
'slug' => 'abientot',
'premium_slug' => 'abientot-pro',
'type' => 'plugin',
'public_key' => 'pk_03747a0564765fe33fd01b15883da',
'is_premium' => false,
'premium_suffix' => '(Pro)',
'has_addons' => false,
'has_paid_plans' => true,
'is_org_compliant' => true,
'anonymous_mode' => false,
'menu' => array(
'slug' => 'abientot',
'support' => false,
'contact' => false,
'addons' => false,
),
'is_live' => true,
) );
}
return $abientot_fs;
}
}
// Register privacy/product filters before SDK initialization.
add_filter( 'fs_show_deactivation_feedback_form_abientot', '__return_false' );
add_filter( 'fs_show_trial_abientot', '__return_false' );
add_filter( 'fs_plugin_icon_abientot', static fn() => __DIR__ . '/assets/brand/abientot-mark-mint.png' );
add_filter( 'fs_show_affiliate_program_notice_abientot', '__return_false' );
abientot_fs();
do_action( 'abientot_fs_loaded' );
$abientot_edition = 'free';
// ABIENTOT_LOCAL_PREMIUM_END
define( 'ABIENTOT_EDITION', $abientot_edition );
unset($abientot_edition);
define( 'ABIENTOT_VERSION', '1.1.4' );
define( 'ABIENTOT_PLUGIN_FILE', __FILE__ );
define( 'ABIENTOT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'ABIENTOT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'ABIENTOT_TEXT_DOMAIN', 'abientot' );
require_once ABIENTOT_PLUGIN_DIR . 'includes/Autoloader.php';
Abientot\Autoloader::register();
register_activation_hook( ABIENTOT_PLUGIN_FILE, array(Abientot\Plugin::class, 'activate') );
register_deactivation_hook( ABIENTOT_PLUGIN_FILE, array(Abientot\Plugin::class, 'deactivate') );
register_uninstall_hook( ABIENTOT_PLUGIN_FILE, array(Abientot\Uninstaller::class, 'uninstall') );
add_action( 'plugins_loaded', static function () : void {
Abientot\Plugin::instance()->boot();
} );
}
// First executing edition owns the shared core.