| 1 |
<?php |
| 2 |
namespace Elementor\Modules\Apps; |
| 3 |
|
| 4 |
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page; |
| 5 |
use Elementor\Settings; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
class Admin_Menu_Apps implements Admin_Menu_Item_With_Page { |
| 12 |
|
| 13 |
public function is_visible() { |
| 14 |
return true; |
| 15 |
} |
| 16 |
|
| 17 |
public function get_parent_slug() { |
| 18 |
return Settings::PAGE_ID; |
| 19 |
} |
| 20 |
|
| 21 |
public function get_label() { |
| 22 |
return esc_html__( 'Apps', 'elementor' ); |
| 23 |
} |
| 24 |
|
| 25 |
public function get_page_title() { |
| 26 |
return esc_html__( 'Apps', 'elementor' ); |
| 27 |
} |
| 28 |
|
| 29 |
public function get_capability() { |
| 30 |
return 'manage_options'; |
| 31 |
} |
| 32 |
|
| 33 |
public function render() { |
| 34 |
Admin_Apps_Page::render(); |
| 35 |
} |
| 36 |
} |
| 37 |
|