<!DOCTYPE html>
<html lang="<?php echo $tpl['lang']; ?>">

<head>
	<title><?php echo $tpl['page_title'](); ?></title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<link rel="stylesheet" type="text/css" media="screen" title="style" href="<?php echo $tpl['gallery']['template']['path'](); ?>/style/style.css?<?php echo $tpl['version_key']; ?>">
</head>

<body>

<div id="gallery">
<div id="gallery_inner">
	<header>
		<div id="header_top">
			<div id="title">
				<h1><a href="<?php echo $tpl['link'](); ?>"><?php echo $tpl['gallery']['title'](); ?></a></h1>
			</div>
		</div>
	</header>
	<div id="content">
		<main>
			<p id="gallery_closed"><?php echo $tpl['format_text']($tpl['config']('gallery_closed_text')); ?></p>
		</main>
	</div>
</div>
<footer>
<?php if ($tpl['time']()) : ?>
	<p id="footer_time"><?php echo $tpl['time'](); ?></p>
<?php endif; ?>
	<p id="footer_system">
		<?php printf(__('Propulsé par %s'), '<a class="ex" href="' . $tpl['app']['website'] . '">' . $tpl['app']['name'] . '</a>'); ?>
	</p>
</footer>
<div id="debug">
<?php $tpl['print']('logs'); ?>
<?php $tpl['print']('errors'); ?>
<?php $tpl['print']('sql'); ?>
</div>
</div>

<div id="small_screen"></div>
</body>

</html>