<?php
global $settings, $config;
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title><?php echo \S::safeHTML(\S::forHTML($this->data['fileName']));?></title>
	<?php \FileRun\UI\CSS::insertLink();?>
	<link rel="stylesheet" href="<?php echo $this->url;?>/cropperjs/editor.css?v=<?php echo $settings->currentVersion;?>">
	<?php \FileRun\UI\JS::insertScripts(['ext', 'canvasToBlob', 'flow']);?>
	<script src="<?php echo $this->url;?>/app.js?v=<?php echo $settings->currentVersion;?>"></script>
	<script src="<?php echo $config['url']['root'];?>/?module=fileman&section=utils&page=translation.js&sec=<?php echo \S::forURL("Custom Actions: Image Editor")?>&lang=<?php echo \S::forURL(\FileRun\Lang::getCurrent())?>"></script>
	<script src="<?php echo $this->url;?>/cropperjs/cropper.min.js?v=<?php echo $settings->currentVersion;?>"></script>
	<script src="<?php echo $this->url;?>/caman.full.min.js?v=<?php echo $settings->currentVersion;?>"></script>
	<script>
		FR.vars = <?php echo json_encode($vars);?>
	</script>
</head>

<body id="theBODY" onload="FR.init()">
</body>
</html>