| Server IP : 87.229.120.60 / Your IP : 216.73.216.86 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/wp-content/plugins/elementor-pro/core/app/modules/kit-library/ |
Upload File : |
<?php
namespace ElementorPro\Core\App\Modules\KitLibrary;
use ElementorPro\Plugin;
use ElementorPro\License\API;
use Elementor\Core\Base\Module as BaseModule;
use ElementorPro\Core\Connect\Apps\Activate;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends BaseModule {
/**
* Get name.
*
* @access public
*
* @return string
*/
public function get_name() {
return 'kit-library';
}
private function set_kit_library_settings() {
$common = Plugin::elementor()->common;
$app = Plugin::elementor()->app;
$prev_settings = $app->get_settings( 'kit-library' );
// BC Support.
if ( ! $prev_settings || ! $common ) {
return;
}
/** @var Activate $activate */
$activate = $common->get_component( 'connect' )->get_app( 'activate' );
$app->set_settings( 'kit-library', array_merge( $prev_settings, [
'is_pro' => true,
'is_library_connected' => API::is_license_active(),
'library_connect_url' => $activate->get_admin_url( 'authorize' ),
'access_level' => API::get_library_access_level(),
] ) );
}
public function __construct() {
add_action( 'elementor/init', function () {
$this->set_kit_library_settings();
}, 13 /** after elementor core */ );
}
}