| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentForm\App\Modules\Widgets; |
| 4 |
|
| 5 |
if (!class_exists('OxyEl')) { |
| 6 |
return; |
| 7 |
} |
| 8 |
|
| 9 |
class OxygenEl extends \OxyEl |
| 10 |
{ |
| 11 |
public function init() |
| 12 |
{ |
| 13 |
$this->El->useAJAXControls(); |
| 14 |
} |
| 15 |
|
| 16 |
public function class_names() |
| 17 |
{ |
| 18 |
return ['ff-oxy-element']; |
| 19 |
} |
| 20 |
|
| 21 |
public function button_place() |
| 22 |
{ |
| 23 |
$button_place = $this->accordion_button_place(); |
| 24 |
|
| 25 |
if ($button_place) { |
| 26 |
return 'fluentform::' . $button_place; |
| 27 |
} |
| 28 |
|
| 29 |
return ''; |
| 30 |
} |
| 31 |
|
| 32 |
public function button_priority() |
| 33 |
{ |
| 34 |
return ''; |
| 35 |
} |
| 36 |
|
| 37 |
public function isBuilderEditorActive() |
| 38 |
{ |
| 39 |
if (wpFluentForm('request')->get('oxygen_iframe') || defined('OXY_ELEMENTS_API_AJAX')) { |
| 40 |
return true; |
| 41 |
} |
| 42 |
|
| 43 |
return false; |
| 44 |
} |
| 45 |
} |
| 46 |
|