PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / trunk
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses vtrunk
2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 1.1.10 1.1.11 All 75 releases
fluent-community / Modules / Integrations / Integrations.php

Integrations.php in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses trunk, at Modules/Integrations/Integrations.php

42 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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