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/Layouts/fields/responsivecontrols.php +6 -7 1.0.11 → 3.1.14 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FirePlugins Framework
4 - * @version 1.0.22
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 if (!defined('ABSPATH'))
@@ -18,10 +18,9 @@
18 18 {
19 19 return;
20 20 }
21 21
22 -$devices = array_values(array_unique($devices));
23 -$devices = array_filter($devices);
22 +$devices = array_filter(array_values(array_unique($devices)));
24 23 if (empty($devices))
25 24 {
26 25 return;
27 26 }
@@ -29,14 +28,14 @@
29 28 $value = $this->data->get('value', $devices[0]);
30 29 ?>
31 30 <div class="fpf-responsive-controls-item">
32 31 <?php
33 - foreach ($devices as $device) {
32 + foreach ($devices as $device)
33 + {
34 34 if (is_array($device))
35 35 {
36 36 continue;
37 37 }
38 -
39 38 $isActive = $value == $device;
40 39 $icon = $device == 'mobile' ? 'smartphone' : $device;
41 40 ?>
42 41 <div
@@ -42,9 +41,9 @@
42 41 <div
43 42 class="fpf-responsive-controls-inner-item"
44 43 data-device="<?php echo esc_attr($device); ?>"
45 44 title="<?php echo esc_html(sprintf(fpframework()->_('FPF_X_DEVICE_SETTINGS'), ucfirst($device))); ?>">
46 - <input type="radio" id="fpf-responsive-controls-inner-input-item_<?php echo esc_attr($this->data->get('name_key') . '_' . $device); ?>" name="<?php echo esc_attr($this->data->get('name', '')); ?>"value="<?php echo esc_attr($device); ?>"<?php echo ($isActive) ? ' checked="checked"' : ''; ?> />
45 + <input type="radio" id="fpf-responsive-controls-inner-input-item_<?php echo esc_attr($this->data->get('name_key') . '_' . $device); ?>" name="<?php echo esc_attr($this->data->get('name', '')); ?>" value="<?php echo esc_attr($device); ?>"<?php echo $isActive ? ' checked="checked"' : ''; ?> />
47 46 <label for="fpf-responsive-controls-inner-input-item_<?php echo esc_attr($this->data->get('name_key') . '_' . $device); ?>"><span class="dashicons dashicons-<?php echo esc_attr($icon); ?>"></span></label>
48 47 </div>
49 48 <?php
50 49 }