| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | return (bool) apply_filters('f!windpress/integration/livecanvas:enabled', Config::get(sprintf('integration.%s.enabled', $this->get_name()), \true)); |
| 40 | 40 | } |
| 41 | 41 | public function register_provider(array $providers): array |
| 42 | 42 | { |
| 43 | - $providers[] = ['id' => $this->get_name(), 'name' => __('LiveCanvas', 'windpress'), 'description' => __('LiveCanvas integration', 'windpress'), 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\LiveCanvas\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'plugin', 'homepage' => 'https://livecanvas.com/?ref=4008', 'is_installed_active' => static function () { | |
| 43 | + $providers[] = ['id' => $this->get_name(), 'name' => __('LiveCanvas', 'windpress'), 'description' => __('LiveCanvas integration', 'windpress'), 'source_index' => 1, 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\LiveCanvas\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'plugin', 'homepage' => 'https://livecanvas.com/?ref=4008', 'is_installed_active' => static function () { | |
| 44 | 44 | $is = -1; |
| 45 | 45 | $is += Common::is_plugin_installed('LiveCanvas') ? 1 : 0; |
| 46 | 46 | $is += Common::is_plugin_active_by_name('LiveCanvas') ? 1 : 0; |
| 47 | 47 | return $is; |