Files
wyczarujprezent.pl/modules/leoelements/includes/editor-templates/editor-wrapper.php
2024-10-28 22:14:22 +01:00

92 lines
2.9 KiB
PHP

<?php
/**
* 2007-2022 Leotheme
*
* NOTICE OF LICENSE
*
* LeoElements is module help you can build content for your shop
*
* DISCLAIMER
*
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2022 Leotheme
* @license http://leotheme.com - prestashop template provider
*/
namespace LeoElements;
use LeoElements\Leo_Helper;
if ( ! defined( '_PS_VERSION_' ) ) {
exit; // Exit if accessed directly.
}
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
$body_classes = [
'elementor-editor-active',
];
if ( Leo_Helper::is_rtl() ) {
$body_classes[] = 'rtl';
}
$notice = '';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo LEOELEMENTS_ASSETS_URL . 'images/favicon.ico'; ?>">
<link rel="shortcut icon" type="image/x-icon" href="<?php echo LEOELEMENTS_ASSETS_URL . 'images/favicon.ico'; ?>">
<title><?php echo Leo_Helper::__( 'LeoElements', 'elementor' ) . ' | ' . ( Leo_Helper::$post_title ? Leo_Helper::$post_title : '' ); ?></title>
<?php Leo_Helper::do_action( 'wp_head' ); ?>
<script>
var ajaxurl = '<?php echo Leo_Helper::get_ajax_editor(); ?>';
</script>
<?php echo Leo_Helper::get_fontupload_editor(); ?>
</head>
<body class="<?php echo implode( ' ', $body_classes ); ?>">
<div id="elementor-editor-wrapper">
<div id="elementor-panel" class="elementor-panel"></div>
<div id="elementor-preview">
<div id="elementor-loading">
<div class="elementor-loader-wrapper">
<div class="elementor-loader">
<div class="elementor-loader-boxes">
<div class="elementor-loader-box"></div>
<div class="elementor-loader-box"></div>
<div class="elementor-loader-box"></div>
<div class="elementor-loader-box"></div>
</div>
</div>
<div class="elementor-loading-title"><?php echo Leo_Helper::__( 'Loading', 'elementor' ); ?></div>
</div>
</div>
<div id="elementor-preview-responsive-wrapper" class="elementor-device-desktop elementor-device-rotate-portrait">
<div id="elementor-preview-loading">
<i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
</div>
<?php if ( $notice ) { ?>
<div id="elementor-notice-bar">
<i class="eicon-elementor-circle"></i>
<div id="elementor-notice-bar__message"><?php echo sprintf( $notice['message'], $notice['action_url'] ); ?></div>
<div id="elementor-notice-bar__action"><a href="<?php echo $notice['action_url']; ?>" target="_blank"><?php echo $notice['action_title']; ?></a></div>
<i id="elementor-notice-bar__close" class="eicon-close"></i>
</div>
<?php } // IFrame will be created here by the Javascript later. ?>
</div>
</div>
<div id="elementor-navigator"></div>
</div>
<?php
Leo_Helper::do_action( 'wp_footer' );
/** This action is documented in wp-admin/admin-footer.php */
Leo_Helper::do_action( 'admin_print_footer_scripts' );
?>
</body>
</html>