| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCommunity\Modules\Integrations; |
| 4 |
|
| 5 |
use FluentCommunity\App\Services\Helper; |
| 6 |
|
| 7 |
class Integrations |
| 8 |
{ |
| 9 |
public function register($app) |
| 10 |
{ |
| 11 |
$this->init($app); |
| 12 |
} |
| 13 |
|
| 14 |
public function init($app) |
| 15 |
{ |
| 16 |
if (defined('FLUENTCRM')) { |
| 17 |
new \FluentCommunity\Modules\Integrations\FluentCRM\SpaceJoinTrigger(); |
| 18 |
(new \FluentCommunity\Modules\Integrations\FluentCRM\ProfileSection())->register(); |
| 19 |
// Course Specifics |
| 20 |
if (Helper::isFeatureEnabled('course_module')) { |
| 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(); |
| 25 |
} |
| 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); |
| 40 |
} |
| 41 |
} |
| 42 |
|