<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}
global $wp_locale;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title><?php esc_html_e( 'Home - PDFDraft', 'pdfdraft' ); ?></title>
	<script type="text/javascript">
		addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
		var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
			pagenow = 'PDFDraft-Page',
			typenow = 'PDFDraft-Page',
			adminpage = 'admin.php',
			thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>',
			decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>',
			isRtl = <?php echo (int) is_rtl(); ?>;
	</script>
	<?php wp_head(); ?>
	<?php pdfdraft( \PDFDraft\App::class )->doAction( 'pdfdraft:header' ); ?>
</head>
<body class="PDFDraft-Page">
	<?php pdfdraft( \PDFDraft\App::class )->doAction( 'pdfdraft:body' ); ?>
	<div id="PDFDraft-Root">
		<?php require_once __DIR__ . '/loader.php'; ?>
	</div>
	<?php wp_footer(); ?>
	<?php pdfdraft( \PDFDraft\App::class )->doAction( 'pdfdraft:footer' ); ?>
</body>
</html>
