| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Includes\Settings\AdminMenuItems; |
| 4 |
|
| 5 |
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page; |
| 6 |
use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Third_Level_Interface; |
| 7 |
use Elementor\Modules\EditorOne\Classes\Menu_Config; |
| 8 |
use Elementor\Plugin; |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
class Editor_One_Settings_Menu implements Menu_Item_Third_Level_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_group_id(): string { |
| 29 |
return Menu_Config::EDITOR_GROUP_ID; |
| 30 |
} |
| 31 |
|
| 32 |
public function get_label(): string { |
| 33 |
return esc_html__( 'Settings', 'elementor' ); |
| 34 |
} |
| 35 |
|
| 36 |
public function get_position(): int { |
| 37 |
return 20; |
| 38 |
} |
| 39 |
|
| 40 |
public function get_slug(): string { |
| 41 |
return 'elementor-settings'; |
| 42 |
} |
| 43 |
|
| 44 |
public function get_icon(): string { |
| 45 |
return 'settings'; |
| 46 |
} |
| 47 |
|
| 48 |
public function has_children(): bool { |
| 49 |
return false; |
| 50 |
} |
| 51 |
|
| 52 |
public function get_page_title() { |
| 53 |
return $this->get_label(); |
| 54 |
} |
| 55 |
|
| 56 |
public function render() { |
| 57 |
Plugin::$instance->settings->display_settings_page(); |
| 58 |
} |
| 59 |
} |
| 60 |
|