PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.1.23
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.1.23
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/Core/Helpers/Embed.php +12 -31 trunk → 2.1.23 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.14 Free
4 + * @version 2.1.23 Free
5 5 *
6 6 * @author FirePlugins <[email protected]>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2026 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2024 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 FireBox\Core\Helpers;
@@ -17,9 +17,9 @@
17 17 }
18 18
19 19 class Embed
20 20 {
21 - public static function renderCampaign($id = '', $status = ['publish'])
21 + public static function renderCampaign($id = '')
22 22 {
23 23 if (!$id)
24 24 {
25 25 return;
@@ -32,9 +32,9 @@
32 32 return;
33 33 }
34 34
35 35 // Abort if not enabled
36 - if (!in_array($box->getBox()->post_status, $status))
36 + if ($box->getBox()->post_status !== 'publish')
37 37 {
38 38 return;
39 39 }
40 40
@@ -48,17 +48,17 @@
48 48
49 49 // Remove cookie setting
50 50 $box->getCampaignParams()->set('assign_cookietype', 'never');
51 51
52 - // // Empty Display Conditions
53 - // $box->getCampaignParams()->set('rules', '');
52 + // Empty Display Conditions
53 + $box->getCampaignParams()->set('rules', '');
54 54
55 - // // Empty actions
56 - // $box->getCampaignParams()->set('actions', '');
55 + // Empty actions
56 + $box->getCampaignParams()->set('actions', '');
57 57
58 - // // Empty PHP Scripts > State > Open/Close
59 - // $box->getCampaignParams()->set('phpscripts.open', '');
60 - // $box->getCampaignParams()->set('phpscripts.close', '');
58 + // Empty PHP Scripts > State > Open/Close
59 + $box->getCampaignParams()->set('phpscripts.open', '');
60 + $box->getCampaignParams()->set('phpscripts.close', '');
61 61
62 62 // Remove background overlay.
63 63 $box->getCampaignParams()->set('overlay', '0');
64 64
@@ -80,18 +80,9 @@
80 80
81 81 // Hide the close button.
82 82 $box->getCampaignParams()->set('closebutton.show', '0');
83 83
84 - // The editor flag is a plain query argument, so it only counts for users who can edit this campaign.
85 - $isEditor = isset($_GET['editor']) && sanitize_key(wp_unslash($_GET['editor'])) //phpcs:ignore WordPress.Security.NonceVerification.Recommended
86 - && is_user_logged_in() && current_user_can('edit_post', $id);
87 -
88 - // Campaigns in test mode are only visible to users who can manage campaigns, embedded or not.
89 - if (!$isEditor && $box->getCampaignParams()->get('testmode', false) == '1' && !(is_user_logged_in() && current_user_can('edit_fireboxes')))
90 - {
91 - return;
92 - }
93 -
84 + $isEditor = isset($_GET['editor']) && sanitize_key(wp_unslash($_GET['editor'])); //phpcs:ignore WordPress.Security.NonceVerification.Recommended
94 85 if ($isEditor)
95 86 {
96 87 /**
97 88 * Ignore Opening/Closing Behavior and Display Conditions.
@@ -120,15 +111,5 @@
120 111 }
121 112
122 113 return $html;
123 114 }
124 -
125 - public static function renderCampaignById($id = null)
126 - {
127 - if (!$id)
128 - {
129 - return;
130 - }
131 -
132 -
133 - }
134 115 }