# fluentform/1.2.4/app/Modules/Renderer/GlobalSettings/Settings.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 1.2.4. 52 lines.

- Page: https://pluginprobe.com/plugins/fluentform/1.2.4/code/app/Modules/Renderer/GlobalSettings/Settings.php
- Raw: https://pluginprobe.com/plugins/fluentform/1.2.4/raw/app/Modules/Renderer/GlobalSettings/Settings.php
- Modified: 2017-12-29T16:40:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/1.2.4/code/app/Modules/Renderer/GlobalSettings/Settings.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Modules\Renderer\GlobalSettings;

use FluentForm\Framework\Foundation\Application;

class Settings
{
    /**
     * @var \FluentForm\Framework\Foundation\Application
     */
    protected $app;

    /**
     * GlobalSettings constructor.
     *
     * @param \FluentForm\Framework\Foundation\Application $app
     */
    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    /**
     * Render the page for native global settings components
     *
     * @throws \Exception
     */
    public function render()
    {
        $this->enqueue();

        $this->app->view->render('admin.settings.settings');
    }

    /**
     * Enqueue necessary resources.
     *
     * @throws \Exception
     */
    public function enqueue()
    {
        wp_enqueue_script('fluentform-global-settings-js',
            fluentformMix("js/fluentform-global-settings.js"),
            ['jquery'], $this->app->getVersion(), false
        );

        wp_localize_script('fluentform-global-settings-js', 'FluentFormApp', [
            'plugin' => $this->app->getSlug(),
        ]);
    }
}
```
