PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.14
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.14
6.2.14 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 All 196 releases
← All changes | app/Modules/DocumentationModule.php +73 -62 3.6.226.2.14 View file →
@@ -1,67 +1,78 @@
1 -<?php namespace FluentForm\App\Modules;
1 +<?php
2 2
3 -use FluentForm\App;
4 -use FluentForm\View;
3 +namespace FluentForm\App\Modules;
5 4
6 5 class DocumentationModule
7 6 {
8 -
9 - public function render()
10 - {
11 - return View::make('admin.docs.index', array(
12 - 'icon_path_url' => App::publicUrl(),
13 - 'user_guides' => $this->getUserGuides()
14 - ));
15 - }
16 -
17 - private function getUserGuides()
18 - {
19 - $guides = array(
20 - array(
21 - 'title' => __('Adding a new form', 'fluentform'),
22 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/create-fluent-form/'
23 - ),
24 - array(
25 - 'title' => __('Setting up form submission confirmation', 'fluentform'),
26 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/submission-confirmation-message/'
27 - ),
28 - array(
29 - 'title' => __('Form layout settings', 'fluentform'),
30 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/form-layout-settings/'
31 - ),
32 - array(
33 - 'title' => __('Conditional logics', 'fluentform'),
34 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/conditional-logic-fluent-form/'
35 - ),
36 - array(
37 - 'title' => __('Managing form submissions', 'fluentform'),
38 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/managing-submitted-entries/'
39 - ),
40 - array(
41 - 'title' => __('Setting up email notifications', 'fluentform'),
42 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/email-notification/'
43 - ),
44 - array(
45 - 'title' => __('MailChimp integration', 'fluentform'),
46 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/mailchimp-integration/'
47 - ),
48 - array(
49 - 'title' => __('Slack integration', 'fluentform'),
50 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/slack-integration-fluentform/'
51 - ),
52 - array(
53 - 'title' => __('Form restrictions and scheduling', 'fluentform'),
54 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/form-restrictions-scheduling/'
55 - ),
56 - array(
57 - 'title' => __('Setup conditional confirmation messages', 'fluentform'),
58 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/conditional-confirmation-wp-fluent-form/'
59 - ),
60 - array(
61 - 'title' => __('Predefined form fields', 'fluentform'),
62 - 'link' => 'https://wpmanageninja.com/docs/fluent-form/field-types/'
63 - ),
64 - );
65 - return apply_filters('fluentform_user_guide_links', $guides);
66 - }
7 + public function render()
8 + {
9 + wp_enqueue_script('fluentform-docs');
10 + wpFluentForm('view')->render('admin.docs.index', [
11 + 'public_url' => fluentformMix(),
12 + 'icon_path_url' => fluentformMix(''),
13 + 'user_guides' => $this->getUserGuides(),
14 + ]);
15 + }
16 +
17 + private function getUserGuides()
18 + {
19 + $guides = [
20 + [
21 + 'title' => __('Getting started with Fluent Forms', 'fluentform'),
22 + 'link' => 'https://fluentforms.com/docs/getting-started-with-fluent-forms/',
23 + ],
24 + [
25 + 'title' => __('Setting up form submission confirmation', 'fluentform'),
26 + 'link' => 'https://fluentforms.com/docs/setup-form-submission-confirmation-message-in-fluent-forms/',
27 + ],
28 + [
29 + 'title' => __('Form layout settings', 'fluentform'),
30 + 'link' => 'https://fluentforms.com/docs/form-layout-settings-in-fluent-forms/',
31 + ],
32 + [
33 + 'title' => __('Conditional logics', 'fluentform'),
34 + 'link' => 'https://fluentforms.com/docs/set-up-forms-with-conditional-logic-in-fluent-forms/',
35 + ],
36 + [
37 + 'title' => __('Managing form submissions', 'fluentform'),
38 + 'link' => 'https://fluentforms.com/docs/managing-entries-in-fluent-forms/',
39 + ],
40 + [
41 + 'title' => __('Setting up email notifications', 'fluentform'),
42 + 'link' => 'https://fluentforms.com/docs/how-to-setup-admin-user-email-notifications/',
43 + ],
44 + [
45 + 'title' => __('Mailchimp integration', 'fluentform'),
46 + 'link' => 'https://fluentforms.com/docs/how-to-integrate-mailchimp-with-fluent-forms/',
47 + ],
48 + [
49 + 'title' => __('Slack integration', 'fluentform'),
50 + 'link' => 'https://fluentforms.com/docs/how-to-integrate-slack-with-fluent-forms/',
51 + ],
52 + [
53 + 'title' => __('Form restrictions', 'fluentform'),
54 + 'link' => 'https://fluentforms.com/docs/form-restrictions-feature-in-fluent-forms/',
55 + ],
56 + [
57 + 'title' => __('Setup conditional confirmation messages', 'fluentform'),
58 + 'link' => 'https://fluentforms.com/docs/conditional-confirmation-message-in-fluent-forms/',
59 + ],
60 + [
61 + 'title' => __('Predefined form fields', 'fluentform'),
62 + 'link' => 'https://fluentforms.com/docs/general-docs/field-types/',
63 + ],
64 + ];
65 +
66 + $guides = apply_filters_deprecated(
67 + 'fluentform_user_guide_links',
68 + [
69 + $guides
70 + ],
71 + FLUENTFORM_FRAMEWORK_UPGRADE,
72 + 'fluentform/user_guide_links',
73 + 'Use fluentform/user_guide_links instead of fluentform_user_guide_links'
74 + );
75 +
76 + return apply_filters('fluentform/user_guide_links', $guides);
77 + }
67 78 }