| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\FloatingButtons\AdminMenuItems; |
| 4 |
|
| 5 |
use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Interface; |
| 6 |
use Elementor\Modules\EditorOne\Classes\Menu_Config; |
| 7 |
use Elementor\Modules\FloatingButtons\Module; |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
class Editor_One_Floating_Elements_Menu implements Menu_Item_Interface { |
| 14 |
|
| 15 |
public function get_capability(): string { |
| 16 |
return 'manage_options'; |
| 17 |
} |
| 18 |
|
| 19 |
public function get_parent_slug(): string { |
| 20 |
return Menu_Config::ELEMENTOR_MENU_SLUG; |
| 21 |
} |
| 22 |
|
| 23 |
public function is_visible(): bool { |
| 24 |
return true; |
| 25 |
} |
| 26 |
|
| 27 |
public function get_label(): string { |
| 28 |
return esc_html__( 'Floating Elements', 'elementor' ); |
| 29 |
} |
| 30 |
|
| 31 |
public function get_position(): int { |
| 32 |
return 40; |
| 33 |
} |
| 34 |
|
| 35 |
public function get_slug(): string { |
| 36 |
return Module::ADMIN_PAGE_SLUG_CONTACT; |
| 37 |
} |
| 38 |
|
| 39 |
public function get_group_id(): string { |
| 40 |
return Menu_Config::TEMPLATES_GROUP_ID; |
| 41 |
} |
| 42 |
} |
| 43 |
|