first commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
namespace Elementor\Modules\System_Info;
|
||||
|
||||
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
|
||||
use Elementor\Settings;
|
||||
use Elementor\Modules\System_Info\Module as System_Info_Page;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
class System_Info_Menu_Item implements Admin_Menu_Item_With_Page {
|
||||
|
||||
private $system_info_page;
|
||||
|
||||
public function __construct( System_Info_Page $system_info_page ) {
|
||||
$this->system_info_page = $system_info_page;
|
||||
}
|
||||
|
||||
public function is_visible() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function get_parent_slug() {
|
||||
return Settings::PAGE_ID;
|
||||
}
|
||||
|
||||
public function get_label() {
|
||||
return esc_html__( 'System Info', 'elementor' );
|
||||
}
|
||||
|
||||
public function get_page_title() {
|
||||
return esc_html__( 'System Info', 'elementor' );
|
||||
}
|
||||
|
||||
public function get_capability() {
|
||||
return $this->system_info_page->get_capability();
|
||||
}
|
||||
|
||||
public function render() {
|
||||
$this->system_info_page->display_page();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user