51 lines
2.0 KiB
PHP
51 lines
2.0 KiB
PHP
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
lang="ru"
|
|
prefix="og: http://ogp.me/ns#"
|
|
xmlns:fb="http://ogp.me/ns/fb#"
|
|
xmlns:og="http://ogp.me/ns#">
|
|
<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; ?>
|
|
|
|
<?php if ($scripts): ?>
|
|
<?php foreach ($scripts as $script): ?>
|
|
<script src="<?= $script ?>" type="text/javascript"></script>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($data['og']): ?>
|
|
<meta property="og:title" content="<?= $data['og']['title'] ?>" />
|
|
<meta property="og:description" content="<?= $data['og']['description'] ?>" />
|
|
<meta property="og:site_name" content="<?= $data['og']['site_name'] ?>" />
|
|
<meta property="og:type" content="<?= $data['og']['type'] ?>" />
|
|
<meta property="og:url" content="<?= $data['og']['url'] ?>" />
|
|
<meta property="og:image" content="<?= $data['og']['image'] ?>" />
|
|
<?php endif; ?>
|
|
|
|
<?php if ($vars): ?>
|
|
<script type="text/javascript">
|
|
<?php foreach ($vars as $varName => $var): ?>
|
|
var <?= $varName ?> = '<?= $var ?>';
|
|
<?php endforeach; ?>
|
|
</script>
|
|
<?php endif; ?>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<a href="/"><h1>WikiPoints</h1></a>
|
|
<a href="http://vk.com/wikipoints" target="_blank"><img src="/img/vk.png" width="24" height="24" style="margin: 0 0 10px 10px;" title="Сообщество в VK"/></a>
|
|
</div>
|
|
<?= isset($content) && !empty($content) ? $content : 'No content =(' ?>
|
|
<?= self::renderPartial('modals/about.php', array(), true) ?>
|
|
<?= self::renderPartial('modals/howToUse.php', array(), true) ?>
|
|
<?= self::renderPartial('metrika.php', array(), true) ?>
|
|
</body>
|
|
</html>
|