PluginProbe
Elementor Website Builder – more than just a page builder / 4.2.2
Elementor Website Builder – more than just a page builder v4.2.2
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 / includes / editor-templates / editor-wrapper.php

editor-wrapper.php in Elementor Website Builder – more than just a page builder 4.2.2, at includes/editor-templates/editor-wrapper.php

53 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;
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(
31 /* translators: %s: Page title. */
32 esc_html__( 'Edit "%s" with Elementor', 'elementor' ),
33 esc_html( get_the_title() )
34 ); ?></title>
35 <?php wp_head(); ?>
36 <script>
37 var ajaxurl = '<?php Utils::print_unescaped_internal_string( admin_url( 'admin-ajax.php', 'relative' ) ); ?>';
38 </script>
39 </head>
40 <body class="<?php echo esc_attr( implode( ' ', $body_classes ) ); ?>">
41 <?php
42 if ( isset( $body_file_path ) ) {
43 include $body_file_path;
44 }
45 ?>
46 <?php
47 wp_footer();
48 /** This action is documented in wp-admin/admin-footer.php */
49 do_action( 'admin_print_footer_scripts' );
50 ?>
51 </body>
52 </html>
53