PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.0-dev1
Elementor Website Builder – more than just a page builder v3.28.0-dev1
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 / system-info / system-info-menu-item.php

system-info-menu-item.php in Elementor Website Builder – more than just a page builder 3.28.0-dev1, at modules/system-info/system-info-menu-item.php

44 lines 957 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Modules\System_Info;
3
4 use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
5 use Elementor\Settings;
6 use Elementor\Modules\System_Info\Module as System_Info_Page;
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 class System_Info_Menu_Item implements Admin_Menu_Item_With_Page {
13
14 private $system_info_page;
15
16 public function __construct( System_Info_Page $system_info_page ) {
17 $this->system_info_page = $system_info_page;
18 }
19
20 public function is_visible() {
21 return true;
22 }
23
24 public function get_parent_slug() {
25 return Settings::PAGE_ID;
26 }
27
28 public function get_label() {
29 return esc_html__( 'System Info', 'elementor' );
30 }
31
32 public function get_page_title() {
33 return esc_html__( 'System Info', 'elementor' );
34 }
35
36 public function get_capability() {
37 return $this->system_info_page->get_capability();
38 }
39
40 public function render() {
41 $this->system_info_page->display_page();
42 }
43 }
44