PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.1.14
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.1.14
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
← All changes | Inc/Framework/Inc/Helpers/HTML.php +4 -55 1.0.12 → 3.1.14 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FirePlugins Framework
4 - * @version 1.0.27
4 + * @version 1.2.6
5 5 *
6 6 * @author FirePlugins <[email protected]>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2022 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2026 FirePlugins All Rights Reserved
9 9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 10 */
11 11
12 12 namespace FPFramework\Helpers;
@@ -18,42 +18,8 @@
18 18
19 19 class HTML
20 20 {
21 21 /**
22 - * Generates a Pro button
23 - *
24 - * @param string $label
25 - * @param string $feature_label
26 - *
27 - * @return string
28 - */
29 - public static function renderProButton($label = '', $feature_label = '')
30 - {
31 - if (!is_string($label) && !is_string($feature_label))
32 - {
33 - return;
34 - }
35 -
36 - $class = '\FPFramework\Base\Fields\Pro';
37 -
38 - $options = [
39 - 'type' => 'Pro',
40 - 'label' => $label,
41 - 'feature_label' => $feature_label,
42 - 'render_group' => false
43 - ];
44 -
45 - $field = new $class($options);
46 -
47 - ob_start();
48 - $field->render();
49 - $html = ob_get_contents();
50 - ob_end_clean();
51 -
52 - return $html;
53 - }
54 -
55 - /**
56 22 * Generates a FPToggle input
57 23 *
58 24 * @param string $atts
59 25 *
@@ -171,25 +137,8 @@
171 137 return $html;
172 138 }
173 139
174 140 /**
175 - * Renders an image of the pro feature with an Upgrade to Pro button.
176 - *
177 - * @param array $atts
178 - *
179 - * @return string
180 - */
181 - public static function renderImageProFeature($atts = [])
182 - {
183 - if (!$atts)
184 - {
185 - return;
186 - }
187 -
188 - fpframework()->renderer->upgrades->render('pro_image', $atts);
189 - }
190 -
191 - /**
192 141 * Renders a modal.
193 142 *
194 143 * @param array $payload
195 144 * @param boolean $return
@@ -213,11 +162,11 @@
213 162 'fpframework-modal',
214 163 FPF_MEDIA_URL . 'admin/js/fpf_modal.js',
215 164 [],
216 165 FPF_VERSION,
217 - false
166 + true
218 167 );
219 - wp_enqueue_script( 'fpframework-modal' );
168 + wp_enqueue_script('fpframework-modal');
220 169
221 170 if ($return)
222 171 {
223 172 return fpframework()->renderer->admin->render('modal', $payload, $return);