PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.1.0
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.1.0
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
← All changes | Inc/Core/Controllers/BaseController.php +11 -25 trunk2.1.0 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.13 Free
4 + * @version 2.1.0 Free
5 5 *
6 6 * @author FirePlugins <info@fireplugins.com>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2026 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2023 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\Controllers;
@@ -62,37 +62,30 @@
62 62 }
63 63
64 64 private function getCurrentPage()
65 65 {
66 - return isset($_GET['page']) ? sanitize_text_field(wp_unslash($_GET['page'])) : ''; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
66 + return isset($_GET['page']) ? $_GET['page'] : '';
67 67 }
68 68
69 69 /**
70 70 * Returns the sidebar navigation.
71 - *
72 - * @return array
71 + *
72 + * @return void
73 73 */
74 74 private function getNavigation()
75 75 {
76 - $campaigns = false;
77 -
78 - if (current_user_can('read_fireboxes'))
79 - {
80 - $campaigns = [
81 - 'label' => firebox()->_('FB_CAMPAIGNS'),
82 - 'url' => admin_url('admin.php?page=firebox-campaigns'),
83 - 'slug' => 'firebox-campaigns'
84 - ];
85 - }
86 -
87 - $items = [
76 + return [
88 77 [
89 78 'label' => fpframework()->_('FPF_OVERVIEW'),
90 79 'url' => admin_url('admin.php?page=firebox'),
91 80 'slug' => 'firebox'
92 81 ],
93 - $campaigns,
94 82 [
83 + 'label' => firebox()->_('FB_CAMPAIGNS'),
84 + 'url' => admin_url('admin.php?page=firebox-campaigns'),
85 + 'slug' => 'firebox-campaigns'
86 + ],
87 + [
95 88 'label' => fpframework()->_('FPF_ANALYTICS'),
96 89 'url' => admin_url('admin.php?page=firebox-analytics'),
97 90 'slug' => 'firebox-analytics'
98 91 ],
@@ -106,13 +99,6 @@
106 99 'url' => admin_url('admin.php?page=firebox-settings'),
107 100 'slug' => 'firebox-settings'
108 101 ]
109 102 ];
110 -
111 - $items = array_filter($items, function($item) {
112 - return $item !== false;
113 - });
114 - $items = array_values($items);
115 -
116 - return $items;
117 103 }
118 104 }