PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.1
Elementor Website Builder – more than just a page builder v3.25.1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / core / common / modules / connect / connect-menu-item.php

connect-menu-item.php in Elementor Website Builder – more than just a page builder 3.25.1, at core/common/modules/connect/connect-menu-item.php

59 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Core\Common\Modules\Connect;
3
4 use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
5 use Elementor\Core\Common\Modules\Connect\Apps\Base_App;
6 use Elementor\Plugin;
7 use Elementor\Settings;
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 class Connect_Menu_Item implements Admin_Menu_Item_With_Page {
14
15 public function is_visible() {
16 return false;
17 }
18
19 public function get_parent_slug() {
20 return Settings::PAGE_ID;
21 }
22
23 public function get_label() {
24 return esc_html__( 'Connect', 'elementor' );
25 }
26
27 public function get_page_title() {
28 return esc_html__( 'Connect', 'elementor' );
29 }
30
31 public function get_capability() {
32 return 'edit_posts';
33 }
34
35 public function render() {
36 $apps = Plugin::$instance->common->get_component( 'connect' )->get_apps();
37 ?>
38 <style>
39 .elementor-connect-app-wrapper{
40 margin-bottom: 50px;
41 overflow: hidden;
42 }
43 </style>
44 <div class="wrap">
45 <?php
46
47 /** @var Base_App $app */
48 foreach ( $apps as $app ) {
49 echo '<div class="elementor-connect-app-wrapper">';
50 $app->render_admin_widget();
51 echo '</div>';
52 }
53
54 ?>
55 </div><!-- /.wrap -->
56 <?php
57 }
58 }
59