| 1 |
<?php |
| 2 |
namespace Elementor\Modules\ElementManager; |
| 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_App 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__( 'Element Manager', 'elementor' ); |
| 23 |
} |
| 24 |
|
| 25 |
public function get_page_title() { |
| 26 |
return esc_html__( 'Element Manager', 'elementor' ); |
| 27 |
} |
| 28 |
|
| 29 |
public function get_capability() { |
| 30 |
return 'manage_options'; |
| 31 |
} |
| 32 |
|
| 33 |
public function render() { |
| 34 |
echo '<div class="wrap">'; |
| 35 |
echo '<h3 class="wp-heading-inline">' . esc_html__( 'Element Manager', 'elementor' ) . '</h3>'; |
| 36 |
echo '<div id="elementor-element-manager-wrap"></div>'; |
| 37 |
echo '</div>'; |
| 38 |
} |
| 39 |
} |
| 40 |
|