diff --git a/bootstrap.php b/bootstrap.php index e098dee69..bdd6f1d3d 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -10,35 +10,35 @@ * @return void */ function nfd_wp_module_onboarding_register() { -// wp-module-onboarding + // wp-module-onboarding register( array( - 'name' => 'onboarding', - 'label' => __('Onboarding', 'wp-module-onboarding' ), - 'callback' => function ( Container $container ) { + 'name' => 'onboarding', + 'label' => __( 'Onboarding', 'wp-module-onboarding' ), + 'callback' => function ( Container $container ) { - // Set Global Constants - if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { - define( 'NFD_ONBOARDING_VERSION', '1.1.2' ); - } - if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { - define( 'NFD_ONBOARDING_DIR', __DIR__ ); - } - if ( ! defined( 'NFD_ONBOARDING_BUILD_DIR' ) && defined('NFD_ONBOARDING_VERSION') ) { - define( 'NFD_ONBOARDING_BUILD_DIR', __DIR__ . '/build/' . NFD_ONBOARDING_VERSION ); - } - if ( ! defined( 'NFD_MODULE_DATA_EVENTS_API' ) ) { - define( 'NFD_MODULE_DATA_EVENTS_API', '/newfold-data/v1/events' ); - } - if ( ! defined( 'NFD_ONBOARDING_BUILD_URL' && defined('NFD_ONBOARDING_VERSION') ) ) { - define( 'NFD_ONBOARDING_BUILD_URL', BLUEHOST_PLUGIN_URL . '/vendor/newfold-labs/wp-module-onboarding/build/' . NFD_ONBOARDING_VERSION ); - } - // Instantiate Onboarding Module Application + // Set Global Constants + if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { + define( 'NFD_ONBOARDING_VERSION', '1.1.2' ); + } + if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { + define( 'NFD_ONBOARDING_DIR', __DIR__ ); + } + if ( ! defined( 'NFD_ONBOARDING_BUILD_DIR' ) && defined( 'NFD_ONBOARDING_VERSION' ) ) { + define( 'NFD_ONBOARDING_BUILD_DIR', __DIR__ . '/build/' . NFD_ONBOARDING_VERSION ); + } + if ( ! defined( 'NFD_MODULE_DATA_EVENTS_API' ) ) { + define( 'NFD_MODULE_DATA_EVENTS_API', '/newfold-data/v1/events' ); + } + if ( ! defined( 'NFD_ONBOARDING_BUILD_URL' && defined( 'NFD_ONBOARDING_VERSION' ) ) ) { + define( 'NFD_ONBOARDING_BUILD_URL', $container->plugin()->url . '/vendor/newfold-labs/wp-module-onboarding/build/' . NFD_ONBOARDING_VERSION ); + } + // Instantiate Onboarding Module Application new Application( $container ); }, - - 'isActive' => true, - 'isHidden' => true, + + 'isActive' => true, + 'isHidden' => true, ) ); }