PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 4.3.13
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v4.3.13
6.2.14 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 All 196 releases
fluentform / app / Modules / Widgets / OxygenWidget.php

OxygenWidget.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 4.3.13, at app/Modules/Widgets/OxygenWidget.php

47 lines 1.2 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\Widgets;
4
5 if ( ! class_exists('OxyEl')) {
6 return;
7 }
8
9 class OxygenWidget
10 {
11 public function __construct()
12 {
13 if (version_compare(CT_VERSION, "3.2", "<")) {
14 return; //minimum version requirement
15 }
16 add_action('plugins_loaded', array($this, 'initOxygenEl'));
17 add_action('oxygen_add_plus_sections', array($this, 'addAccordionSection'));
18 add_action('oxygen_add_plus_fluentform_section_content', array($this, 'registerAddPlusSubsections'));
19 $this->initWidgets();
20 }
21
22 public function initOxygenEl()
23 {
24 if ( ! class_exists('OxyEl')) {
25 return;
26 }
27 new OxygenEl();
28 }
29
30 public function initWidgets()
31 {
32 if (file_exists(FLUENTFORM_DIR_PATH . 'app/Modules/Widgets/OxyFluentFormWidget.php')) {
33 require_once FLUENTFORM_DIR_PATH . 'app/Modules/Widgets/OxyFluentFormWidget.php';
34 }
35 }
36
37 public function addAccordionSection()
38 {
39 $brand_name = __('Fluent Forms', "fluentform");
40 \CT_Toolbar::oxygen_add_plus_accordion_section("fluentform", $brand_name);
41 }
42
43 public function registerAddPlusSubsections()
44 {
45 do_action("oxygen_add_plus_fluentform_form");
46 }
47 }