| 1 |
<?php |
| 2 |
namespace Elementor\Core\App\Modules\KitLibrary\Connect; |
| 3 |
|
| 4 |
use Elementor\App\Modules\KitLibrary\Connect\Kit_Library as Kit_Library_Connect; |
| 5 |
use Elementor\Core\Common\Modules\Connect\Apps\Library; |
| 6 |
use Elementor\Plugin; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly |
| 10 |
} |
| 11 |
|
| 12 |
/** |
| 13 |
* This App class exists for backwards compatibility with 3rd parties. |
| 14 |
* |
| 15 |
* @deprecated 3.8.0 |
| 16 |
*/ |
| 17 |
class Kit_Library extends Library { |
| 18 |
|
| 19 |
/** |
| 20 |
* @deprecated 3.8.0 |
| 21 |
*/ |
| 22 |
public function is_connected() { |
| 23 |
/** @var Kit_Library_Connect $kit_library */ |
| 24 |
$kit_library = Plugin::$instance->common->get_component( 'connect' )->get_app( 'kit-library' ); |
| 25 |
|
| 26 |
return $kit_library && $kit_library->is_connected(); |
| 27 |
} |
| 28 |
} |
| 29 |
|