| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') || exit; |
| 4 |
|
| 5 |
/* |
| 6 |
* Global Modules Intialization |
| 7 |
*/ |
| 8 |
(new \FluentBooking\App\Services\GlobalModules\GlobalModules())->register(); |
| 9 |
|
| 10 |
// Global Notification Handler |
| 11 |
(new \FluentBooking\App\Hooks\Handlers\GlobalNotificationHandler())->register(); |
| 12 |
|
| 13 |
add_action('fluentform/loaded', function () { |
| 14 |
(new \FluentBooking\App\Services\Integrations\FluentForms\FluentFormInit())->init(); |
| 15 |
}); |
| 16 |
|
| 17 |
add_action('fluentcrm_loaded', function () { |
| 18 |
(new \FluentBooking\App\Services\Integrations\FluentCRM\FluentCrmInit()); |
| 19 |
|
| 20 |
add_action('init', function () { |
| 21 |
(new \FluentBooking\App\Services\Integrations\FluentCRM\Bootstrap()); |
| 22 |
}); |
| 23 |
|
| 24 |
}); |
| 25 |
|
| 26 |
add_action('fluent_boards_loaded', function () { |
| 27 |
add_action('init', function () { |
| 28 |
(new \FluentBooking\App\Services\Integrations\FluentBoards\Bootstrap()); |
| 29 |
}); |
| 30 |
}); |
| 31 |
|
| 32 |
add_action('fluentcart_loaded', function () use ($app) { |
| 33 |
add_action('init', function () use ($app) { |
| 34 |
(new \FluentBooking\App\Services\Integrations\FluentCart\Bootstrap($app)); |
| 35 |
}); |
| 36 |
}); |
| 37 |
|
| 38 |
if (defined('ELEMENTOR_VERSION')) { |
| 39 |
/* |
| 40 |
* We will keep it for then time being for backward compatibility of Old Fluent Booking Pro |
| 41 |
*/ |
| 42 |
if (!class_exists('\FluentBookingPro\App\Services\Integrations\Elementor\ElementorIntegration')) { |
| 43 |
(new \FluentBooking\App\Services\Integrations\Elementor\ElementorIntegration())->register(); |
| 44 |
} |
| 45 |
} |
| 46 |
|