PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.0-dev2
Elementor Website Builder – more than just a page builder v3.35.0-dev2
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 4.0.7 All 451 releases
elementor / modules / pro-install / pro-install-menu-item.php

pro-install-menu-item.php in Elementor Website Builder – more than just a page builder 3.35.0-dev2, at modules/pro-install/pro-install-menu-item.php

44 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Modules\ProInstall;
3
4 use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
5 use Elementor\Settings;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 class Pro_Install_Menu_Item implements Admin_Menu_Item_With_Page {
12
13 private Connect_Page_Renderer $renderer;
14
15 public function __construct( Connect $connect, array $script_config ) {
16 $page_url = admin_url( 'admin.php?page=elementor-connect-account' );
17 $this->renderer = new Connect_Page_Renderer( $connect, $page_url, $script_config );
18 }
19
20 public function get_label(): string {
21 return esc_html__( 'Connect Account', 'elementor' );
22 }
23
24 public function get_page_title(): string {
25 return esc_html__( 'Connect Settings', 'elementor' );
26 }
27
28 public function get_capability(): string {
29 return 'manage_options';
30 }
31
32 public function get_parent_slug(): string {
33 return Settings::PAGE_ID;
34 }
35
36 public function is_visible(): bool {
37 return true;
38 }
39
40 public function render() {
41 $this->renderer->render();
42 }
43 }
44