# fluentform/6.2.12/app/Modules/Widgets/OxygenWidget.php

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

- Page: https://pluginprobe.com/plugins/fluentform/6.2.12/code/app/Modules/Widgets/OxygenWidget.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.2.12/raw/app/Modules/Widgets/OxygenWidget.php
- Modified: 2026-04-01T13:33:54+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/6.2.12/code/app/Modules/Widgets/OxygenWidget.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Modules\Widgets;

defined('ABSPATH') or die;

if (!class_exists('OxyEl')) {
    return;
}

class OxygenWidget
{
    public function __construct()
    {
        if (version_compare(CT_VERSION, '3.2', '<')) {
            return; //minimum version requirement
        }
        add_action('plugins_loaded', [$this, 'initOxygenEl']);
        add_action('oxygen_add_plus_sections', [$this, 'addAccordionSection']);
        add_action('oxygen_add_plus_fluentform_section_content', [$this, 'registerAddPlusSubsections']);
        $this->initWidgets();
    }

    public function initOxygenEl()
    {
        if (!class_exists('OxyEl')) {
            return;
        }
        new OxygenEl();
    }

    public function initWidgets()
    {
        if (file_exists(FLUENTFORM_DIR_PATH . 'app/Modules/Widgets/OxyFluentFormWidget.php')) {
            require_once FLUENTFORM_DIR_PATH . 'app/Modules/Widgets/OxyFluentFormWidget.php';
        }
    }

    public function addAccordionSection()
    {
        $brand_name = __('Fluent Forms', 'fluentform');
        \CT_Toolbar::oxygen_add_plus_accordion_section('fluentform', $brand_name);
    }

    public function registerAddPlusSubsections()
    {
        // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- oxygen_add_plus_fluentform_form is a third-party plugin hook (Oxygen Builder)
        do_action('oxygen_add_plus_fluentform_form');
    }
}

```
