2015-04-23 10:24:50 +02:00
|
|
|
<!DOCTYPE html>
|
2017-10-19 22:18:46 +02:00
|
|
|
<html class="no-js" lang="<?=$params['language'] ?>">
|
2015-04-23 10:24:50 +02:00
|
|
|
<head>
|
2017-10-19 21:20:58 +02:00
|
|
|
<title><?= $page['title']; ?> <?= ($page['title'] != $params['title'])? '- ' . $params['title'] : "" ?></title>
|
2017-11-07 22:39:34 +01:00
|
|
|
<?php //SEO meta tags...
|
2018-02-25 20:12:18 +01:00
|
|
|
if (array_key_exists('attributes', $page) && array_key_exists('description', $page['attributes'])) {
|
2017-11-07 22:39:34 +01:00
|
|
|
echo " <meta name=\"description\" content=\"{$page['attributes']['description']}\">\n";
|
|
|
|
} elseif (array_key_exists('tagline', $params)) {
|
|
|
|
echo " <meta name=\"description\" content=\"{$params['tagline']}\">\n";
|
|
|
|
}
|
2018-02-25 20:12:18 +01:00
|
|
|
if (array_key_exists('attributes', $page) && array_key_exists('keywords', $page['attributes'])) {
|
2017-11-07 22:39:34 +01:00
|
|
|
echo " <meta name=\"keywords\" content=\"{$page['attributes']['keywords']}\">\n";
|
|
|
|
}
|
2018-02-25 20:12:18 +01:00
|
|
|
if (array_key_exists('attributes', $page) && array_key_exists('author', $page['attributes'])) {
|
2017-11-07 22:39:34 +01:00
|
|
|
echo " <meta name=\"author\" content=\"{$page['attributes']['author']}\">\n";
|
|
|
|
} elseif (array_key_exists('author', $params)) {
|
|
|
|
echo " <meta name=\"author\" content=\"{$params['author']}\">\n";
|
|
|
|
}
|
|
|
|
?>
|
2015-04-23 10:24:50 +02:00
|
|
|
<meta charset="UTF-8">
|
2017-10-19 21:20:58 +02:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
2015-07-20 15:59:52 +02:00
|
|
|
<link rel="icon" href="<?= $params['theme']['favicon']; ?>" type="image/x-icon">
|
2017-10-19 21:20:58 +02:00
|
|
|
|
2015-04-23 10:24:50 +02:00
|
|
|
<!-- Mobile -->
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
2019-08-11 15:15:11 +02:00
|
|
|
<!-- JS -->
|
|
|
|
<script>document.documentElement.classList.remove('no-js');</script>
|
|
|
|
|
2015-04-23 10:24:50 +02:00
|
|
|
<!-- Font -->
|
2015-07-20 15:59:52 +02:00
|
|
|
<?php foreach ($params['theme']['fonts'] as $font) {
|
2017-10-19 21:20:58 +02:00
|
|
|
echo "<link href='$font' rel='stylesheet' type='text/css'>";
|
|
|
|
} ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
|
|
|
|
<!-- CSS -->
|
2015-07-20 15:59:52 +02:00
|
|
|
<?php foreach ($params['theme']['css'] as $css) {
|
2017-10-19 21:20:58 +02:00
|
|
|
echo "<link href='$css' rel='stylesheet' type='text/css'>";
|
|
|
|
} ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
|
2017-10-19 21:20:58 +02:00
|
|
|
<?php if ($params['html']['search']) { ?>
|
2019-09-18 23:16:35 +02:00
|
|
|
<!-- Search -->
|
|
|
|
<link href="<?= $base_url; ?>search/search.css" rel="stylesheet">
|
2017-10-19 21:20:58 +02:00
|
|
|
<?php } ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
</head>
|
2017-02-23 23:15:07 +01:00
|
|
|
<body class="<?= $params['html']['float'] ? 'with-float' : ''; ?> <?= $this->section('classes'); ?>">
|
2015-04-23 10:24:50 +02:00
|
|
|
<?= $this->section('content'); ?>
|
|
|
|
|
2015-07-20 15:59:52 +02:00
|
|
|
<?php
|
|
|
|
if ($params['html']['google_analytics']) {
|
|
|
|
$this->insert('theme::partials/google_analytics', ['analytics' => $params['html']['google_analytics'], 'host' => array_key_exists('host', $params) ? $params['host'] : '']);
|
|
|
|
}
|
|
|
|
if ($params['html']['piwik_analytics']) {
|
2015-07-19 16:36:34 +02:00
|
|
|
$this->insert('theme::partials/piwik_analytics', ['url' => $params['html']['piwik_analytics'], 'id' => $params['html']['piwik_analytics_id']]);
|
2015-07-20 15:59:52 +02:00
|
|
|
}
|
|
|
|
?>
|
2015-04-23 10:24:50 +02:00
|
|
|
|
|
|
|
<!-- JS -->
|
2015-07-20 15:59:52 +02:00
|
|
|
<?php foreach ($params['theme']['js'] as $js) {
|
|
|
|
echo '<script src="' . $js . '"></script>';
|
|
|
|
} ?>
|
2015-04-23 10:24:50 +02:00
|
|
|
|
2019-09-09 19:56:14 +02:00
|
|
|
<?php $this->insert('theme::partials/search_script', ['page' => $page, 'base_url' => $base_url]); ?>
|
2016-02-15 21:14:48 +01:00
|
|
|
|
2015-04-23 10:24:50 +02:00
|
|
|
</body>
|
|
|
|
</html>
|