__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Elementor\Core\Editor\Data\Globals;
use Elementor\Data\V2\Base\Controller as Controller_Base;
use Elementor\Data\V2\Base\Endpoint;
use Elementor\Plugin;
class Controller extends Controller_Base {
public function get_name() {
return 'globals';
}
public function register_endpoints() {
$this->register_endpoint( new Endpoints\Colors( $this ) );
$this->register_endpoint( new Endpoints\Typography( $this ) );
}
public function get_collection_params() {
// Does not have 'get_items' args (OPTIONS).
// Maybe TODO: try `$this->get_index_endpoint()->get_collection_params()`.
return [];
}
public function get_permission_callback( $request ) {
// Allow internal get global values. (e.g render global.css for a visitor)
if ( 'GET' === $request->get_method() && Plugin::$instance->data_manager_v2->is_internal() ) {
return true;
}
return current_user_can( 'edit_posts' );
}
protected function register_index_endpoint() {
$this->register_endpoint( new Endpoint\Index\AllChildren( $this ) );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| endpoints | Folder | 0750 |
|
|
| controller.php | File | 1.02 KB | 0640 |
|