| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | return (bool) apply_filters('f!windpress/integration/timber:enabled', Config::get(sprintf('integration.%s.enabled', $this->get_name()), \true)); |
| 33 | 33 | } |
| 34 | 34 | public function register_provider(array $providers): array |
| 35 | 35 | { |
| 36 | - $providers[] = ['id' => $this->get_name(), 'name' => __('Timber', 'windpress'), 'description' => __('Timber integration', 'windpress'), 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\Timber\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'plugin', 'homepage' => 'https://upstatement.com/timber/?ref=windpress', 'is_installed_active' => static function () { | |
| 36 | + $providers[] = ['id' => $this->get_name(), 'name' => __('Timber', 'windpress'), 'description' => __('Timber integration', 'windpress'), 'source_index' => 1, 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\Timber\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'plugin', 'homepage' => 'https://upstatement.com/timber/?ref=jooosi', 'is_installed_active' => static function () { | |
| 37 | 37 | $is = -1; |
| 38 | 38 | $is += Common::is_plugin_installed('Timber') ? 1 : 0; |
| 39 | 39 | $is += Common::is_plugin_active_by_name('Timber') ? 1 : 0; |
| 40 | 40 | return $is; |