# windpress/3.0.11/src/Integration/GreenShift/Main.php

WindPress – Tailwind CSS integration for WordPress, version 3.0.11. 43 lines.

- Page: https://pluginprobe.com/plugins/windpress/3.0.11/code/src/Integration/GreenShift/Main.php
- Raw: https://pluginprobe.com/plugins/windpress/3.0.11/raw/src/Integration/GreenShift/Main.php
- Modified: 2024-09-07T03:14:44+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/windpress/3.0.11/code/src/Integration/GreenShift/Main.php#L10-L20`.

```php
<?php

/*
 * This file is part of the WindPress package.
 *
 * (c) Joshua Gugun Siagian <suabahasa@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
declare (strict_types=1);
namespace WindPress\WindPress\Integration\GreenShift;

use WindPress\WindPress\Integration\IntegrationInterface;
use WindPress\WindPress\Utils\Config;
/**
 * Tested with GreenShift version 9.4
 * @author Joshua Gugun Siagian <suabahasa@gmail.com>
 */
class Main implements IntegrationInterface
{
    public function __construct()
    {
        \add_filter('f!windpress/core/cache:compile.providers', fn(array $providers): array => $this->register_provider($providers));
        if ($this->is_enabled()) {
            (new \WindPress\WindPress\Integration\GreenShift\Compile())();
        }
    }
    public function get_name() : string
    {
        return 'greenshift';
    }
    public function is_enabled() : bool
    {
        return (bool) \apply_filters('f!windpress/integration/greenshift:enabled', Config::get(\sprintf('integration.%s.enabled', $this->get_name()), \true));
    }
    public function register_provider(array $providers) : array
    {
        $providers[] = ['id' => $this->get_name(), 'name' => \__('GreenShift', 'windpress'), 'description' => \__('The GreenShift integration. It requires the Gutenberg/Block Editor integration enabled.', 'windpress'), 'callback' => fn() => [], 'enabled' => $this->is_enabled(), 'meta' => ['experimental' => \true]];
        return $providers;
    }
}

```
