PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 5.2.1
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v5.2.1
6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 3.6.66 All 195 releases
fluentform / app / Modules / AddOnModule.php

AddOnModule.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 5.2.1, at app/Modules/AddOnModule.php

402 lines 20.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Modules;
4
5 use FluentForm\App\Helpers\Helper;
6 use FluentForm\App\Modules\Registerer\TranslationString;
7
8 class AddOnModule
9 {
10 /**
11 * The number of days we'll cached the add-ons got from remote server.
12 *
13 * @var integer
14 */
15 protected $cacheDays = 1;
16
17 /**
18 * The URL to fetch the add-ons
19 *
20 * @var string
21 */
22 protected $addOnsFetchUrl = 'https://wpmanageninja.com/add-ons.json';
23
24 /**
25 * Render the add-ons list page.
26 */
27 public function render()
28 {
29 $extraMenus = [];
30
31 $extraMenus = apply_filters_deprecated(
32 'fluentform_addons_extra_menu',
33 [
34 $extraMenus
35 ],
36 FLUENTFORM_FRAMEWORK_UPGRADE,
37 'fluentform/addons_extra_menu',
38 'Use fluentform/addons_extra_menu instead of fluentform_addons_extra_menu'
39 );
40
41 $extraMenus = apply_filters('fluentform/addons_extra_menu', $extraMenus);
42
43 $current_menu_item = 'fluentform_add_ons';
44
45 $subPage = wpFluentForm('request')->get('sub_page');
46
47 if ($subPage) {
48 $current_menu_item = sanitize_key($subPage);
49 }
50
51 wpFluentForm('view')->render('admin.addons.index', [
52 'hasPro' => defined('FLUENTFORMPRO'),
53 'menus' => $extraMenus,
54 'base_url' => admin_url('admin.php?page=fluent_forms_add_ons'),
55 'current_menu_item' => $current_menu_item,
56 ]);
57 }
58
59 /**
60 * Show the add-ons list.
61 */
62 public function showFluentAddOns()
63 {
64 wp_enqueue_script('fluentform-modules');
65
66 $addOns = apply_filters_deprecated(
67 'fluentform_global_addons',
68 [
69 []
70 ],
71 FLUENTFORM_FRAMEWORK_UPGRADE,
72 'fluentform/global_addons',
73 'Use fluentform/global_addons instead of fluentform_global_addons'
74 );
75 $addOns = apply_filters('fluentform/global_addons', $addOns);
76
77 $addOns['slack'] = [
78 'title' => __('Slack', 'fluentform'),
79 'description' => __('Get realtime notification in slack channel when a new submission will be added.', 'fluentform'),
80 'logo' => fluentformMix('img/integrations/slack.png'),
81 'enabled' => Helper::isSlackEnabled() ? 'yes' : 'no',
82 'config_url' => '',
83 'category' => 'crm',
84 ];
85
86 if (!defined('FLUENTFORMPRO')) {
87 $addOns = array_merge($addOns, $this->getPremiumAddOns());
88 }
89
90 wp_localize_script('fluentform-modules', 'fluent_addon_modules', [
91 'addons' => $addOns,
92 'has_pro' => defined('FLUENTFORMPRO'),
93 'addOnModule_str' => TranslationString::getAddOnModuleI18n(),
94 ]);
95
96 wpFluentForm('view')->render('admin.addons.list', []);
97 }
98
99 public function getPremiumAddOns()
100 {
101 $purchaseUrl = fluentform_upgrade_url();
102 return [
103 'paypal' => [
104 'title' => __('PayPal', 'fluentform'),
105 'description' => __('Accept Payments via paypal as a part of your form submission', 'fluentform'),
106 'logo' => fluentformMix('img/integrations/paypal.png'),
107 'enabled' => 'no',
108 'purchase_url' => $purchaseUrl,
109 'category' => 'payment',
110 ],
111 'stripe' => [
112 'title' => __('Stripe', 'fluentform'),
113 'description' => __('Accept Payments via stripe as a part of your form submission', 'fluentform'),
114 'logo' => fluentformMix('img/integrations/stripe.png'),
115 'enabled' => 'no',
116 'purchase_url' => $purchaseUrl,
117 'category' => 'payment',
118 ],
119 'UserRegistration' => [
120 'title' => __('User Registration', 'fluentform'),
121 'description' => __('Create WordPress user when when a form is submitted', 'fluentform'),
122 'logo' => fluentformMix('img/integrations/user_registration.png'),
123 'enabled' => 'no',
124 'purchase_url' => $purchaseUrl,
125 'category' => 'wp_core',
126 ],
127 'PostFeeds' => [
128 'title' => __('Advanced Post/CPT Creation', 'fluentform'),
129 'description' => __('Create post/any cpt on form submission. It will enable many new features including dedicated post fields.', 'fluentform'),
130 'logo' => fluentformMix('img/integrations/post-creation.png'),
131 'enabled' => 'no',
132 'purchase_url' => $purchaseUrl,
133 'category' => 'wp_core',
134 ],
135 'sharePages' => [
136 'title' => __('Landing Pages', 'fluentform'),
137 'description' => __('Create completely custom "distraction-free" form landing pages to boost conversions', 'fluentform'),
138 'logo' => fluentformMix('img/integrations/landing_pages.png'),
139 'enabled' => 'no',
140 'purchase_url' => $purchaseUrl,
141 'category' => 'wp_core',
142 ],
143 'webhook' => [
144 'title' => __('WebHooks', 'fluentform'),
145 'description' => __('Broadcast your Fluent Forms Submission to any web api endpoint with the powerful webhook module.', 'fluentform'),
146 'logo' => fluentformMix('img/integrations/webhook.png'),
147 'enabled' => 'no',
148 'purchase_url' => $purchaseUrl,
149 'category' => 'crm',
150 ],
151 'zapier' => [
152 'title' => __('Zapier', 'fluentform'),
153 'description' => __('Connect your Fluent Forms data with Zapier and push data to thousands of online softwares.', 'fluentform'),
154 'logo' => fluentformMix('img/integrations/zapier.png'),
155 'enabled' => 'no',
156 'purchase_url' => $purchaseUrl,
157 'category' => 'crm',
158 ],
159 'trello' => [
160 'title' => __('Trello', 'fluentform'),
161 'description' => __('Fluent Forms Trello Module allows you to create Trello card from submiting forms.', 'fluentform'),
162 'logo' => fluentformMix('img/integrations/trello.png'),
163 'enabled' => 'no',
164 'purchase_url' => $purchaseUrl,
165 'category' => 'crm',
166 ],
167 'google_sheet' => [
168 'title' => __('Google Sheet', 'fluentform'),
169 'description' => __('Add Fluent Forms Submission to Google sheets when a form is submitted.', 'fluentform'),
170 'logo' => fluentformMix('img/integrations/google-sheets.png'),
171 'enabled' => 'no',
172 'purchase_url' => $purchaseUrl,
173 'category' => 'crm',
174 ],
175 'activecampaign' => [
176 'title' => __('ActiveCampaign', 'fluentform'),
177 'description' => __('Fluent Forms ActiveCampaign Module allows you to create ActiveCampaign list signup forms in WordPress, so you can grow your email list.', 'fluentform'),
178 'logo' => fluentformMix('img/integrations/activecampaign.png'),
179 'enabled' => 'no',
180 'purchase_url' => $purchaseUrl,
181 'category' => 'crm',
182 ],
183 'campaign_monitor' => [
184 'title' => __('Campaign Monitor', 'fluentform'),
185 'description' => __('Fluent Forms Campaign Monitor module allows you to create Campaign Monitor newsletter signup forms in WordPress, so you can grow your email list.', 'fluentform'),
186 'logo' => fluentformMix('img/integrations/campaignmonitor.png'),
187 'enabled' => 'no',
188 'purchase_url' => $purchaseUrl,
189 'category' => 'crm',
190 ],
191 'constatantcontact' => [
192 'title' => __('Constant Contact', 'fluentform'),
193 'description' => __('Connect Constant Contact with Fluent Forms and create subscriptions forms right into WordPress and grow your list.', 'fluentform'),
194 'logo' => fluentformMix('img/integrations/constantcontact.png'),
195 'enabled' => 'no',
196 'purchase_url' => $purchaseUrl,
197 'category' => 'crm',
198 ],
199 'convertkit' => [
200 'title' => __('ConvertKit', 'fluentform'),
201 'description' => __('Connect ConvertKit with Fluent Forms and create subscription forms right into WordPress and grow your list.', 'fluentform'),
202 'logo' => fluentformMix('img/integrations/convertkit.png'),
203 'enabled' => 'no',
204 'purchase_url' => $purchaseUrl,
205 'category' => 'crm',
206 ],
207 'getresponse' => [
208 'title' => __('GetResponse', 'fluentform'),
209 'description' => __('Fluent Forms GetResponse module allows you to create GetResponse newsletter signup forms in WordPress, so you can grow your email list.', 'fluentform'),
210 'logo' => fluentformMix('img/integrations/getresponse.png'),
211 'enabled' => 'no',
212 'purchase_url' => $purchaseUrl,
213 'category' => 'crm',
214 ],
215 'hubspot' => [
216 'title' => __('Hubspot', 'fluentform'),
217 'description' => __('Connect HubSpot with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
218 'logo' => fluentformMix('img/integrations/hubspot.png'),
219 'enabled' => 'no',
220 'purchase_url' => $purchaseUrl,
221 'category' => 'crm',
222 ],
223 'icontact' => [
224 'title' => __('iContact', 'fluentform'),
225 'description' => __('Connect iContact with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
226 'logo' => fluentformMix('img/integrations/icontact.png'),
227 'enabled' => 'no',
228 'purchase_url' => $purchaseUrl,
229 'category' => 'crm',
230 ],
231 'platformly' => [
232 'title' => __('Platformly', 'fluentform'),
233 'description' => __('Connect Platform.ly with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
234 'logo' => fluentformMix('img/integrations/platformly.png'),
235 'enabled' => 'no',
236 'purchase_url' => $purchaseUrl,
237 'category' => 'crm',
238 ],
239 'moosend' => [
240 'title' => __('MooSend', 'fluentform'),
241 'description' => __('Connect MooSend with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
242 'logo' => fluentformMix('img/integrations/moosend_logo.png'),
243 'enabled' => 'no',
244 'purchase_url' => $purchaseUrl,
245 'category' => 'crm',
246 ],
247 'sendfox' => [
248 'title' => __('SendFox', 'fluentform'),
249 'description' => __('Connect SendFox with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
250 'logo' => fluentformMix('img/integrations/sendfox.png'),
251 'enabled' => 'no',
252 'purchase_url' => $purchaseUrl,
253 'category' => 'crm',
254 ],
255 'mailerlite' => [
256 'title' => __('MailerLite', 'fluentform'),
257 'description' => __('Connect your Fluent Forms with MailerLite and add subscribers easily.', 'fluentform'),
258 'logo' => fluentformMix('img/integrations/mailerlite.png'),
259 'enabled' => 'no',
260 'purchase_url' => $purchaseUrl,
261 'category' => 'crm',
262 ],
263 'sms_notifications' => [
264 'title' => __('SMS Notification', 'fluentform'),
265 'description' => __('Send SMS in real time when a form is submitted with Twilio.', 'fluentform'),
266 'logo' => fluentformMix('img/integrations/twilio.png'),
267 'enabled' => 'no',
268 'purchase_url' => $purchaseUrl,
269 'category' => 'crm',
270 ],
271 'get_gist' => [
272 'title' => __('Gist', 'fluentform'),
273 'description' => __('GetGist is Easy to use all-in-one software for live chat, email marketing automation, forms, knowledge base, and more for a complete 360° view of your contacts.', 'fluentform'),
274 'logo' => fluentformMix('img/integrations/getgist.png'),
275 'enabled' => 'no',
276 'purchase_url' => $purchaseUrl,
277 'category' => 'crm',
278 ],
279 'sendinblue' => [
280 'title' => __('Brevo (formerly SendInBlue)', 'fluentform'),
281 'description' => __('Fluent Forms Brevo (formerly SendInBlue) Module allows you to create contacts on your list, so you can grow your email list.', 'fluentform'),
282 'logo' => fluentformMix('img/integrations/sendinblue.png'),
283 'enabled' => 'no',
284 'purchase_url' => $purchaseUrl,
285 'category' => 'crm',
286 ],
287 'drip' => [
288 'title' => __('Drip', 'fluentform'),
289 'description' => __('Fluent Forms Drip Module allows you to create contacts on your Drip list, so you can grow your email list.', 'fluentform'),
290 'logo' => fluentformMix('img/integrations/drip.png'),
291 'enabled' => 'no',
292 'purchase_url' => $purchaseUrl,
293 'category' => 'crm',
294 ],
295 'discord' => [
296 'title' => __('Discord', 'fluentform'),
297 'description' => __('Send notification with form data to your Discord channel when a form is submitted', 'fluentform'),
298 'logo' => fluentformMix('img/integrations/discord.png'),
299 'enabled' => 'no',
300 'purchase_url' => $purchaseUrl,
301 'category' => 'crm',
302 ],
303 'telegram' => [
304 'title' => __('Telegram', 'fluentform'),
305 'description' => __('Send notification to Telegram channel or group when a form is submitted', 'fluentform'),
306 'logo' => fluentformMix('img/integrations/telegram.png'),
307 'enabled' => 'no',
308 'purchase_url' => $purchaseUrl,
309 'category' => 'crm',
310 ],
311 'affiliateWp' => [
312 'title' => __('AffiliateWP', 'fluentform'),
313 'description' => __('Generate AffiliateWP referrals automatically when a customer is referred to your site via an affiliate link', 'fluentform'),
314 'logo' => fluentformMix('img/integrations/affiliatewp.png'),
315 'enabled' => 'no',
316 'purchase_url' => $purchaseUrl,
317 'category' => 'crm',
318 ],
319 'clicksend_sms_notification' => [
320 'title' => __('ClickSend', 'fluentform'),
321 'description' => __('Send SMS in real time when a form is submitted with ClickSend', 'fluentform'),
322 'logo' => fluentformMix('img/integrations/clicksend.png'),
323 'enabled' => 'no',
324 'purchase_url' => $purchaseUrl,
325 'category' => 'crm',
326 ],
327 'zohocrm' => [
328 'title' => __('Zoho CRM', 'fluentform'),
329 'description' => __('Zoho CRM is an online Sales CRM software that manages your sales, marketing and support in one CRM platform.', 'fluentform'),
330 'logo' => fluentformMix('img/integrations/zohocrm.png'),
331 'enabled' => 'no',
332 'purchase_url' => $purchaseUrl,
333 'category' => 'crm',
334 ],
335 'cleverreach' => [
336 'title' => __('CleverReach', 'fluentform'),
337 'description' => __('CleverReach is web-based email marketing software for managing email campaigns and contacts. Use Fluent Forms to grow your CleverReach subscriber list', 'fluentform'),
338 'logo' => fluentformMix('img/integrations/clever_reach.png'),
339 'enabled' => 'no',
340 'purchase_url' => $purchaseUrl,
341 'category' => 'crm',
342 ],
343 'salesflare' => [
344 'title' => __('Salesflare', 'fluentform'),
345 'description' => __('Create Salesflare contact from WordPress, so you can grow your contact list', 'fluentform'),
346 'logo' => fluentformMix('img/integrations/salesflare.png'),
347 'enabled' => 'no',
348 'purchase_url' => $purchaseUrl,
349 'category' => 'crm',
350 ],
351 'automizy' => [
352 'title' => __('Automizy', 'fluentform'),
353 'description' => __('Connect Automizy with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
354 'logo' => fluentformMix('img/integrations/automizy.png'),
355 'enabled' => 'no',
356 'purchase_url' => $purchaseUrl,
357 'category' => 'crm',
358 ],
359 'salesforce' => [
360 'title' => __('Salesforce', 'fluentform'),
361 'description' => __('Salesforce helps your marketing, sales, commerce, service and IT teams work as one from anywhere — so you can keep your customers happy everywhere.', 'fluentform'),
362 'logo' => fluentformMix('img/integrations/salesforce.png'),
363 'enabled' => 'no',
364 'purchase_url' => $purchaseUrl,
365 'category' => 'crm',
366 ],
367 'airtable' => [
368 'title' => __('Airtable', 'fluentform'),
369 'description' => __('Airtable is a low-code platform for building collaborative apps. Customize your workflow, collaborate, and achieve ambitious outcomes.', 'fluentform'),
370 'logo' => fluentformMix('img/integrations/airtable.png'),
371 'enabled' => 'no',
372 'purchase_url' => $purchaseUrl,
373 'category' => 'crm',
374 ],
375 'mailjet' => [
376 'title' => __('Mailjet', 'fluentform'),
377 'description' => __('Mailjet is an easy-to-use all-in-one e-mail platform.', 'fluentform'),
378 'logo' => fluentformMix('img/integrations/mailjet.png'),
379 'enabled' => 'no',
380 'purchase_url' => $purchaseUrl,
381 'category' => 'crm',
382 ],
383 'quiz_addon' => [
384 'title' => __('Quiz Module', 'fluentform'),
385 'description' => __('With this module, you can create quizzes and show scores with grades, points, fractions, or percentages', 'fluentform'),
386 'logo' => fluentformMix('img/integrations/quiz-icon.svg'),
387 'enabled' => 'no',
388 'purchase_url' => $purchaseUrl,
389 'category' => 'wp_core',
390 ],
391 'notion' => [
392 'title' => __('Notion', 'fluentform'),
393 'description' => __('Capture Fluent Forms Submission to your Notion workspaces — and do it exactly the way you want.', 'fluentform'),
394 'logo' => fluentformMix('img/integrations/notion.png'),
395 'enabled' => 'no',
396 'purchase_url' => $purchaseUrl,
397 'category' => 'crm',
398 ],
399 ];
400 }
401 }
402