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

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