| @@ -5,22 +5,37 @@ | ||
| 5 | 5 | use FluentCommunity\App\Services\Helper; |
| 6 | 6 | |
| 7 | 7 | class Integrations |
| 8 | 8 | { |
| 9 | - | |
| 10 | - public function register() | |
| 9 | + public function register($app) | |
| 11 | 10 | { |
| 12 | - $this->init(); | |
| 11 | + $this->init($app); | |
| 13 | 12 | } |
| 14 | 13 | |
| 15 | - public function init() | |
| 14 | + public function init($app) | |
| 16 | 15 | { |
| 17 | 16 | if (defined('FLUENTCRM')) { |
| 18 | 17 | new \FluentCommunity\Modules\Integrations\FluentCRM\SpaceJoinTrigger(); |
| 19 | - | |
| 18 | + (new \FluentCommunity\Modules\Integrations\FluentCRM\ProfileSection())->register(); | |
| 20 | 19 | // Course Specifics |
| 21 | 20 | if (Helper::isFeatureEnabled('course_module')) { |
| 22 | 21 | new \FluentCommunity\Modules\Integrations\FluentCRM\CourseEnrollmentTrigger(); |
| 22 | + new \FluentCommunity\Modules\Integrations\FluentCRM\CourseCompletedTrigger(); | |
| 23 | + new \FluentCommunity\Modules\Integrations\FluentCRM\CourseTopicCompletedTrigger(); | |
| 24 | + new \FluentCommunity\Modules\Integrations\FluentCRM\LessonCompletedTrigger(); | |
| 23 | 25 | } |
| 24 | 26 | } |
| 27 | + | |
| 28 | + if (defined('FLUENTFORM')) { | |
| 29 | + add_action('init', function () { | |
| 30 | + new \FluentCommunity\Modules\Integrations\FluentForms\Bootstrap(); | |
| 31 | + }); | |
| 32 | + } | |
| 33 | + | |
| 34 | + if (defined('FLUENTCART_VERSION')) { | |
| 35 | + (new \FluentCommunity\Modules\Integrations\FluentCart\Paywalls())->register($app); | |
| 36 | + (new \FluentCommunity\Modules\Integrations\FluentCart\CartCheckout())->register(); | |
| 37 | + } | |
| 38 | + | |
| 39 | + (new \FluentCommunity\Modules\Integrations\FluentPlayer\Bootstrap())->register($app); | |
| 25 | 40 | } |
| 26 | 41 | } |