%s

', esc_html( sprintf( /* translators: 1: required PHP version, 2: current PHP version. */ __( 'Optiontics requires PHP %1$s or higher. This site is running PHP %2$s, so the plugin has been stopped to avoid breaking your site. Please ask your host to upgrade PHP.', 'optiontics' ), OPTIONTICS_MIN_PHP, PHP_VERSION ) ) ); } ); return; } require_once __DIR__ . '/vendor/autoload.php'; // Back-compat shim for add-ons built against older releases. Required directly, not via // Composer's `files` autoload, so it cannot depend on vendor/ being dumped. require_once __DIR__ . '/base/compat/legacy-namespace-alias.php'; // Define constant for the Plugin file. defined( 'OPTIONTICS_FILE' ) || define( 'OPTIONTICS_FILE', __FILE__ ); defined( 'OPTIONTICS_DIR' ) || define( 'OPTIONTICS_DIR', __DIR__ ); defined( 'OPTIONTICS_VERSION' ) || define( 'OPTIONTICS_VERSION', '1.1.0' ); // Public integration API version. Bump when the contract in // core/integrations/wpcafe/integration-api.php changes in a breaking way. defined( 'OPTIONTICS_INTEGRATION_API_VERSION' ) || define( 'OPTIONTICS_INTEGRATION_API_VERSION', 2 ); // Load the stable integration surface early so third-party plugins (WPCafe, // page builders, etc.) can feature-detect via function_exists() during init. require_once __DIR__ . '/core/integrations/wpcafe/integration-api.php'; global $optiontics_container; $optiontics_container = new Container(); $optiontics_container->add_service_provider( 'global', Global_Service_Provider::class ); /** * optiontics container * * @return Container */ function optiontics_container() { global $optiontics_container; return $optiontics_container; } /** * Main plugin initialization * * @return Optiontics */ function optiontics() { return Init::instance(); } // Kick-off the plugin. optiontics();