| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FireBox |
| 4 |
* @version 3.1.10 Free |
| 5 |
* |
| 6 |
* @author FirePlugins <info@fireplugins.com> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
namespace FireBox\Core\Fields; |
| 13 |
|
| 14 |
if (!defined('ABSPATH')) |
| 15 |
{ |
| 16 |
exit; // Exit if accessed directly. |
| 17 |
} |
| 18 |
|
| 19 |
use FPFramework\Base\Field; |
| 20 |
use FPFramework\Libs\Registry; |
| 21 |
|
| 22 |
class Integrations extends Field |
| 23 |
{ |
| 24 |
/** |
| 25 |
* Set specific field options. |
| 26 |
* |
| 27 |
* @param array $options |
| 28 |
* |
| 29 |
* @return void |
| 30 |
*/ |
| 31 |
protected function setFieldOptions($options) |
| 32 |
{ |
| 33 |
$options = new Registry($options); |
| 34 |
|
| 35 |
$this->field_options = [ |
| 36 |
'render_group' => false, |
| 37 |
'render_top' => false, |
| 38 |
'integrations' => $options->get('integrations', []) |
| 39 |
]; |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
|