38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Немного странный и нуждающийся в переделке лейаут для печати.
|
|
*/
|
|
?><!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="/css/font-ubuntu.css" />
|
|
<?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>
|