| 1 |
<?php |
| 2 |
/** |
| 3 |
* Editor open layout. |
| 4 |
* |
| 5 |
* @package Depicter |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
|
| 12 |
global $wp_version; |
| 13 |
|
| 14 |
$body_classes = [ |
| 15 |
'depicter-editor-active', |
| 16 |
'wp-version-' . str_replace( '.', '-', $wp_version ), |
| 17 |
]; |
| 18 |
|
| 19 |
if ( is_rtl() ) { |
| 20 |
$body_classes[] = 'rtl'; |
| 21 |
} |
| 22 |
|
| 23 |
?> |
| 24 |
<!DOCTYPE html> |
| 25 |
<html <?php language_attributes(); ?>> |
| 26 |
<head> |
| 27 |
<meta charset="utf-8" /> |
| 28 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 29 |
<title><?php wp_title(); ?></title> |
| 30 |
<?php wp_head(); ?> |
| 31 |
<script>var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>';</script> |
| 32 |
</head> |
| 33 |
<body class="<?php echo \Averta\WordPress\Utility\Sanitize::attribute( implode( ' ', $body_classes ) ); ?>"> |
| 34 |
|
| 35 |
<?php |
| 36 |
\Depicter::layoutContent(); |
| 37 |
wp_footer(); |
| 38 |
do_action( 'admin_print_footer_scripts' ); |
| 39 |
?> |
| 40 |
</body> |
| 41 |
</html> |
| 42 |
|