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'); wp_localize_script('fluentform-global-settings-js', 'FluentFormApp', [ 'plugin' => $this->app->getSlug(), 'akismet_activated' => AkismetHandler::isPluginEnabled(), 'has_pro' => defined('FLUENTFORMPRO') ]); } }