| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentForm\App\Modules; |
| 4 |
|
| 5 |
class DocumentationModule |
| 6 |
{ |
| 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' => __('Adding a new form', 'fluentform'), |
| 22 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/create-fluent-form/', |
| 23 |
], |
| 24 |
[ |
| 25 |
'title' => __('Setting up form submission confirmation', 'fluentform'), |
| 26 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/submission-confirmation-message/', |
| 27 |
], |
| 28 |
[ |
| 29 |
'title' => __('Form layout settings', 'fluentform'), |
| 30 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/form-layout-settings/', |
| 31 |
], |
| 32 |
[ |
| 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 |
[ |
| 37 |
'title' => __('Managing form submissions', 'fluentform'), |
| 38 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/view-submitted-form-data-in-wp-fluent-forms/view-manage-submitted-form-entries/', |
| 39 |
], |
| 40 |
[ |
| 41 |
'title' => __('Setting up email notifications', 'fluentform'), |
| 42 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/email-notification/', |
| 43 |
], |
| 44 |
[ |
| 45 |
'title' => __('Mailchimp integration', 'fluentform'), |
| 46 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/mailchimp-integration/', |
| 47 |
], |
| 48 |
[ |
| 49 |
'title' => __('Slack integration', 'fluentform'), |
| 50 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/slack-integration-fluentform/', |
| 51 |
], |
| 52 |
[ |
| 53 |
'title' => __('Form restrictions and scheduling', 'fluentform'), |
| 54 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/form-restrictions/', |
| 55 |
], |
| 56 |
[ |
| 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 |
[ |
| 61 |
'title' => __('Predefined form fields', 'fluentform'), |
| 62 |
'link' => 'https://wpmanageninja.com/docs/fluent-form/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 |
} |
| 78 |
} |
| 79 |
|