| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.7 Free | |
| 4 | + * @version 2.1.4 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 © 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\Controllers; |
| @@ -34,11 +34,11 @@ | ||
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | 36 | public function addMedia() |
| 37 | 37 | { |
| 38 | - wp_register_script('firebox-react', FBOX_MEDIA_ADMIN_URL . 'js/vendor/react.production.min.js', [], FBOX_VERSION, true); | |
| 38 | + wp_register_script('firebox-react', 'https://unpkg.com/react@18/umd/react.production.min.js', [], FBOX_VERSION, true); | |
| 39 | 39 | wp_enqueue_script('firebox-react'); |
| 40 | - wp_register_script('firebox-react-dom', FBOX_MEDIA_ADMIN_URL . 'js/vendor/react-dom.production.min.js', [], FBOX_VERSION, true); | |
| 40 | + wp_register_script('firebox-react-dom', 'https://unpkg.com/react-dom@18/umd/react-dom.production.min.js', [], FBOX_VERSION, true); | |
| 41 | 41 | wp_enqueue_script('firebox-react-dom'); |
| 42 | 42 | |
| 43 | 43 | // load dashboard |
| 44 | 44 | wp_register_script( |
| @@ -58,27 +58,6 @@ | ||
| 58 | 58 | FPF_VERSION, |
| 59 | 59 | true |
| 60 | 60 | ); |
| 61 | 61 | wp_enqueue_script('fpf-geoip'); |
| 62 | - | |
| 63 | - // Load appropriate revenue attribution bundle based on plan | |
| 64 | - $this->loadRevenueAttributionBundle(); | |
| 65 | - } | |
| 66 | - | |
| 67 | - /** | |
| 68 | - * Load the appropriate revenue attribution bundle based on user's plan | |
| 69 | - */ | |
| 70 | - private function loadRevenueAttributionBundle() | |
| 71 | - { | |
| 72 | - $is_ra_plan = in_array(FBOX_LICENSE_PLAN, ['pro', 'growth']); | |
| 73 | - $bundle_name = $is_ra_plan ? 'revenue_attribution_pro' : 'revenue_attribution_basic'; | |
| 74 | - | |
| 75 | - wp_register_script( | |
| 76 | - $bundle_name, | |
| 77 | - FBOX_MEDIA_ADMIN_URL . 'js/blocks/' . $bundle_name . '.js', | |
| 78 | - ['firebox-dashboard'], | |
| 79 | - FBOX_VERSION, | |
| 80 | - true | |
| 81 | - ); | |
| 82 | - wp_enqueue_script($bundle_name); | |
| 83 | 62 | } |
| 84 | 63 | } |