# fluent-cart/1.3.19/app/Services/Theme/AdminTheme.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.3.19. 27 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.3.19/code/app/Services/Theme/AdminTheme.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.3.19/raw/app/Services/Theme/AdminTheme.php
- Modified: 2025-10-14T16:36:46+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.3.19/code/app/Services/Theme/AdminTheme.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Services\Theme;

use FluentCart\App\App;

class AdminTheme
{
    public static function applyTheme()
    {
        if ('fluent-cart' === App::request()->get('page')) {
            add_action('admin_head', function () {
                ?>
                <script>
                    (function() {
                        const theme = localStorage.getItem('fcart_admin_theme');
        
                        if (theme) {
                            document.documentElement.classList.add(theme.split(':').pop());
                        }
                    })();
                </script>
                <?php
            });
        }
    }
}
```
