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

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

77 lines 2.6 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 echo esc_html__( '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 <div id="elementor-editor-wrapper">
38 <div id="elementor-panel" class="elementor-panel"></div>
39 <div id="elementor-preview">
40 <div id="elementor-loading">
41 <div class="elementor-loader-wrapper">
42 <div class="elementor-loader">
43 <div class="elementor-loader-boxes">
44 <div class="elementor-loader-box"></div>
45 <div class="elementor-loader-box"></div>
46 <div class="elementor-loader-box"></div>
47 <div class="elementor-loader-box"></div>
48 </div>
49 </div>
50 <div class="elementor-loading-title"><?php echo esc_html__( 'Loading', 'elementor' ); ?></div>
51 </div>
52 </div>
53 <div id="elementor-responsive-bar"></div>
54 <div id="elementor-preview-responsive-wrapper" class="elementor-device-desktop elementor-device-rotate-portrait">
55 <div id="elementor-preview-loading">
56 <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
57 </div>
58 <?php if ( $notice ) { ?>
59 <div id="elementor-notice-bar">
60 <i class="eicon-elementor-square"></i>
61 <div id="elementor-notice-bar__message"><?php Utils::print_unescaped_internal_string( sprintf( $notice['message'], $notice['action_url'] ) ); ?></div>
62 <div id="elementor-notice-bar__action"><a href="<?php Utils::print_unescaped_internal_string( $notice['action_url'] ); ?>" target="_blank"><?php Utils::print_unescaped_internal_string( $notice['action_title'] ); ?></a></div>
63 <i id="elementor-notice-bar__close" class="eicon-close"></i>
64 </div>
65 <?php } // IFrame will be created here by the Javascript later. ?>
66 </div>
67 </div>
68 <div id="elementor-navigator"></div>
69 </div>
70 <?php
71 wp_footer();
72 /** This action is documented in wp-admin/admin-footer.php */
73 do_action( 'admin_print_footer_scripts' );
74 ?>
75 </body>
76 </html>
77