PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.2
Elementor Website Builder – more than just a page builder v4.0.2
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / modules / pro-install / editor-one-connect-account-menu-item.php

editor-one-connect-account-menu-item.php in Elementor Website Builder – more than just a page builder 4.0.2, at modules/pro-install/editor-one-connect-account-menu-item.php

69 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\ProInstall;
4
5 use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Interface;
6 use Elementor\Modules\EditorOne\Classes\Menu_Config;
7 use Elementor\Plugin;
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 class Editor_One_Connect_Account_Menu_Item implements Menu_Item_Interface {
14
15 private $connect;
16 private $script_config;
17
18 public function __construct( Connect $connect, array $script_config ) {
19 $this->connect = $connect;
20 $this->script_config = $script_config;
21 }
22
23 public function get_capability(): string {
24 return 'manage_options';
25 }
26
27 public function get_parent_slug(): string {
28 return Menu_Config::ELEMENTOR_MENU_SLUG;
29 }
30
31 public function is_visible(): bool {
32 return true;
33 }
34
35 public function get_label(): string {
36 return esc_html__( 'Connect Account', 'elementor' );
37 }
38
39 public function get_page_title(): string {
40 return esc_html__( 'Connect Settings', 'elementor' );
41 }
42
43 public function get_position(): int {
44 return 1000;
45 }
46
47 public function get_slug(): string {
48 return 'elementor-connect-account';
49 }
50
51 public function get_icon(): string {
52 return 'sync';
53 }
54
55 public function get_group_id(): string {
56 return Menu_Config::SYSTEM_GROUP_ID;
57 }
58
59 public function has_children(): bool {
60 return false;
61 }
62
63 public function render() {
64 $page_url = admin_url( 'admin.php?page=elementor-connect-account' );
65 $renderer = new Connect_Page_Renderer( $this->connect, $page_url, $this->script_config );
66 $renderer->render();
67 }
68 }
69