| 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 |
|