PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 1.1.9
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v1.1.9
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 / firebox.php

firebox.php in FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment 1.1.9, at firebox.php

160 lines 3.7 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 1.1.9 Free
5 *
6 * @author FirePlugins <info@fireplugins.com>
7 * @link https://www.fireplugins.com
8 * @copyright Copyright © 2022 FirePlugins All Rights Reserved
9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 *
11 * Plugin Name: FireBox
12 * Plugin URI: https://www.fireplugins.com/firebox
13 * Description: WordPress Popup and leads generation plugin that converts visitors into subscribers & customers.
14 * Version: 1.1.9
15 * Author: FirePlugins Popup Plugin Team
16 * Author URI: https://www.fireplugins.com/
17 * Text Domain: firebox
18 * Domain Path: /languages
19 * Requires at least: 5.4
20 * Requires PHP: 5.6.40
21 * License: GNU General Public License v2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
23 */
24
25 // If this file is called directly, abort.
26 if (!defined('ABSPATH'))
27 {
28 exit; // Exit if accessed directly.
29 }
30
31 // Load Framework
32 require_once dirname(__FILE__) . '/Inc/Framework/init.php';
33
34 // Plugin Autoloader
35 require_once dirname(__FILE__) . '/autoload.php';
36
37
38
39 // Plugin version
40 if (!defined('FBOX_VERSION'))
41 {
42 define('FBOX_VERSION', '1.1.9');
43 }
44
45 // Plugin License type (free/pro)
46 if (!defined('FBOX_LICENSE_TYPE'))
47 {
48
49 $type = 'lite';
50
51
52 define('FBOX_LICENSE_TYPE', $type);
53 }
54
55 // PHP Minimm Version
56 if (!defined('FBOX_MINIMUM_PHP_VERSION'))
57 {
58 define('FBOX_MINIMUM_PHP_VERSION', '5.6.40');
59 }
60
61
62 // Go Pro URL
63 if (!defined('FBOX_GO_PRO_URL'))
64 {
65 define('FBOX_GO_PRO_URL', 'https://www.fireplugins.com/firebox/upgrade');
66 }
67
68
69 // Plugin Documentation URL
70 if (!defined('FBOX_DOC_URL'))
71 {
72 // TODO: define final URL
73 define('FBOX_DOC_URL', 'https://www.fireplugins.com/docs/firebox');
74 }
75
76 // Plugin Folder Path
77 if (!defined('FBOX_PLUGIN_DIR'))
78 {
79 define('FBOX_PLUGIN_DIR', plugin_dir_path(__FILE__));
80 }
81
82 // Layouts Folder Path
83 if (!defined('FBOX_LAYOUTS_DIR'))
84 {
85 define('FBOX_LAYOUTS_DIR', plugin_dir_path(__FILE__) . 'Inc/Core/Layouts/');
86 }
87
88 // Admin Layouts Folder Path
89 if (!defined('FBOX_ADMIN_LAYOUTS_DIR'))
90 {
91 define('FBOX_ADMIN_LAYOUTS_DIR', plugin_dir_path(__FILE__) . 'Inc/Core/Layouts/admin/');
92 }
93
94 // Public Layouts Folder Path
95 if (!defined('FBOX_PUBLIC_LAYOUTS_DIR'))
96 {
97 define('FBOX_PUBLIC_LAYOUTS_DIR', plugin_dir_path(__FILE__) . 'Inc/Core/Layouts/public/');
98 }
99
100 // Plugin Folder URL
101 if (!defined('FBOX_PLUGIN_URL'))
102 {
103 define('FBOX_PLUGIN_URL', plugin_dir_url(__FILE__));
104 }
105
106 // Media Plugin Folder URL
107 if (!defined('FBOX_MEDIA_URL'))
108 {
109 define('FBOX_MEDIA_URL', plugin_dir_url(__FILE__) . 'media/');
110 }
111
112 // Admin Media Plugin Folder URL
113 if (!defined('FBOX_MEDIA_ADMIN_URL'))
114 {
115 define('FBOX_MEDIA_ADMIN_URL', plugin_dir_url(__FILE__) . 'media/admin/');
116 }
117
118 // Public Media Plugin Folder URL
119 if (!defined('FBOX_MEDIA_PUBLIC_URL'))
120 {
121 define('FBOX_MEDIA_PUBLIC_URL', plugin_dir_url(__FILE__) . 'media/public/');
122 }
123
124 // Plugin Root File
125 if (!defined('FBOX_PLUGIN_BASE_FILE'))
126 {
127 define('FBOX_PLUGIN_BASE_FILE', __FILE__);
128 }
129
130 // Plugin Root Folder
131 if (!defined('FBOX_BASE_FOLDER'))
132 {
133 define('FBOX_BASE_FOLDER', dirname(__FILE__));
134 }
135
136 // Minimum PHP version check
137 if (!version_compare(PHP_VERSION, FBOX_MINIMUM_PHP_VERSION, '>='))
138 {
139 add_action('admin_notices', 'firebox_fail_php_version');
140 }
141 else
142 {
143 // Start Plugin
144 require_once dirname(__FILE__) . '/Inc/Core/Plugin.php';
145 firebox();
146 }
147
148 /**
149 * FireBox admin notice for minimum PHP version.
150 *
151 * Warning when the site doesn't have the minimum required PHP version.
152 *
153 * @return void
154 */
155 function firebox_fail_php_version()
156 {
157 $message = sprintf(fpframework()->_('FPF_PHP_VERSION_FAIL'), 'FireBox', FBOX_MINIMUM_PHP_VERSION);
158 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
159 echo wp_kses_post( $html_message );
160 }