PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 1.2.4
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v1.2.4
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 / Renderer / GlobalSettings / Settings.php

Settings.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 1.2.4, at app/Modules/Renderer/GlobalSettings/Settings.php

52 lines 1.1 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\Renderer\GlobalSettings;
4
5 use FluentForm\Framework\Foundation\Application;
6
7 class Settings
8 {
9 /**
10 * @var \FluentForm\Framework\Foundation\Application
11 */
12 protected $app;
13
14 /**
15 * GlobalSettings constructor.
16 *
17 * @param \FluentForm\Framework\Foundation\Application $app
18 */
19 public function __construct(Application $app)
20 {
21 $this->app = $app;
22 }
23
24 /**
25 * Render the page for native global settings components
26 *
27 * @throws \Exception
28 */
29 public function render()
30 {
31 $this->enqueue();
32
33 $this->app->view->render('admin.settings.settings');
34 }
35
36 /**
37 * Enqueue necessary resources.
38 *
39 * @throws \Exception
40 */
41 public function enqueue()
42 {
43 wp_enqueue_script('fluentform-global-settings-js',
44 fluentformMix("js/fluentform-global-settings.js"),
45 ['jquery'], $this->app->getVersion(), false
46 );
47
48 wp_localize_script('fluentform-global-settings-js', 'FluentFormApp', [
49 'plugin' => $this->app->getSlug(),
50 ]);
51 }
52 }