| Server IP : 198.54.115.198 / Your IP : 216.73.216.142 Web Server : LiteSpeed System : Linux server192.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : seatpheu ( 1569) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/seatpheu/public_html/wp-content/plugins/elementor/app/modules/site-builder/connect/ |
Upload File : |
<?php
namespace Elementor\App\Modules\SiteBuilder\Connect;
use Elementor\Core\Common\Modules\Connect\Apps\Library;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class App extends Library {
const API_URL = 'https://my.elementor.com/api/v2/builder/';
public function get_title() {
return esc_html__( 'Site Builder', 'elementor' );
}
protected function get_slug() {
return 'site-builder';
}
protected function get_api_url() {
return static::API_URL;
}
public function get_home_screen() {
return $this->http_request(
'GET',
'website-planner/session/home-screen',
[
'headers' => [
'x-host-site-title' => (string) get_bloginfo( 'name' ),
'x-host-site-context' => (string) get_bloginfo( 'description' ),
],
],
[
'return_type' => static::HTTP_RETURN_TYPE_ARRAY,
]
);
}
}