| 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 __( 'Elementor', 'elementor' ) . ' | ' . get_the_title(); ?></title> |
| 31 |
<?php wp_head(); ?> |
| 32 |
<script> |
| 33 |
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>'; |
| 34 |
</script> |
| 35 |
</head> |
| 36 |
<body class="<?php echo 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 __( '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 echo sprintf( $notice['message'], $notice['action_url'] ); ?></div> |
| 62 |
<div id="elementor-notice-bar__action"><a href="<?php echo $notice['action_url']; ?>" target="_blank"><?php echo $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 |
|