editor-wrapper.php
1 year ago
global.php
11 months ago
hotkeys.php
11 months ago
library-layout.php
11 months ago
navigator.php
11 months ago
panel-elements.php
1 year ago
panel.php
11 months ago
repeater.php
1 year ago
responsive-bar.php
1 year ago
templates.php
11 months ago
editor-wrapper.php
49 lines
| 1 | <?php |
| 2 | namespace Elementor; |
| 3 | |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | exit; // Exit if accessed directly. |
| 6 | } |
| 7 | |
| 8 | global $wp_version; |
| 9 | |
| 10 | $body_classes = [ |
| 11 | 'elementor-editor-active', |
| 12 | 'wp-version-' . str_replace( '.', '-', $wp_version ), |
| 13 | ]; |
| 14 | |
| 15 | if ( is_rtl() ) { |
| 16 | $body_classes[] = 'rtl'; |
| 17 | } |
| 18 | |
| 19 | if ( ! Plugin::$instance->role_manager->user_can( 'design' ) ) { |
| 20 | $body_classes[] = 'elementor-editor-content-only'; |
| 21 | } |
| 22 | |
| 23 | $notice = Plugin::$instance->editor->notice_bar->get_notice(); |
| 24 | ?> |
| 25 | <!DOCTYPE html> |
| 26 | <html <?php language_attributes(); ?>> |
| 27 | <head> |
| 28 | <meta charset="utf-8" /> |
| 29 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 30 | <title><?php printf( esc_html__( 'Edit "%s" with Elementor', 'elementor' ), esc_html( get_the_title() ) ); ?></title> |
| 31 | <?php wp_head(); ?> |
| 32 | <script> |
| 33 | var ajaxurl = '<?php Utils::print_unescaped_internal_string( admin_url( 'admin-ajax.php', 'relative' ) ); ?>'; |
| 34 | </script> |
| 35 | </head> |
| 36 | <body class="<?php echo esc_attr( implode( ' ', $body_classes ) ); ?>"> |
| 37 | <?php |
| 38 | if ( isset( $body_file_path ) ) { |
| 39 | include $body_file_path; |
| 40 | } |
| 41 | ?> |
| 42 | <?php |
| 43 | wp_footer(); |
| 44 | /** This action is documented in wp-admin/admin-footer.php */ |
| 45 | do_action( 'admin_print_footer_scripts' ); |
| 46 | ?> |
| 47 | </body> |
| 48 | </html> |
| 49 |