PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.1.14
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.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 1.1.1 All 122 releases
firebox / Inc / Core / Admin / Forms / FireBox / Advanced.php

Advanced.php in FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment 2.1.14, at Inc/Core/Admin/Forms/FireBox/Advanced.php

119 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package FireBox
4 * @version 2.1.14 Free
5 *
6 * @author FirePlugins <info@fireplugins.com>
7 * @link https://www.fireplugins.com
8 * @copyright Copyright © 2024 FirePlugins All Rights Reserved
9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 */
11
12 namespace FireBox\Core\Admin\Forms\FireBox;
13
14 if (!defined('ABSPATH'))
15 {
16 exit; // Exit if accessed directly.
17 }
18
19 class Advanced
20 {
21 /**
22 * Holds the Advanced Settings
23 *
24 * @return array
25 */
26 public function getSettings()
27 {
28 $settings = [
29 'title' => 'FPF_ADVANCED',
30 'content' => [
31 'advanced_custom' => [
32 'title' => [
33 'title' => 'FPF_CUSTOM_CODE',
34 'description' => 'FPF_CUSTOM_CODE_DESC'
35 ],
36 'fields' => [
37 [
38 'name' => 'customcode',
39 'type' => 'Textarea',
40 'label' => 'FPF_CUSTOM_JAVASCRIPT',
41 'description' => 'FPF_CUSTOM_JAVASCRIPT_DESC',
42 'input_class' => ['fullwidth'],
43 'rows' => 10,
44 'filter' => 'raw',
45 'mode' => 'javascript'
46 ],
47 [
48 'name' => 'customcss',
49 'type' => 'Textarea',
50 'label' => 'FPF_CUSTOM_CSS',
51 'description' => 'FPF_CUSTOM_CSS_DESC',
52 'input_class' => ['fullwidth'],
53 'rows' => 10,
54 'filter' => 'css',
55 'mode' => 'css'
56 ]
57 ]
58 ],
59 'advanced_misc' => [
60 'title' => [
61 'title' => 'FPF_MISC',
62 'description' => 'FPF_MISC_SETTINGS_DESC'
63 ],
64 'fields' => [
65 [
66 'name' => 'testmode',
67 'type' => 'FPToggle',
68 'label' => firebox()->_('FB_METABOX_TEST_MODE'),
69 'description' => firebox()->_('FB_METABOX_TEST_MODE_DESC')
70 ],
71 [
72 'name' => 'rtl',
73 'type' => 'FPToggle',
74 'label' => firebox()->_('FB_METABOX_ADV_ENABLE_RTL'),
75 'description' => firebox()->_('FB_METABOX_ADV_ENABLE_RTL_DESC'),
76 ],
77 [
78 'name' => 'preventpagescroll',
79 'type' => 'FPToggle',
80 'label' => firebox()->_('FB_METABOX_ADV_PREVENT_PAGE_SCROLLING'),
81 'description' => firebox()->_('FB_METABOX_ADV_PREVENT_PAGE_SCROLLING_DESC'),
82 ],
83 [
84 'name' => 'stats',
85 'type' => 'Toggle',
86 'label' => firebox()->_('FB_METABOX_ADV_STATISTICS'),
87 'description' => firebox()->_('FB_SETTINGS_ANALYTICS_DESC'),
88 'default' => 2,
89 'choices' => [
90 '2' => 'FPF_USE_GLOBAL',
91 '1' => 'FPF_YES',
92 '0' => 'FPF_NO'
93 ]
94 ],
95 [
96 'name' => 'classsuffix',
97 'type' => 'Text',
98 'label' => 'FPF_CLASS_SUFFIX',
99 'description' => 'FPF_CLASS_SUFFIX_DESC',
100 'input_class' => ['medium']
101 ],
102 [
103 'name' => 'zindex',
104 'type' => 'Number',
105 'label' => firebox()->_('FB_METABOX_ADV_ZINDEX'),
106 'description' => firebox()->_('FB_METABOX_ADV_ZINDEX_DESC'),
107 'input_class' => ['small'],
108 'placeholder' => '99999',
109 'min' => 1000,
110 'step' => 1000
111 ],
112 ]
113 ]
114 ]
115 ];
116
117 return apply_filters('firebox/box/settings/advanced/edit', $settings);
118 }
119 }