| 1 |
<?php namespace FluentForm\App\Modules; |
| 2 |
|
| 3 |
use FluentForm\App; |
| 4 |
use FluentForm\View; |
| 5 |
|
| 6 |
class DocumentationModule |
| 7 |
{ |
| 8 |
|
| 9 |
public function render() |
| 10 |
{ |
| 11 |
wp_enqueue_style('fluentform_doc_style', fluentformMix('css/admin_docs.css')); |
| 12 |
$userGuides = $this->getUserGuides(); |
| 13 |
return View::make('admin.docs.index', array( |
| 14 |
'user_guides' => $userGuides, |
| 15 |
'icon_path_url' => App::publicUrl() |
| 16 |
)); |
| 17 |
} |
| 18 |
|
| 19 |
private function getUserGuides() |
| 20 |
{ |
| 21 |
$guides = array( |
| 22 |
array( |
| 23 |
'title' => 'Creating a Form', |
| 24 |
'link' => 'https://wpfluentform.com/guides/01-how-to-create-a-form-with-fluentform/' |
| 25 |
), |
| 26 |
array( |
| 27 |
'title' => 'Set up Form submission confirmation message', |
| 28 |
'link' => 'https://wpfluentform.com/guides/set-up-form-submission-confirmation-message/' |
| 29 |
), |
| 30 |
array( |
| 31 |
'title' => 'Form Layout Settings', |
| 32 |
'link' => 'https://wpfluentform.com/guides/form-layout-settings/' |
| 33 |
), |
| 34 |
array( |
| 35 |
'title' => 'Set up forms with Conditional logic', |
| 36 |
'link' => 'https://wpfluentform.com/guides/set-up-forms-with-conditional-logic/' |
| 37 |
), |
| 38 |
array( |
| 39 |
'title' => 'Managing the submitted entries', |
| 40 |
'link' => 'https://wpfluentform.com/guides/managing-the-submitted-entries/' |
| 41 |
), |
| 42 |
array( |
| 43 |
'title' => 'Setting up email notifications', |
| 44 |
'link' => 'https://wpfluentform.com/guides/setting-up-email-notification/' |
| 45 |
), |
| 46 |
array( |
| 47 |
'title' => 'MailChimp Integration', |
| 48 |
'link' => 'https://wpfluentform.com/guides/mailchimp-integration/' |
| 49 |
), |
| 50 |
array( |
| 51 |
'title' => 'Setting up form fields with restrictions', |
| 52 |
'link' => 'https://wpfluentform.com/guides/setting-up-form-fields-with-restrictions/' |
| 53 |
) |
| 54 |
); |
| 55 |
return apply_filters('fluentform_user_guide_links', $guides); |
| 56 |
} |
| 57 |
} |