43 lines
855 B
PHP
43 lines
855 B
PHP
<?php
|
|
namespace Elementor\Includes\Settings\AdminMenuItems;
|
|
|
|
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
|
|
use Elementor\Settings;
|
|
use Elementor\Tools;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
class Tools_Menu_Item implements Admin_Menu_Item_With_Page {
|
|
|
|
private $tools_page;
|
|
|
|
public function __construct( Tools $tools_page ) {
|
|
$this->tools_page = $tools_page;
|
|
}
|
|
|
|
public function is_visible() {
|
|
return true;
|
|
}
|
|
|
|
public function get_parent_slug() {
|
|
return Settings::PAGE_ID;
|
|
}
|
|
|
|
public function get_label() {
|
|
return esc_html__( 'Tools', 'elementor' );
|
|
}
|
|
|
|
public function get_page_title() {
|
|
return esc_html__( 'Tools', 'elementor' );
|
|
}
|
|
|
|
public function get_capability() {
|
|
return Tools::CAPABILITY;
|
|
}
|
|
|
|
public function render() {
|
|
$this->tools_page->display_settings_page();
|
|
}
|
|
}
|