| @@ -19,8 +19,10 @@ | ||
| 19 | 19 | use FluentCart\App\Models\AttributeTerm; |
| 20 | 20 | use FluentCart\App\Models\AttributeGroup; |
| 21 | 21 | use FluentCart\App\Models\ShippingMethod; |
| 22 | 22 | use FluentCart\App\Modules\Tax\TaxModule; |
| 23 | +use FluentCart\App\Modules\FluentPlayer\FluentPlayerBridge; | |
| 24 | +use FluentCart\App\Modules\AdminFooter\AdminFooter; | |
| 23 | 25 | use FluentCart\App\Helpers\CurrenciesHelper; |
| 24 | 26 | use FluentCart\App\Services\Filter\TaxFilter; |
| 25 | 27 | use FluentCart\App\Services\Filter\OrderFilter; |
| 26 | 28 | use FluentCart\App\Services\Filter\LicenseFilter; |
| @@ -32,8 +34,9 @@ | ||
| 32 | 34 | use FluentCart\App\Services\Filter\OrderBumpFilter; |
| 33 | 35 | use FluentCart\App\Modules\Shipping\Services\Filter\ShippingClassFilter; |
| 34 | 36 | use FluentCart\App\Modules\Shipping\Services\Filter\ShippingZoneFilter; |
| 35 | 37 | use FluentCart\App\Modules\Integrations\AddOnModule; |
| 38 | +use FluentCart\App\Services\DateTime\DayjsFormatter; | |
| 36 | 39 | use FluentCart\App\Services\Translations\TransStrings; |
| 37 | 40 | use FluentCart\App\Services\Permission\PermissionManager; |
| 38 | 41 | use FluentCart\Database\DataBackfills; |
| 39 | 42 | use FluentCart\App\Modules\PaymentMethods\Core\GatewayManager; |
| @@ -49,8 +52,9 @@ | ||
| 49 | 52 | |
| 50 | 53 | if ($page == 'fluent-cart') { |
| 51 | 54 | |
| 52 | 55 | \FluentCart\App\Events\FirstTimePluginActivation::handle(); |
| 56 | + (new AdminFooter())->register(); | |
| 53 | 57 | add_action('admin_enqueue_scripts', function () { |
| 54 | 58 | Vite::enqueueStyle('fluent_cart_admin_app_css', |
| 55 | 59 | 'styles/tailwind/style.css', |
| 56 | 60 | ); |
| @@ -523,8 +527,9 @@ | ||
| 523 | 527 | $appConfig['version'] = FLUENTCART_VERSION; |
| 524 | 528 | $appConfig['permissions'] = PermissionManager::getUserPermissions(); |
| 525 | 529 | $appConfig['isProActive'] = App::isProActive(); |
| 526 | 530 | $appConfig['proVersion'] = defined('FLUENTCART_PRO_PLUGIN_VERSION') ? FLUENTCART_PRO_PLUGIN_VERSION : null; |
| 531 | + $appConfig['fluentPlayer'] = FluentPlayerBridge::adminAppConfig(); | |
| 527 | 532 | |
| 528 | 533 | $appConfig['logos'] = [ |
| 529 | 534 | 'dark' => Vite::getAssetUrl('images/logo/logo-full-dark.svg'), |
| 530 | 535 | 'light' => Vite::getAssetUrl('images/logo/logo-full.svg'), |
| @@ -594,9 +599,9 @@ | ||
| 594 | 599 | // POSTs data-backfills/run until done; endpoint requires manage_options |
| 595 | 600 | 'has_data_migrations' => $hasDataMigrations, |
| 596 | 601 | 'subscription_intervals' => Helper::getAvailableSubscriptionIntervalOptions(), |
| 597 | 602 | |
| 598 | - 'datei18' => TransStrings::dateTimeStrings(), | |
| 603 | + 'datei18' => DayjsFormatter::localizedStrings(), | |
| 599 | 604 | 'el_strings' => TransStrings::elStrings(), |
| 600 | 605 | 'wp_locale' => get_locale(), |
| 601 | 606 | 'is_full_name_required' => CheckoutFieldsSchema::isFullNameRequired(), |
| 602 | 607 | 'business_details' => [ |