' . esc_html__( 'Aiolos Checkout needs WooCommerce to be installed and active.', 'aiolos-checkout-for-woocommerce' ) . '

'; } /** * Aiolos Checkout Pro before 1.5.0 listens to the names this plugin used up to 1.4: it does * nothing until it is updated. */ public static function old_pro_notice(): void { if ( ! defined( 'ACWP_VERSION' ) || version_compare( (string) ACWP_VERSION, '1.5.0', '>=' ) || ! current_user_can( 'update_plugins' ) ) { return; } echo '

' . esc_html__( 'Aiolos Checkout Pro needs updating to 1.5.0 or newer to work with this version of Aiolos Checkout. Update it in Plugins (or from your aiolosweb.com account).', 'aiolos-checkout-for-woocommerce' ) . '

'; } /** * Absolute URL of a file under assets/. * * @param string $path Path relative to assets/. */ public static function asset( string $path ): string { return AIOLOS_CHECKOUT_URL . 'assets/' . ltrim( $path, '/' ); } /** * Version string for an asset: the file's modification time while developing, else the plugin version. * * @param string $path Path relative to assets/. */ public static function asset_version( string $path ): string { if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { $file = AIOLOS_CHECKOUT_PATH . 'assets/' . ltrim( $path, '/' ); if ( is_readable( $file ) ) { return (string) filemtime( $file ); } } return AIOLOS_CHECKOUT_VERSION; } }