| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | namespace FluentForm\App\Services; |
| 4 | 4 | |
| 5 | 5 | use FluentForm\App\Helpers\Helper; |
| 6 | 6 | use FluentForm\App\Models\Form; |
| 7 | +use FluentForm\App\Services\Manager\FormManagerService; | |
| 7 | 8 | |
| 8 | 9 | class GlobalSearchService |
| 9 | 10 | { |
| 10 | 11 | |
| @@ -11,42 +12,42 @@ | ||
| 11 | 12 | public function get() |
| 12 | 13 | { |
| 13 | 14 | $links = [ |
| 14 | 15 | [ |
| 15 | - "title" => 'Forms', | |
| 16 | - "icon" => '', | |
| 17 | - "path" => '?page=fluent_forms', | |
| 18 | - "tags" => ['all', 'forms', 'dashboard'] | |
| 16 | + 'title' => 'Forms', | |
| 17 | + 'icon' => '', | |
| 18 | + 'path' => '?page=fluent_forms', | |
| 19 | + 'tags' => ['all', 'forms', 'dashboard'], | |
| 19 | 20 | ], |
| 20 | 21 | [ |
| 21 | - "title" => 'Forms -> New Form', | |
| 22 | - "icon" => '', | |
| 23 | - "path" => '?page=fluent_forms#add=1', | |
| 24 | - "tags" => ['new forms', 'add forms', 'create'] | |
| 22 | + 'title' => 'Forms -> New Form', | |
| 23 | + 'icon' => '', | |
| 24 | + 'path' => '?page=fluent_forms#add=1', | |
| 25 | + 'tags' => ['new forms', 'add forms', 'create'], | |
| 25 | 26 | ], |
| 26 | 27 | [ |
| 27 | - "title" => 'Entries', | |
| 28 | - "icon" => '', | |
| 29 | - "path" => '?page=fluent_forms_all_entries', | |
| 30 | - "tags" => ['all', 'entries'] | |
| 28 | + 'title' => 'Entries', | |
| 29 | + 'icon' => '', | |
| 30 | + 'path' => '?page=fluent_forms_all_entries', | |
| 31 | + 'tags' => ['all', 'entries'], | |
| 31 | 32 | ], |
| 32 | 33 | [ |
| 33 | - "title" => 'Support', | |
| 34 | - "icon" => '', | |
| 35 | - "path" => '?page=fluent_forms_docs', | |
| 36 | - "tags" => ['support', 'modules', 'docs'] | |
| 34 | + 'title' => 'Support', | |
| 35 | + 'icon' => '', | |
| 36 | + 'path' => '?page=fluent_forms_docs', | |
| 37 | + 'tags' => ['support', 'modules', 'docs'], | |
| 37 | 38 | ], |
| 38 | 39 | [ |
| 39 | - "title" => 'Integrations -> Modules', | |
| 40 | - "icon" => '', | |
| 41 | - "path" => '?page=fluent_forms_add_ons', | |
| 42 | - "tags" => ['all', 'integrations', 'modules'] | |
| 40 | + 'title' => 'Integrations -> Modules', | |
| 41 | + 'icon' => '', | |
| 42 | + 'path' => '?page=fluent_forms_add_ons', | |
| 43 | + 'tags' => ['all', 'integrations', 'modules'], | |
| 43 | 44 | ], |
| 44 | 45 | [ |
| 45 | - "title" => 'Global Settings > General', | |
| 46 | - "icon" => '', | |
| 47 | - "path" => '?page=fluent_forms_settings#payments/general_settings', | |
| 48 | - "tags" => [ | |
| 46 | + 'title' => 'Global Settings > General', | |
| 47 | + 'icon' => '', | |
| 48 | + 'path' => '?page=fluent_forms_settings#payments/general_settings', | |
| 49 | + 'tags' => [ | |
| 49 | 50 | 'global', |
| 50 | 51 | 'settings', |
| 51 | 52 | 'general', |
| 52 | 53 | 'layout', |
| @@ -52,88 +53,88 @@ | ||
| 52 | 53 | 'layout', |
| 53 | 54 | 'email summaries', |
| 54 | 55 | 'failure', |
| 55 | 56 | 'email notification', |
| 56 | - 'miscellaneous' | |
| 57 | - ] | |
| 57 | + 'miscellaneous', | |
| 58 | + ], | |
| 58 | 59 | ], |
| 59 | 60 | [ |
| 60 | - "title" => 'Global Settings > Security > rCaptcha', | |
| 61 | - "icon" => '', | |
| 62 | - "path" => '?page=fluent_forms_settings#re_captcha', | |
| 63 | - "tags" => ['global', 'security', 'recaptcha'] | |
| 61 | + 'title' => 'Global Settings > Security > reCaptcha', | |
| 62 | + 'icon' => '', | |
| 63 | + 'path' => '?page=fluent_forms_settings#re_captcha', | |
| 64 | + 'tags' => ['global', 'security', 'recaptcha'], | |
| 64 | 65 | ], |
| 65 | 66 | [ |
| 66 | - "title" => 'Global Settings > Security > hCaptcha', | |
| 67 | - "icon" => '', | |
| 68 | - "path" => '?page=fluent_forms_settings#h_captcha', | |
| 69 | - "tags" => ['global', 'security', 'hcaptcha'] | |
| 67 | + 'title' => 'Global Settings > Security > hCaptcha', | |
| 68 | + 'icon' => '', | |
| 69 | + 'path' => '?page=fluent_forms_settings#h_captcha', | |
| 70 | + 'tags' => ['global', 'security', 'hcaptcha'], | |
| 70 | 71 | ], |
| 71 | 72 | [ |
| 72 | - "title" => 'Global Settings > Security > Turnstile', | |
| 73 | - "icon" => '', | |
| 74 | - "path" => '?page=fluent_forms_settings#turnstile', | |
| 75 | - "tags" => ['global', 'security', 'turnstile'] | |
| 73 | + 'title' => 'Global Settings > Security > Turnstile', | |
| 74 | + 'icon' => '', | |
| 75 | + 'path' => '?page=fluent_forms_settings#turnstile', | |
| 76 | + 'tags' => ['global', 'security', 'turnstile'], | |
| 76 | 77 | ], |
| 77 | 78 | [ |
| 78 | - "title" => 'Global Settings > Managers', | |
| 79 | - "icon" => '', | |
| 80 | - "path" => '?page=fluent_forms_settings#managers', | |
| 81 | - "tags" => ['global', 'permissions', 'managers'] | |
| 79 | + 'title' => 'Global Settings > Managers', | |
| 80 | + 'icon' => '', | |
| 81 | + 'path' => '?page=fluent_forms_settings#managers', | |
| 82 | + 'tags' => ['global', 'permissions', 'managers'], | |
| 82 | 83 | ], |
| 83 | 84 | [ |
| 84 | - "title" => 'Global Settings > Configure Integration -> Mailchimp', | |
| 85 | - "icon" => '', | |
| 86 | - "path" => '?page=fluent_forms_settings#general-mailchimp-settings', | |
| 87 | - "tags" => ['global integrations', 'mailchimp'] | |
| 85 | + 'title' => 'Global Settings > Configure Integration -> Mailchimp', | |
| 86 | + 'icon' => '', | |
| 87 | + 'path' => '?page=fluent_forms_settings#general-mailchimp-settings', | |
| 88 | + 'tags' => ['global integrations', 'mailchimp'], | |
| 88 | 89 | ], |
| 89 | 90 | [ |
| 90 | - "title" => 'Tools > Import forms', | |
| 91 | - "icon" => '', | |
| 92 | - "path" => '?page=fluent_forms_transfer#importforms', | |
| 93 | - "tags" => ['tools', 'migration', 'transfer', 'import'] | |
| 91 | + 'title' => 'Tools > Import forms', | |
| 92 | + 'icon' => '', | |
| 93 | + 'path' => '?page=fluent_forms_transfer#importforms', | |
| 94 | + 'tags' => ['tools', 'migration', 'transfer', 'import'], | |
| 94 | 95 | ], |
| 95 | 96 | [ |
| 96 | - "title" => 'Tools > Export Forms', | |
| 97 | - "icon" => '', | |
| 98 | - "path" => '?page=fluent_forms_transfer#exportsforms', | |
| 99 | - "tags" => ['tools', 'migration', 'transfer', 'export'] | |
| 97 | + 'title' => 'Tools > Export Forms', | |
| 98 | + 'icon' => '', | |
| 99 | + 'path' => '?page=fluent_forms_transfer#exportsforms', | |
| 100 | + 'tags' => ['tools', 'migration', 'transfer', 'export'], | |
| 100 | 101 | ], |
| 101 | 102 | [ |
| 102 | - "title" => 'Tools > Migrator', | |
| 103 | - "icon" => '', | |
| 104 | - "path" => '?page=fluent_forms_transfer#migrator', | |
| 105 | - "tags" => ['tools', 'migration', 'transfer', 'migrator'] | |
| 103 | + 'title' => 'Tools > Migrator', | |
| 104 | + 'icon' => '', | |
| 105 | + 'path' => '?page=fluent_forms_transfer#migrator', | |
| 106 | + 'tags' => ['tools', 'migration', 'transfer', 'migrator'], | |
| 106 | 107 | ], |
| 107 | 108 | [ |
| 108 | - "title" => 'Tools > Activity Logs', | |
| 109 | - "icon" => '', | |
| 110 | - "path" => '?page=fluent_forms_transfer#activitylogs', | |
| 111 | - "tags" => ['tools', 'activity logs'] | |
| 109 | + 'title' => 'Tools > Activity Logs', | |
| 110 | + 'icon' => '', | |
| 111 | + 'path' => '?page=fluent_forms_transfer#activitylogs', | |
| 112 | + 'tags' => ['tools', 'activity logs'], | |
| 112 | 113 | ], |
| 113 | 114 | [ |
| 114 | - "title" => 'Tools > API Logs', | |
| 115 | - "icon" => '', | |
| 116 | - "path" => '?page=fluent_forms_transfer#apilogs', | |
| 117 | - "tags" => ['tools', 'api logs'] | |
| 115 | + 'title' => 'Tools > API Logs', | |
| 116 | + 'icon' => '', | |
| 117 | + 'path' => '?page=fluent_forms_transfer#apilogs', | |
| 118 | + 'tags' => ['tools', 'api logs'], | |
| 118 | 119 | ], |
| 119 | 120 | [ |
| 120 | - "title" => 'Payments', | |
| 121 | - "icon" => '', | |
| 122 | - "path" => '?page=fluent_forms_payment_entries', | |
| 123 | - "tags" => ['all', 'payments', 'entries'] | |
| 121 | + 'title' => 'Payments', | |
| 122 | + 'icon' => '', | |
| 123 | + 'path' => '?page=fluent_forms_payment_entries', | |
| 124 | + 'tags' => ['all', 'payments', 'entries'], | |
| 124 | 125 | ], |
| 125 | 126 | [ |
| 126 | - "title" => 'Global Settings > Payment > Settings', | |
| 127 | - "icon" => '', | |
| 128 | - "path" => '?page=fluent_forms_settings' . (Helper::isPaymentCompatible() ? '#payments/general_settings' : '&component=payment_settings%2F#/'), | |
| 129 | - "tags" => ['global', 'settings', 'payment'] | |
| 127 | + 'title' => 'Global Settings > Payment > Settings', | |
| 128 | + 'icon' => '', | |
| 129 | + 'path' => '?page=fluent_forms_settings' . (Helper::isPaymentCompatible() ? '#payments/general_settings' : '&component=payment_settings%2F#/'), | |
| 130 | + 'tags' => ['global', 'settings', 'payment'], | |
| 130 | 131 | ], |
| 131 | 132 | [ |
| 132 | - "title" => 'Global Settings > Payment > Payment Methods', | |
| 133 | - "icon" => '', | |
| 134 | - "path" => '?page=fluent_forms_settings' . (Helper::isPaymentCompatible() ? '#payments/payment_methods' : '&component=payment_settings%2F#/payment_methods'), | |
| 135 | - "tags" => ['global', 'settings', 'payment', 'method', 'stripe'] | |
| 133 | + 'title' => 'Global Settings > Payment > Payment Methods', | |
| 134 | + 'icon' => '', | |
| 135 | + 'path' => '?page=fluent_forms_settings' . (Helper::isPaymentCompatible() ? '#payments/payment_methods' : '&component=payment_settings%2F#/payment_methods'), | |
| 136 | + 'tags' => ['global', 'settings', 'payment', 'method', 'stripe'], | |
| 136 | 137 | ], |
| 137 | 138 | ]; |
| 138 | 139 | |
| 139 | 140 | if (Helper::hasPro()) { |
| @@ -138,217 +139,235 @@ | ||
| 138 | 139 | |
| 139 | 140 | if (Helper::hasPro()) { |
| 140 | 141 | $links = array_merge($links, [ |
| 141 | 142 | [ |
| 142 | - "title" => 'Global Settings > Double Opt-in', | |
| 143 | - "icon" => '', | |
| 144 | - "path" => '?page=fluent_forms_settings#double_optin_settings', | |
| 145 | - "tags" => ['global', 'security', 'double opt-in', 'optin'] | |
| 143 | + 'title' => 'Global Settings > Double Opt-in', | |
| 144 | + 'icon' => '', | |
| 145 | + 'path' => '?page=fluent_forms_settings#double_optin_settings', | |
| 146 | + 'tags' => ['global', 'security', 'double opt-in', 'optin'], | |
| 146 | 147 | ], |
| 147 | 148 | [ |
| 148 | - "title" => 'Global Settings > Payment > Coupons', | |
| 149 | - "icon" => '', | |
| 150 | - "path" => '?page=fluent_forms_settings' . (Helper::isPaymentCompatible() ? '#payments/coupons' : '&component=payment_settings%2F#/coupons'), | |
| 151 | - "tags" => ['global', 'settings', 'payment', 'coupons'] | |
| 149 | + 'title' => 'Global Settings > Payment > Coupons', | |
| 150 | + 'icon' => '', | |
| 151 | + 'path' => '?page=fluent_forms_settings' . (Helper::isPaymentCompatible() ? '#payments/coupons' : '&component=payment_settings%2F#/coupons'), | |
| 152 | + 'tags' => ['global', 'settings', 'payment', 'coupons'], | |
| 152 | 153 | ], |
| 153 | 154 | [ |
| 154 | - "title" => 'Global Settings > License', | |
| 155 | - "icon" => '', | |
| 156 | - "path" => '?page=fluent_forms_settings&component=license_page', | |
| 157 | - "tags" => ['global', 'license'] | |
| 155 | + 'title' => 'Global Settings > License', | |
| 156 | + 'icon' => '', | |
| 157 | + 'path' => '?page=fluent_forms_settings&component=license_page', | |
| 158 | + 'tags' => ['global', 'license'], | |
| 158 | 159 | ], |
| 159 | 160 | [ |
| 160 | - "title" => 'Global Settings > Configure Integration -> Google Map Integration', | |
| 161 | - "icon" => '', | |
| 162 | - "path" => '?page=fluent_forms_settings#google_maps_autocomplete', | |
| 163 | - "tags" => ['global', 'integrations', 'google map integration'] | |
| 161 | + 'title' => 'Global Settings > Configure Integration -> Google Map Integration', | |
| 162 | + 'icon' => '', | |
| 163 | + 'path' => '?page=fluent_forms_settings#google_maps_autocomplete', | |
| 164 | + 'tags' => ['global', 'integrations', 'google map integration'], | |
| 164 | 165 | ], |
| 165 | 166 | [ |
| 166 | - "title" => 'Global Settings > Configure Integration -> Activecampaign', | |
| 167 | - "icon" => '', | |
| 168 | - "path" => '?page=fluent_forms_settings#general-activecampaign-settings', | |
| 169 | - "tags" => ['global integrations', 'activecampaign'] | |
| 167 | + 'title' => 'Global Settings > Configure Integration -> Activecampaign', | |
| 168 | + 'icon' => '', | |
| 169 | + 'path' => '?page=fluent_forms_settings#general-activecampaign-settings', | |
| 170 | + 'tags' => ['global integrations', 'activecampaign'], | |
| 170 | 171 | ], |
| 171 | 172 | [ |
| 172 | - "title" => 'Global Settings > Configure Integration -> Campaign Monitor', | |
| 173 | - "icon" => '', | |
| 174 | - "path" => '?page=fluent_forms_settings#general-campaign_monitor-settings', | |
| 175 | - "tags" => ['global integrations', 'campaign monitor'] | |
| 173 | + 'title' => 'Global Settings > Configure Integration -> Campaign Monitor', | |
| 174 | + 'icon' => '', | |
| 175 | + 'path' => '?page=fluent_forms_settings#general-campaign_monitor-settings', | |
| 176 | + 'tags' => ['global integrations', 'campaign monitor'], | |
| 176 | 177 | ], |
| 177 | 178 | [ |
| 178 | - "title" => 'Global Settings > Configure Integration -> Constatant Contact', | |
| 179 | - "icon" => '', | |
| 180 | - "path" => '?page=fluent_forms_settings#general-constatantcontact-settings', | |
| 181 | - "tags" => ['global integrations', 'constatantcontact', 'constatant contact'] | |
| 179 | + 'title' => 'Global Settings > Configure Integration -> Constant Contact', | |
| 180 | + 'icon' => '', | |
| 181 | + 'path' => '?page=fluent_forms_settings#general-constatantcontact-settings', | |
| 182 | + 'tags' => ['global integrations', 'constatantcontact', 'constant contact'], | |
| 182 | 183 | ], |
| 183 | 184 | [ |
| 184 | - "title" => 'Global Settings > Configure Integration -> ConvertKit', | |
| 185 | - "icon" => '', | |
| 186 | - "path" => '?page=fluent_forms_settings#general-convertkit-settings', | |
| 187 | - "tags" => ['global integrations', 'convertkit'] | |
| 185 | + 'title' => 'Global Settings > Configure Integration -> ConvertKit', | |
| 186 | + 'icon' => '', | |
| 187 | + 'path' => '?page=fluent_forms_settings#general-convertkit-settings', | |
| 188 | + 'tags' => ['global integrations', 'convertkit'], | |
| 188 | 189 | ], |
| 189 | 190 | [ |
| 190 | - "title" => 'Global Settings > Configure Integration -> GetResponse', | |
| 191 | - "icon" => '', | |
| 192 | - "path" => '?page=fluent_forms_settings#general-getresponse-settings', | |
| 193 | - "tags" => ['global integrations', 'getresponse'] | |
| 191 | + 'title' => 'Global Settings > Configure Integration -> GetResponse', | |
| 192 | + 'icon' => '', | |
| 193 | + 'path' => '?page=fluent_forms_settings#general-getresponse-settings', | |
| 194 | + 'tags' => ['global integrations', 'getresponse'], | |
| 194 | 195 | ], |
| 195 | 196 | [ |
| 196 | - "title" => 'Global Settings > Configure Integration -> Hubspot', | |
| 197 | - "icon" => '', | |
| 198 | - "path" => '?page=fluent_forms_settings#general-hubspot-settings', | |
| 199 | - "tags" => ['global integrations', 'hubspot'] | |
| 197 | + 'title' => 'Global Settings > Configure Integration -> Hubspot', | |
| 198 | + 'icon' => '', | |
| 199 | + 'path' => '?page=fluent_forms_settings#general-hubspot-settings', | |
| 200 | + 'tags' => ['global integrations', 'hubspot'], | |
| 200 | 201 | ], |
| 201 | 202 | [ |
| 202 | - "title" => 'Global Settings > Configure Integration -> iContact', | |
| 203 | - "icon" => '', | |
| 204 | - "path" => '?page=fluent_forms_settings#general-icontact-settings', | |
| 205 | - "tags" => ['global integrations', 'icontact'] | |
| 203 | + 'title' => 'Global Settings > Configure Integration -> iContact', | |
| 204 | + 'icon' => '', | |
| 205 | + 'path' => '?page=fluent_forms_settings#general-icontact-settings', | |
| 206 | + 'tags' => ['global integrations', 'icontact'], | |
| 206 | 207 | ], |
| 207 | 208 | [ |
| 208 | - "title" => 'Global Settings > Configure Integration -> MooSend', | |
| 209 | - "icon" => '', | |
| 210 | - "path" => '?page=fluent_forms_settings#general-moosend-settings', | |
| 211 | - "tags" => ['global integrations', 'moosend'] | |
| 209 | + 'title' => 'Global Settings > Configure Integration -> MooSend', | |
| 210 | + 'icon' => '', | |
| 211 | + 'path' => '?page=fluent_forms_settings#general-moosend-settings', | |
| 212 | + 'tags' => ['global integrations', 'moosend'], | |
| 212 | 213 | ], |
| 213 | 214 | [ |
| 214 | - "title" => 'Global Settings > Configure Integration -> Platformly', | |
| 215 | - "icon" => '', | |
| 216 | - "path" => '?page=fluent_forms_settings#general-platformly-settings', | |
| 217 | - "tags" => ['global integrations', 'platformly'] | |
| 215 | + 'title' => 'Global Settings > Configure Integration -> Platformly', | |
| 216 | + 'icon' => '', | |
| 217 | + 'path' => '?page=fluent_forms_settings#general-platformly-settings', | |
| 218 | + 'tags' => ['global integrations', 'platformly'], | |
| 218 | 219 | ], |
| 219 | 220 | [ |
| 220 | - "title" => 'Global Settings > Configure Integration -> SendFox', | |
| 221 | - "icon" => '', | |
| 222 | - "path" => '?page=fluent_forms_settings#general-sendfox-settings', | |
| 223 | - "tags" => ['global integrations', 'sendfox'] | |
| 221 | + 'title' => 'Global Settings > Configure Integration -> SendFox', | |
| 222 | + 'icon' => '', | |
| 223 | + 'path' => '?page=fluent_forms_settings#general-sendfox-settings', | |
| 224 | + 'tags' => ['global integrations', 'sendfox'], | |
| 224 | 225 | ], |
| 225 | 226 | [ |
| 226 | - "title" => 'Global Settings > Configure Integration -> MailerLite', | |
| 227 | - "icon" => '', | |
| 228 | - "path" => '?page=fluent_forms_settings#general-mailerlite-settings', | |
| 229 | - "tags" => ['global integrations', 'mailerlite'] | |
| 227 | + 'title' => 'Global Settings > Configure Integration -> MailerLite', | |
| 228 | + 'icon' => '', | |
| 229 | + 'path' => '?page=fluent_forms_settings#general-mailerlite-settings', | |
| 230 | + 'tags' => ['global integrations', 'mailerlite'], | |
| 230 | 231 | ], |
| 231 | 232 | [ |
| 232 | - "title" => 'Global Settings > Configure Integration -> MooSend', | |
| 233 | - "icon" => '', | |
| 234 | - "path" => '?page=fluent_forms_settings#general-moosend-settings', | |
| 235 | - "tags" => ['global integrations', 'moosend'] | |
| 233 | + 'title' => 'Global Settings > Configure Integration -> Twilio', | |
| 234 | + 'icon' => '', | |
| 235 | + 'path' => '?page=fluent_forms_settings#general-sms_notification-settings', | |
| 236 | + 'tags' => ['global integrations', 'sms notification', 'twilio'], | |
| 236 | 237 | ], |
| 237 | 238 | [ |
| 238 | - "title" => 'Global Settings > Configure Integration -> Twilio', | |
| 239 | - "icon" => '', | |
| 240 | - "path" => '?page=fluent_forms_settings#general-sms_notification-settings', | |
| 241 | - "tags" => ['global integrations', 'sms notification', 'twilio'] | |
| 239 | + 'title' => 'Global Settings > Configure Integration -> GetGist', | |
| 240 | + 'icon' => '', | |
| 241 | + 'path' => '?page=fluent_forms_settings#general-getgist-settings', | |
| 242 | + 'tags' => ['global integrations', 'getgist'], | |
| 242 | 243 | ], |
| 243 | 244 | [ |
| 244 | - "title" => 'Global Settings > Configure Integration -> GetGist', | |
| 245 | - "icon" => '', | |
| 246 | - "path" => '?page=fluent_forms_settings#general-getgist-settings', | |
| 247 | - "tags" => ['global integrations', 'getgist'] | |
| 245 | + 'title' => 'Global Settings > Configure Integration -> Google Sheet', | |
| 246 | + 'icon' => '', | |
| 247 | + 'path' => '?page=fluent_forms_settings#general-google_sheet-settings', | |
| 248 | + 'tags' => ['global integrations', 'google sheet'], | |
| 248 | 249 | ], |
| 249 | 250 | [ |
| 250 | - "title" => 'Global Settings > Configure Integration -> Google Sheet', | |
| 251 | - "icon" => '', | |
| 252 | - "path" => '?page=fluent_forms_settings#general-google_sheet-settings', | |
| 253 | - "tags" => ['global integrations', 'google sheet'] | |
| 251 | + 'title' => 'Global Settings > Configure Integration -> Trello', | |
| 252 | + 'icon' => '', | |
| 253 | + 'path' => '?page=fluent_forms_settings#general-trello-settings', | |
| 254 | + 'tags' => ['global integrations', 'trello'], | |
| 254 | 255 | ], |
| 255 | 256 | [ |
| 256 | - "title" => 'Global Settings > Configure Integration -> Trello', | |
| 257 | - "icon" => '', | |
| 258 | - "path" => '?page=fluent_forms_settings#general-trello-settings', | |
| 259 | - "tags" => ['global integrations', 'trello'] | |
| 257 | + 'title' => 'Global Settings > Configure Integration -> Drip', | |
| 258 | + 'icon' => '', | |
| 259 | + 'path' => '?page=fluent_forms_settings#general-drip-settings', | |
| 260 | + 'tags' => ['global integrations', 'drip'], | |
| 260 | 261 | ], |
| 261 | 262 | [ |
| 262 | - "title" => 'Global Settings > Configure Integration -> Drip', | |
| 263 | - "icon" => '', | |
| 264 | - "path" => '?page=fluent_forms_settings#general-drip-settings', | |
| 265 | - "tags" => ['global integrations', 'drip'] | |
| 263 | + 'title' => 'Global Settings > Configure Integration -> Brevo (formerly SendInBlue)', | |
| 264 | + 'icon' => '', | |
| 265 | + 'path' => '?page=fluent_forms_settings#general-sendinblue-settings', | |
| 266 | + 'tags' => ['global integrations', 'sendinblue', 'brevo'], | |
| 266 | 267 | ], |
| 267 | 268 | [ |
| 268 | - "title" => 'Global Settings > Configure Integration -> Brevo (formerly SendInBlue)', | |
| 269 | - "icon" => '', | |
| 270 | - "path" => '?page=fluent_forms_settings#general-sendinblue-settings', | |
| 271 | - "tags" => ['global integrations', 'sendinblue', 'brevo'] | |
| 269 | + 'title' => 'Global Settings > Configure Integration -> Automizy', | |
| 270 | + 'icon' => '', | |
| 271 | + 'path' => '?page=fluent_forms_settings#general-automizy-settings', | |
| 272 | + 'tags' => ['global integrations', 'automizy'], | |
| 272 | 273 | ], |
| 273 | 274 | [ |
| 274 | - "title" => 'Global Settings > Configure Integration -> Automizy', | |
| 275 | - "icon" => '', | |
| 276 | - "path" => '?page=fluent_forms_settings#general-automizy-settings', | |
| 277 | - "tags" => ['global integrations', 'automizy'] | |
| 275 | + 'title' => 'Global Settings > Configure Integration -> Telegram Messenger', | |
| 276 | + 'icon' => '', | |
| 277 | + 'path' => '?page=fluent_forms_settings#general-telegram-settings', | |
| 278 | + 'tags' => ['global integrations', 'telegram messenger'], | |
| 278 | 279 | ], |
| 279 | 280 | [ |
| 280 | - "title" => 'Global Settings > Configure Integration -> Telegram Messenger', | |
| 281 | - "icon" => '', | |
| 282 | - "path" => '?page=fluent_forms_settings#general-telegram-settings', | |
| 283 | - "tags" => ['global integrations', 'telegram messenger'] | |
| 281 | + 'title' => 'Global Settings > Configure Integration -> Salesflare', | |
| 282 | + 'icon' => '', | |
| 283 | + 'path' => '?page=fluent_forms_settings#general-salesflare-settings', | |
| 284 | + 'tags' => ['global integrations', 'salesflare'], | |
| 284 | 285 | ], |
| 285 | 286 | [ |
| 286 | - "title" => 'Global Settings > Configure Integration -> Salesflare', | |
| 287 | - "icon" => '', | |
| 288 | - "path" => '?page=fluent_forms_settings#general-salesflare-settings', | |
| 289 | - "tags" => ['global integrations', 'salesflare'] | |
| 287 | + 'title' => 'Global Settings > Configure Integration -> CleverReach', | |
| 288 | + 'icon' => '', | |
| 289 | + 'path' => '?page=fluent_forms_settings#general-cleverreach-settings', | |
| 290 | + 'tags' => ['global integrations', 'cleverreach'], | |
| 290 | 291 | ], |
| 291 | 292 | [ |
| 292 | - "title" => 'Global Settings > Configure Integration -> CleverReach', | |
| 293 | - "icon" => '', | |
| 294 | - "path" => '?page=fluent_forms_settings#general-cleverreach-settings', | |
| 295 | - "tags" => ['global integrations', 'cleverreach'] | |
| 293 | + 'title' => 'Global Settings > Configure Integration -> ClickSend', | |
| 294 | + 'icon' => '', | |
| 295 | + 'path' => '?page=fluent_forms_settings#general-clicksend_sms_notification-settings', | |
| 296 | + 'tags' => ['global integrations', 'clicksend', 'sms_notification'], | |
| 296 | 297 | ], |
| 297 | 298 | [ |
| 298 | - "title" => 'Global Settings > Configure Integration -> ClickSend', | |
| 299 | - "icon" => '', | |
| 300 | - "path" => '?page=fluent_forms_settings#general-clicksend_sms_notification-settings', | |
| 301 | - "tags" => ['global integrations', 'clicksend', 'sms_notification'] | |
| 299 | + 'title' => 'Global Settings > Configure Integration -> Zoho CRM', | |
| 300 | + 'icon' => '', | |
| 301 | + 'path' => '?page=fluent_forms_settings#general-zohocrm-settings', | |
| 302 | + 'tags' => ['global integrations', 'zoho crm'], | |
| 302 | 303 | ], |
| 303 | 304 | [ |
| 304 | - "title" => 'Global Settings > Configure Integration -> Zoho CRM', | |
| 305 | - "icon" => '', | |
| 306 | - "path" => '?page=fluent_forms_settings#general-zohocrm-settings', | |
| 307 | - "tags" => ['global integrations', 'zoho crm'] | |
| 305 | + 'title' => 'Global Settings > Configure Integration -> Pipedrive', | |
| 306 | + 'icon' => '', | |
| 307 | + 'path' => '?page=fluent_forms_settings#general-pipedrive-settings', | |
| 308 | + 'tags' => ['global integrations', 'pipedrive'], | |
| 308 | 309 | ], |
| 309 | 310 | [ |
| 310 | - "title" => 'Global Settings > Configure Integration -> Pipedrive', | |
| 311 | - "icon" => '', | |
| 312 | - "path" => '?page=fluent_forms_settings#general-pipedrive-settings', | |
| 313 | - "tags" => ['global integrations', 'pipedrive'] | |
| 311 | + 'title' => 'Global Settings > Configure Integration -> Salesforce', | |
| 312 | + 'icon' => '', | |
| 313 | + 'path' => '?page=fluent_forms_settings#general-salesforce-settings', | |
| 314 | + 'tags' => ['global integrations', 'salesforce'], | |
| 314 | 315 | ], |
| 315 | 316 | [ |
| 316 | - "title" => 'Global Settings > Configure Integration -> Salesforce', | |
| 317 | - "icon" => '', | |
| 318 | - "path" => '?page=fluent_forms_settings#general-salesforce-settings', | |
| 319 | - "tags" => ['global integrations', 'salesforce'] | |
| 317 | + 'title' => 'Global Settings > Configure Integration -> Amocrm', | |
| 318 | + 'icon' => '', | |
| 319 | + 'path' => '?page=fluent_forms_settings#general-amocrm-settings', | |
| 320 | + 'tags' => ['global integrations', 'amocrm'], | |
| 320 | 321 | ], |
| 321 | 322 | [ |
| 322 | - "title" => 'Global Settings > Configure Integration -> Amocrm', | |
| 323 | - "icon" => '', | |
| 324 | - "path" => '?page=fluent_forms_settings#general-amocrm-settings', | |
| 325 | - "tags" => ['global integrations', 'amocrm'] | |
| 323 | + 'title' => 'Global Settings > Configure Integration -> OnePageCrm', | |
| 324 | + 'icon' => '', | |
| 325 | + 'path' => '?page=fluent_forms_settings#general-onepagecrm-settings', | |
| 326 | + 'tags' => ['global integrations', 'onepagecrm'], | |
| 326 | 327 | ], |
| 327 | 328 | [ |
| 328 | - "title" => 'Global Settings > Configure Integration -> OnePageCrm', | |
| 329 | - "icon" => '', | |
| 330 | - "path" => '?page=fluent_forms_settings#general-onepagecrm-settings', | |
| 331 | - "tags" => ['global integrations', 'onepagecrm'] | |
| 329 | + 'title' => 'Global Settings > Configure Integration -> Airtable', | |
| 330 | + 'icon' => '', | |
| 331 | + 'path' => '?page=fluent_forms_settings#general-airtable-settings', | |
| 332 | + 'tags' => ['global integrations', 'airtable'], | |
| 332 | 333 | ], |
| 333 | 334 | [ |
| 334 | - "title" => 'Global Settings > Configure Integration -> Airtable', | |
| 335 | - "icon" => '', | |
| 336 | - "path" => '?page=fluent_forms_settings#general-airtable-settings', | |
| 337 | - "tags" => ['global integrations', 'airtable'] | |
| 335 | + 'title' => 'Global Settings > Configure Integration -> Mailjet', | |
| 336 | + 'icon' => '', | |
| 337 | + 'path' => '?page=fluent_forms_settings#general-mailjet-settings', | |
| 338 | + 'tags' => ['global integrations', 'mailjet'], | |
| 338 | 339 | ], |
| 339 | 340 | [ |
| 340 | - "title" => 'Global Settings > Configure Integration -> Mailjet', | |
| 341 | - "icon" => '', | |
| 342 | - "path" => '?page=fluent_forms_settings#general-mailjet-settings', | |
| 343 | - "tags" => ['global integrations', 'mailjet'] | |
| 341 | + 'title' => 'Global Settings > Configure Integration -> Insightly', | |
| 342 | + 'icon' => '', | |
| 343 | + 'path' => '?page=fluent_forms_settings#general-insightly-settings', | |
| 344 | + 'tags' => ['global integrations', 'insightly'], | |
| 344 | 345 | ], |
| 345 | 346 | [ |
| 346 | - "title" => 'Global Settings > Configure Integration -> Insightly', | |
| 347 | - "icon" => '', | |
| 348 | - "path" => '?page=fluent_forms_settings#general-insightly-settings', | |
| 349 | - "tags" => ['global integrations', 'insightly'] | |
| 350 | - ] | |
| 347 | + 'title' => 'Global Settings > Configure Integration -> Notion', | |
| 348 | + 'icon' => '', | |
| 349 | + 'path' => '?page=fluent_forms_settings#general-notion-settings', | |
| 350 | + 'tags' => ['global integrations', 'notion'], | |
| 351 | + ], | |
| 352 | + [ | |
| 353 | + 'title' => 'Global Settings > Configure Integration -> Airtable v2', | |
| 354 | + 'icon' => '', | |
| 355 | + 'path' => '?page=fluent_forms_settings#general-airtable_v2-settings', | |
| 356 | + 'tags' => ['global integrations', 'airtable'], | |
| 357 | + ], | |
| 358 | + [ | |
| 359 | + 'title' => 'Global Settings > Configure Integration -> Constant Contact V3', | |
| 360 | + 'icon' => '', | |
| 361 | + 'path' => '?page=fluent_forms_settings#general-constatantcontactv3-settings', | |
| 362 | + 'tags' => ['global integrations', 'constantcontactv3', 'constant contact'], | |
| 363 | + ], | |
| 364 | + [ | |
| 365 | + 'title' => 'Global Settings > Configure Integration -> OpenAI', | |
| 366 | + 'icon' => '', | |
| 367 | + 'path' => '?page=fluent_forms_settings#general-openai-settings', | |
| 368 | + 'tags' => ['global integrations', 'openai', 'chatgpt', 'ai'], | |
| 369 | + ], | |
| 351 | 370 | ]); |
| 352 | 371 | } |
| 353 | 372 | |
| 354 | 373 | if (defined('FLUENTFORM_PDF_VERSION')) { |
| @@ -353,148 +372,151 @@ | ||
| 353 | 372 | |
| 354 | 373 | if (defined('FLUENTFORM_PDF_VERSION')) { |
| 355 | 374 | $links = array_merge($links, [ |
| 356 | 375 | [ |
| 357 | - "title" => 'Global Settings > Configure Integration -> PDF Settings', | |
| 358 | - "icon" => '', | |
| 359 | - "path" => '?page=fluent_forms_settings#pdf_settings', | |
| 360 | - "tags" => ['global integrations', 'pdf settings'] | |
| 376 | + 'title' => 'Global Settings > Configure Integration -> PDF Settings', | |
| 377 | + 'icon' => '', | |
| 378 | + 'path' => '?page=fluent_forms_settings#pdf_settings', | |
| 379 | + 'tags' => ['global integrations', 'pdf settings'], | |
| 361 | 380 | ], |
| 362 | 381 | [ |
| 363 | - "title" => 'Integrations -> Fluent Forms PDF', | |
| 364 | - "icon" => '', | |
| 365 | - "path" => '?page=fluent_forms_add_ons&sub_page=fluentform_pdf', | |
| 366 | - "tags" => ['pdf', 'modules'] | |
| 367 | - ] | |
| 382 | + 'title' => 'Integrations -> Fluent Forms PDF', | |
| 383 | + 'icon' => '', | |
| 384 | + 'path' => '?page=fluent_forms_add_ons&sub_page=fluentform_pdf', | |
| 385 | + 'tags' => ['pdf', 'modules'], | |
| 386 | + ], | |
| 368 | 387 | ]); |
| 369 | 388 | } |
| 370 | 389 | |
| 371 | - | |
| 390 | + $allowedForms = FormManagerService::getUserAllowedFormsScope(); | |
| 372 | 391 | $forms = Form::where('status', 'published') |
| 392 | + ->when(false !== $allowedForms, function ($q) use ($allowedForms) { | |
| 393 | + $q->whereIn('id', $allowedForms ?: [0]); | |
| 394 | + }) | |
| 373 | 395 | ->select(['id', 'title', 'type'])->get(); |
| 374 | 396 | if (count($forms) > 0) { |
| 375 | 397 | foreach ($forms as $form) { |
| 376 | 398 | $formSpecificLinks = [ |
| 377 | 399 | [ |
| 378 | - "title" => "Forms > $form->title > Editor", | |
| 379 | - "icon" => '', | |
| 380 | - "path" => "?page=fluent_forms&form_id=$form->id&route=editor", | |
| 381 | - "tags" => ['editor', "$form->id", $form->title] | |
| 400 | + 'title' => "Forms > $form->title > Editor", | |
| 401 | + 'icon' => '', | |
| 402 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=editor", | |
| 403 | + 'tags' => ['editor', "$form->id", $form->title], | |
| 382 | 404 | ], |
| 383 | 405 | [ |
| 384 | - "title" => "Forms > $form->title > Entries", | |
| 385 | - "icon" => '', | |
| 386 | - "path" => "?page=fluent_forms&form_id=$form->id&route=entries#/?sort_by=DESC&type=&page=1", | |
| 387 | - "tags" => ['entries', "$form->id", $form->title] | |
| 406 | + 'title' => "Forms > $form->title > Entries", | |
| 407 | + 'icon' => '', | |
| 408 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=entries#/?sort_by=DESC&type=&page=1", | |
| 409 | + 'tags' => ['entries', "$form->id", $form->title], | |
| 388 | 410 | ], |
| 389 | 411 | [ |
| 390 | - "title" => "Forms > $form->title > Entries > Visual Reports", | |
| 391 | - "icon" => '', | |
| 392 | - "path" => "?page=fluent_forms&form_id=$form->id&route=entries#/visual_reports", | |
| 393 | - "tags" => ['entries', 'visual reports', "$form->id", $form->title] | |
| 412 | + 'title' => "Forms > $form->title > Entries > Visual Reports", | |
| 413 | + 'icon' => '', | |
| 414 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=entries#/visual_reports", | |
| 415 | + 'tags' => ['entries', 'visual reports', "$form->id", $form->title], | |
| 394 | 416 | ], |
| 395 | 417 | [ |
| 396 | - "title" => "Forms > $form->title > Settings & Integrations > Settings", | |
| 397 | - "icon" => '', | |
| 398 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/", | |
| 399 | - "tags" => ['settings and integrations', "$form->id", $form->title] | |
| 418 | + 'title' => "Forms > $form->title > Settings & Integrations > Settings", | |
| 419 | + 'icon' => '', | |
| 420 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/", | |
| 421 | + 'tags' => ['settings and integrations', "$form->id", $form->title], | |
| 400 | 422 | ], |
| 401 | 423 | [ |
| 402 | - "title" => "Forms > $form->title > Settings & Integrations > Slack", | |
| 403 | - "icon" => '', | |
| 404 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/slack", | |
| 405 | - "tags" => ['slack', "$form->id", $form->title] | |
| 424 | + 'title' => "Forms > $form->title > Settings & Integrations > Slack", | |
| 425 | + 'icon' => '', | |
| 426 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/slack", | |
| 427 | + 'tags' => ['slack', "$form->id", $form->title], | |
| 406 | 428 | ], |
| 407 | 429 | [ |
| 408 | - "title" => "Forms > $form->title > Settings & Integrations > Custom CSS/JS", | |
| 409 | - "icon" => '', | |
| 410 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/custom-css-js", | |
| 411 | - "tags" => ['custom', 'CSS/JS', 'css javascript', "$form->id", $form->title] | |
| 430 | + 'title' => "Forms > $form->title > Settings & Integrations > Custom CSS/JS", | |
| 431 | + 'icon' => '', | |
| 432 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/custom-css-js", | |
| 433 | + 'tags' => ['custom', 'CSS/JS', 'css javascript', "$form->id", $form->title], | |
| 412 | 434 | ], |
| 413 | 435 | [ |
| 414 | - "title" => "Forms > $form->title > Settings & Integrations > Configure Integrations", | |
| 415 | - "icon" => '', | |
| 416 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/all-integrations", | |
| 417 | - "tags" => ['configure integrations', "$form->id", $form->title] | |
| 436 | + 'title' => "Forms > $form->title > Settings & Integrations > Configure Integrations", | |
| 437 | + 'icon' => '', | |
| 438 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/all-integrations", | |
| 439 | + 'tags' => ['configure integrations', "$form->id", $form->title], | |
| 418 | 440 | ], |
| 419 | 441 | [ |
| 420 | - "title" => "Forms > $form->title > Preview", | |
| 421 | - "icon" => '', | |
| 422 | - "type" => 'preview', | |
| 423 | - "path" => "?fluent_forms_pages=1&design_mode=1&preview_id=$form->id#ff_preview", | |
| 424 | - "tags" => ['preview ', "$form->id", $form->title] | |
| 425 | - ] | |
| 442 | + 'title' => "Forms > $form->title > Preview", | |
| 443 | + 'icon' => '', | |
| 444 | + 'type' => 'preview', | |
| 445 | + 'path' => "?fluent_forms_pages=1&design_mode=1&preview_id=$form->id#ff_preview", | |
| 446 | + 'tags' => ['preview ', "$form->id", $form->title], | |
| 447 | + ], | |
| 426 | 448 | ]; |
| 427 | 449 | if (defined('FLUENTFORMPRO')) { |
| 428 | 450 | $formSpecificLinks = array_merge($formSpecificLinks, [ |
| 429 | 451 | [ |
| 430 | - "title" => "Forms > $form->title > Settings & Integrations > Landing Page", | |
| 431 | - "icon" => '', | |
| 432 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/landing_pages", | |
| 433 | - "tags" => ['landing pages', "$form->id", $form->title] | |
| 452 | + 'title' => "Forms > $form->title > Settings & Integrations > Landing Page", | |
| 453 | + 'icon' => '', | |
| 454 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/landing_pages", | |
| 455 | + 'tags' => ['landing pages', "$form->id", $form->title], | |
| 434 | 456 | ], |
| 435 | 457 | [ |
| 436 | - "title" => "Forms > $form->title > Settings & Integrations > Conditional Confirmations", | |
| 437 | - "icon" => '', | |
| 438 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/conditional-confirmations", | |
| 439 | - "tags" => ["conditional confirmations", "$form->id", $form->title] | |
| 458 | + 'title' => "Forms > $form->title > Settings & Integrations > Conditional Confirmations", | |
| 459 | + 'icon' => '', | |
| 460 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/conditional-confirmations", | |
| 461 | + 'tags' => ['conditional confirmations', "$form->id", $form->title], | |
| 440 | 462 | ], |
| 441 | 463 | [ |
| 442 | - "title" => "Forms > $form->title > Settings & Integrations > Email Notifications", | |
| 443 | - "icon" => '', | |
| 444 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/email-settings", | |
| 445 | - "tags" => ["email notifications", "$form->id", $form->title] | |
| 464 | + 'title' => "Forms > $form->title > Settings & Integrations > Email Notifications", | |
| 465 | + 'icon' => '', | |
| 466 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/email-settings", | |
| 467 | + 'tags' => ['email notifications', "$form->id", $form->title], | |
| 446 | 468 | ], |
| 447 | 469 | [ |
| 448 | - "title" => "Forms > $form->title > Settings & Integrations > Zapier", | |
| 449 | - "icon" => '', | |
| 450 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/zapier", | |
| 451 | - "tags" => ['zapier', "$form->id", $form->title] | |
| 470 | + 'title' => "Forms > $form->title > Settings & Integrations > Zapier", | |
| 471 | + 'icon' => '', | |
| 472 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/zapier", | |
| 473 | + 'tags' => ['zapier', "$form->id", $form->title], | |
| 452 | 474 | ], |
| 453 | 475 | [ |
| 454 | - "title" => "Forms > $form->title > Settings & Integrations > Webhook", | |
| 455 | - "icon" => '', | |
| 456 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/webhook", | |
| 457 | - "tags" => ['webhook', "$form->id", $form->title] | |
| 476 | + 'title' => "Forms > $form->title > Settings & Integrations > Webhook", | |
| 477 | + 'icon' => '', | |
| 478 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/webhook", | |
| 479 | + 'tags' => ['webhook', "$form->id", $form->title], | |
| 458 | 480 | ], |
| 459 | 481 | [ |
| 460 | - "title" => "Forms > $form->title > Settings & Integrations > Quiz Settings", | |
| 461 | - "icon" => '', | |
| 462 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/quiz_settings", | |
| 463 | - "tags" => ["quiz", "$form->id", $form->title] | |
| 464 | - ] | |
| 482 | + 'title' => "Forms > $form->title > Settings & Integrations > Quiz Settings", | |
| 483 | + 'icon' => '', | |
| 484 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/quiz_settings", | |
| 485 | + 'tags' => ['quiz', "$form->id", $form->title], | |
| 486 | + ], | |
| 465 | 487 | ]); |
| 466 | 488 | } |
| 467 | 489 | if (defined('FLUENTFORM_PDF_VERSION')) { |
| 468 | 490 | $formSpecificLinks[] = [ |
| 469 | - "title" => "Forms > $form->title > Settings & Integrations > PDF Feeds", | |
| 470 | - "icon" => '', | |
| 471 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/pdf-feeds", | |
| 472 | - "tags" => ['pdf feeds', "$form->id", $form->title] | |
| 491 | + 'title' => "Forms > $form->title > Settings & Integrations > PDF Feeds", | |
| 492 | + 'icon' => '', | |
| 493 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/pdf-feeds", | |
| 494 | + 'tags' => ['pdf feeds', "$form->id", $form->title], | |
| 473 | 495 | ]; |
| 474 | 496 | } |
| 475 | 497 | |
| 476 | 498 | if (defined('FLUENTFORMPRO') && 'post' === $form->type) { |
| 477 | 499 | $formSpecificLinks[] = [ |
| 478 | - "title" => "Forms > $form->title > Settings & Integrations > Post Feeds", | |
| 479 | - "icon" => '', | |
| 480 | - "path" => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/post-feeds", | |
| 481 | - "tags" => ['post feeds', "$form->id", $form->title] | |
| 500 | + 'title' => "Forms > $form->title > Settings & Integrations > Post Feeds", | |
| 501 | + 'icon' => '', | |
| 502 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=settings&sub_route=form_settings#/post-feeds", | |
| 503 | + 'tags' => ['post feeds', "$form->id", $form->title], | |
| 482 | 504 | ]; |
| 483 | 505 | } |
| 484 | 506 | if (Helper::isConversionForm($form->id)) { |
| 485 | 507 | $formSpecificLinks[] = [ |
| 486 | - "title" => "Forms > $form->title > Design", | |
| 487 | - "icon" => '', | |
| 488 | - "path" => "?page=fluent_forms&form_id=$form->id&route=conversational_design", | |
| 489 | - "tags" => ['conversational design', "$form->id", $form->title] | |
| 508 | + 'title' => "Forms > $form->title > Design", | |
| 509 | + 'icon' => '', | |
| 510 | + 'path' => "?page=fluent_forms&form_id=$form->id&route=conversational_design", | |
| 511 | + 'tags' => ['conversational design', "$form->id", $form->title], | |
| 490 | 512 | ]; |
| 491 | 513 | $formSpecificLinks[] = [ |
| 492 | - "title" => "Forms > $form->title > Conversational Preview", | |
| 493 | - "icon" => '', | |
| 494 | - "type" => 'preview', | |
| 495 | - "path" => "?fluent-form=$form->id", | |
| 496 | - "tags" => ['preview', 'conversational', "$form->id", $form->title] | |
| 514 | + 'title' => "Forms > $form->title > Conversational Preview", | |
| 515 | + 'icon' => '', | |
| 516 | + 'type' => 'preview', | |
| 517 | + 'path' => "?fluent-form=$form->id", | |
| 518 | + 'tags' => ['preview', 'conversational', "$form->id", $form->title], | |
| 497 | 519 | ]; |
| 498 | 520 | } |
| 499 | 521 | $links = array_merge($links, $formSpecificLinks); |
| 500 | 522 | } |
| @@ -499,10 +521,10 @@ | ||
| 499 | 521 | $links = array_merge($links, $formSpecificLinks); |
| 500 | 522 | } |
| 501 | 523 | } |
| 502 | 524 | return [ |
| 503 | - "links" => apply_filters('fluentform/global_search_links', $links), | |
| 504 | - "admin_url" => get_admin_url(null, 'admin.php'), | |
| 505 | - "site_url" => site_url(), | |
| 525 | + 'links' => apply_filters('fluentform/global_search_links', $links), | |
| 526 | + 'admin_url' => get_admin_url(null, 'admin.php'), | |
| 527 | + 'site_url' => site_url(), | |
| 506 | 528 | ]; |
| 507 | 529 | } |
| 508 | 530 | } |