PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.1.7
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.1.7
3.1.14 3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 All 123 releases
firebox / Inc / Framework / Inc / Base / Fields / Radio.php

Radio.php in FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment 3.1.7, at Inc/Framework/Inc/Base/Fields/Radio.php

58 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package FirePlugins Framework
4 * @version 1.1.146
5 *
6 * @author FirePlugins <[email protected]>
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 FPFramework\Base\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 Radio 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 'cols' => $options->get('cols'),
37 'choices' => $options->get('choices', [])
38 ];
39 }
40
41 /**
42 * Runs before field renders
43 *
44 * @return void
45 */
46 public function onBeforeRender()
47 {
48 // CSS
49 wp_register_style(
50 'fpframework-choice-field',
51 FPF_MEDIA_URL . 'admin/css/fpf_choice.css',
52 [],
53 FPF_VERSION,
54 false
55 );
56 wp_enqueue_style( 'fpframework-choice-field' );
57 }
58 }