| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | return (bool) apply_filters('f!windpress/integration/elementor:enabled', Config::get(sprintf('integration.%s.enabled', $this->get_name()), \true)); |
| 36 | 36 | } |
| 37 | 37 | public function register_provider(array $providers): array |
| 38 | 38 | { |
| 39 | - $providers[] = ['id' => $this->get_name(), 'name' => __('Elementor', 'windpress'), 'description' => __('Elementor integration', 'windpress'), 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\Elementor\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'plugin', 'homepage' => 'https://be.elementor.com/visit/?bta=209150&brand=elementor', 'is_installed_active' => static function () { | |
| 39 | + $providers[] = ['id' => $this->get_name(), 'name' => __('Elementor', 'windpress'), 'description' => __('Elementor integration', 'windpress'), 'source_index' => 1, 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\Elementor\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'plugin', 'homepage' => 'https://be.elementor.com/visit/?bta=209150&brand=elementor', 'is_installed_active' => static function () { | |
| 40 | 40 | $is = -1; |
| 41 | 41 | $is += Common::is_plugin_installed('Elementor') ? 1 : 0; |
| 42 | 42 | $is += Common::is_plugin_active_by_name('Elementor') ? 1 : 0; |
| 43 | 43 | return $is; |