PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.0
2.10.0 2.10.01 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 All 77 releases
← All changes | Modules/Integrations/FluentCRM/CourseEnrollmentTrigger.php +9 -9 1.0.952.10.0 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2
3 3 namespace FluentCommunity\Modules\Integrations\FluentCRM;
4 4
5 -use FluentCommunity\App\Models\Space;
6 5 use FluentCommunity\Modules\Course\Model\Course;
7 6 use FluentCrm\App\Services\Funnel\BaseTrigger;
8 7 use FluentCrm\App\Services\Funnel\FunnelHelper;
9 8 use FluentCrm\App\Services\Funnel\FunnelProcessor;
@@ -13,9 +12,9 @@
13 12 {
14 13 public function __construct()
15 14 {
16 15 $this->triggerName = 'fluent_community/course/enrolled';
17 - $this->priority = 20;
16 + $this->priority = 30;
18 17 $this->actionArgNum = 2;
19 18 parent::__construct();
20 19 }
21 20
@@ -23,10 +22,11 @@
23 22 {
24 23 return [
25 24 'category' => __('Community', 'fluent-community'),
26 25 'label' => __('Enrolled in a course', 'fluent-community'),
27 - 'description' => __('This automation will be initiated when a user enroll in a course', 'fluent-community'),
26 + 'description' => __('This automation will be initiated when a user enrolls in a course.', 'fluent-community'),
28 27 'icon' => 'fc-icon-wp_new_user_signup',
28 + 'svg_icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><rect x="3" y="4" width="16" height="14" rx="3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="11" cy="10" r="2" stroke="currentColor" stroke-width="2"/><path d="M7.5 15c.8-1.8 2.6-2.8 3.5-2.8s2.7 1 3.5 2.8" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><circle cx="18" cy="18" r="4" fill="currentColor"/><path d="M18 16v4M16 18h4" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>'
29 29 ];
30 30 }
31 31
32 32 public function getSettingsFields($funnel)
@@ -32,9 +32,9 @@
32 32 public function getSettingsFields($funnel)
33 33 {
34 34 return [
35 35 'title' => __('Enrolled in a course', 'fluent-community'),
36 - 'sub_title' => __('This automation will be initiated when a user enroll in a course', 'fluent-community'),
36 + 'sub_title' => __('This automation will be initiated when a user enrolls in a course.', 'fluent-community'),
37 37 'fields' => [
38 38 'subscription_status' => [
39 39 'type' => 'option_selectors',
40 40 'option_key' => 'editable_statuses',
@@ -43,9 +43,9 @@
43 43 'placeholder' => __('Select Status', 'fluent-community')
44 44 ],
45 45 'subscription_status_info' => [
46 46 'type' => 'html',
47 - 'info' => '<b>' . __('An Automated double-optin email will be sent for new subscribers', 'fluent-community') . '</b>',
47 + 'info' => '<b>' . __('An Automated double-opt-in email will be sent for new subscribers', 'fluent-community') . '</b>',
48 48 'dependency' => [
49 49 'depends_on' => 'subscription_status',
50 50 'operator' => '=',
51 51 'value' => 'pending'
@@ -68,9 +68,9 @@
68 68
69 69 return [
70 70 'update_type' => [
71 71 'type' => 'radio',
72 - 'label' => __('If Contact Already Exist?', 'fluent-community'),
72 + 'label' => __('If Contact Already Exists?', 'fluent-community'),
73 73 'help' => __('Please specify what will happen if the subscriber already exists in the database', 'fluent-community'),
74 74 'options' => FunnelHelper::getUpdateOptions()
75 75 ],
76 76 'course_ids' => [
@@ -76,12 +76,12 @@
76 76 'course_ids' => [
77 77 'type' => 'multi-select',
78 78 'is_multiple' => true,
79 79 'label' => __('Targeted Courses', 'fluent-community'),
80 - 'help' => __('Select which for which courses this automation Automation for', 'fluent-community'),
81 - 'placeholder' => __('Select Communities', 'fluent-community'),
80 + 'help' => __('Select which courses this automation is for.', 'fluent-community'),
81 + 'placeholder' => __('Select Courses', 'fluent-community'),
82 82 'options' => $courses,
83 - 'inline_help' => __('Leave blank to run for all communities', 'fluent-community')
83 + 'inline_help' => __('Leave blank to run for all Courses', 'fluent-community')
84 84 ],
85 85 'run_multiple' => [
86 86 'type' => 'yes_no_check',
87 87 'label' => '',