<!DOCTYPE html>
<html>
	<head>
		<title><?= App::getConfig('title') ?></title>
<?php if ($styles): ?>
<?php foreach ($styles as $style): ?>
		<link href="<?= $style ?>" media="all" rel="stylesheet" type="text/css" />
<?php endforeach; ?>
<?php endif; ?>
		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:400&subset=Cyrillic">
<?php if ($scripts): ?>
<?php foreach ($scripts as $script): ?>
		<script src="<?= $script ?>" type="text/javascript"></script>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($vars): ?>
		<script type="text/javascript">
<?php foreach ($vars as $varName => $var): ?>
			var <?= $varName ?> = '<?= $var ?>';
<?php endforeach; ?>
		</script>
<?php endif; ?>
	</head>
	<body>
		<h1>WikiPoints.ru</h1>
		<hr/>
		<?= isset($content) && !empty($content) ? $content : 'No content =(' ?>
		<script>
			window.onload = window.print();
		</script>
		<?= self::renderPartial('metrika.php', array(), true) ?>
		<?= self::renderPartial('ganalytics.php', array(), true) ?>
    </body>
</html>