| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\ElementManager\AdminMenuItems; |
| 4 |
|
| 5 |
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page; |
| 6 |
use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Interface; |
| 7 |
use Elementor\Modules\EditorOne\Classes\Menu_Config; |
| 8 |
use Elementor\Modules\ElementManager\Module; |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
class Editor_One_Elements_Manager_Menu implements Menu_Item_Interface, Admin_Menu_Item_With_Page { |
| 15 |
|
| 16 |
public function get_capability(): string { |
| 17 |
return 'manage_options'; |
| 18 |
} |
| 19 |
|
| 20 |
public function get_parent_slug(): string { |
| 21 |
return Menu_Config::ELEMENTOR_MENU_SLUG; |
| 22 |
} |
| 23 |
|
| 24 |
public function is_visible(): bool { |
| 25 |
return true; |
| 26 |
} |
| 27 |
|
| 28 |
public function get_label(): string { |
| 29 |
return esc_html__( 'Element Manager', 'elementor' ); |
| 30 |
} |
| 31 |
|
| 32 |
public function get_position(): int { |
| 33 |
return 20; |
| 34 |
} |
| 35 |
|
| 36 |
public function get_slug(): string { |
| 37 |
return Module::PAGE_ID; |
| 38 |
} |
| 39 |
|
| 40 |
public function get_group_id(): string { |
| 41 |
return Menu_Config::SYSTEM_GROUP_ID; |
| 42 |
} |
| 43 |
|
| 44 |
public function get_page_title() { |
| 45 |
return $this->get_label(); |
| 46 |
} |
| 47 |
|
| 48 |
public function render() { |
| 49 |
echo '<div class="wrap">'; |
| 50 |
echo '<h1 class="wp-heading-inline">' . esc_html__( 'Element Manager', 'elementor' ) . '</h1>'; |
| 51 |
echo '<div id="elementor-element-manager-wrap"></div>'; |
| 52 |
echo '</div>'; |
| 53 |
} |
| 54 |
} |
| 55 |
|