aboutsummaryrefslogtreecommitdiffstats
path: root/views/base.php
blob: 9e9e39249d1436da4272c174422a345db8ee3502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8">
    <!-- Generated on <?php echo $this->e($generatedOn); ?> -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $this->e($blogTitle); ?> - <?php echo $this->e($pageTitle); ?></title>
    <link rel="stylesheet" type="text/css" href="<?php echo $this->e($requestRoot); ?>css/simple.css">
</head>
<body>
<header>
        <h1><?php echo $this->e($blogTitle); ?></h1>
<?php if ('' !== $blogDescription) { ?>
        <h2><?php echo $this->e($blogDescription); ?></h2>
<?php } ?>
<nav>
<?php foreach ($pagesList as $p) { ?>
<?php if ($p['fileName'] === $activePage) { ?>
                <a href="<?php echo $this->e($requestRoot); ?><?php echo $this->e($p['fileName']); ?>"><?php echo $this->e($p['title']); ?></a>
<?php } else { ?>
                <a href="<?php echo $this->e($requestRoot); ?><?php echo $this->e($p['fileName']); ?>"><?php echo $this->e($p['title']); ?></a>
<?php } ?>
<?php } ?>
</nav>
</header>
<main>
        <?php echo $this->section('content'); ?>
</main>

<footer>
        <p>&copy; <?php echo $this->e($currentYear); ?> <?php echo $this->e($blogAuthor); ?></p>
</footer>
</body>
</html>