elementor
/
includes
/
template-library
/
sources
/
admin-menu-items
/
editor-one-templates-menu.php
editor-one-templates-menu.php in Elementor Website Builder – more than just a page builder 4.0.2, at includes/template-library/sources/admin-menu-items/editor-one-templates-menu.php
| 1 | <?php |
| 2 | |
| 3 | namespace Elementor\Includes\TemplateLibrary\Sources\AdminMenuItems; |
| 4 | |
| 5 | use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Third_Level_Interface; |
| 6 | use Elementor\Modules\EditorOne\Classes\Menu_Config; |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; |
| 10 | } |
| 11 | |
| 12 | class Editor_One_Templates_Menu implements Menu_Item_Third_Level_Interface { |
| 13 | |
| 14 | public function get_capability(): string { |
| 15 | return 'edit_posts'; |
| 16 | } |
| 17 | |
| 18 | public function get_parent_slug(): string { |
| 19 | return Menu_Config::ELEMENTOR_MENU_SLUG; |
| 20 | } |
| 21 | |
| 22 | public function is_visible(): bool { |
| 23 | return true; |
| 24 | } |
| 25 | |
| 26 | public function get_label(): string { |
| 27 | return esc_html__( 'Templates', 'elementor' ); |
| 28 | } |
| 29 | |
| 30 | public function get_position(): int { |
| 31 | return 60; |
| 32 | } |
| 33 | |
| 34 | public function get_slug(): string { |
| 35 | return 'elementor-templates'; |
| 36 | } |
| 37 | |
| 38 | public function get_icon(): string { |
| 39 | return 'folder'; |
| 40 | } |
| 41 | |
| 42 | public function get_group_id(): string { |
| 43 | return Menu_Config::TEMPLATES_GROUP_ID; |
| 44 | } |
| 45 | |
| 46 | public function has_children(): bool { |
| 47 | return true; |
| 48 | } |
| 49 | } |
| 50 |