# fluent-cart/1.6.4/app/Modules/FluentPlayer/FluentPlayerAdminAssets.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 33 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/FluentPlayer/FluentPlayerAdminAssets.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Modules/FluentPlayer/FluentPlayerAdminAssets.php
- Modified: 2026-09-11T13:28:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/FluentPlayer/FluentPlayerAdminAssets.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Modules\FluentPlayer;

use FluentCart\App\App;
use FluentCart\App\Vite;

/**
 * Enqueues the admin entry that pushes the Video tab into the Product Gallery
 * dialog. The tab shows even while FluentPlayer is inactive so it can offer
 * install/activate; the tab body branches on the localized config.
 */
class FluentPlayerAdminAssets
{
    const HANDLE = 'fluent_cart_fluent_player_gallery';

    public function register(): void
    {
        add_action('fluent_cart/loading_app', [$this, 'enqueue']);
    }

    public function enqueue(): void
    {
        $slug = App::getInstance()->config->get('app.slug');

        Vite::enqueueScript(
            self::HANDLE,
            'admin/Modules/Products/FluentPlayer/fluent-player-gallery.js',
            [$slug . '_global_admin_hooks']
        );
    }
}

```
