| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.13 Free | |
| 4 | + * @version 3.0.1 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 © 2025 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 |
| @@ -127,9 +127,15 @@ | ||
| 127 | 127 | * @var Log |
| 128 | 128 | */ |
| 129 | 129 | public $log; |
| 130 | 130 | |
| 131 | - | |
| 131 | + /** | |
| 132 | + * PHP Scripts | |
| 133 | + * | |
| 134 | + * @var PHPScripts | |
| 135 | + */ | |
| 136 | + public $phpscripts; | |
| 137 | + #PRO-END | |
| 132 | 138 | |
| 133 | 139 | /** |
| 134 | 140 | * Translations cache |
| 135 | 141 | * |
| @@ -200,13 +206,11 @@ | ||
| 200 | 206 | * @return void |
| 201 | 207 | */ |
| 202 | 208 | public function admin_init() |
| 203 | 209 | { |
| 210 | + | |
| 204 | 211 | new \FPFramework\Admin\Includes\UpgradeProModal($this->plugin_slug, $this->plugin_name); |
| 205 | - | |
| 206 | 212 | |
| 207 | - new \FireBox\Core\Admin\Includes\UpgradeToPlanModal(); | |
| 208 | - | |
| 209 | 213 | |
| 210 | 214 | // Admin |
| 211 | 215 | $this->admin = new Admin(); |
| 212 | 216 | |
| @@ -222,10 +226,8 @@ | ||
| 222 | 226 | public function preFlight() |
| 223 | 227 | { |
| 224 | 228 | // loads text domain |
| 225 | 229 | add_action('plugins_loaded', [$this, 'loadTextdomain'], 10); |
| 226 | - | |
| 227 | - | |
| 228 | 230 | } |
| 229 | 231 | |
| 230 | 232 | /** |
| 231 | 233 | * Ensures only one instance of the plugin class is loaded or can be loaded |
| @@ -269,18 +271,12 @@ | ||
| 269 | 271 | |
| 270 | 272 | // Log |
| 271 | 273 | $this->log = new Log(); |
| 272 | 274 | |
| 273 | - new API\API(); | |
| 274 | 275 | |
| 275 | - | |
| 276 | 276 | |
| 277 | 277 | // Register Custom Post Type |
| 278 | 278 | new \FireBox\Core\Admin\Includes\Cpts\Firebox(); |
| 279 | - | |
| 280 | - // Keep the campaign-derived caches (box list, "session conditions in use" | |
| 281 | - // flag) in sync with campaign writes | |
| 282 | - \FireBox\Core\Helpers\BoxHelper::registerCacheInvalidation(); | |
| 283 | 279 | |
| 284 | 280 | // Renderer |
| 285 | 281 | $this->renderer = new Renderer(FBOX_LAYOUTS_DIR); |
| 286 | 282 | |
| @@ -303,10 +299,8 @@ | ||
| 303 | 299 | new \FireBox\Core\Analytics\Ajax(); |
| 304 | 300 | |
| 305 | 301 | // Track |
| 306 | 302 | $this->track = new Track(); |
| 307 | - | |
| 308 | - | |
| 309 | 303 | |
| 310 | 304 | // Usage Tracking |
| 311 | 305 | $usageTracking = new \FireBox\Core\UsageTracking\SendUsage(); |
| 312 | 306 | $usageTracking->maybeStart(); |