]> git.bts.cx Git - cx.git/blob - cx/templates/public/base.php
Initial commit
[cx.git] / cx / templates / public / base.php
1 <!DOCTYPE html>
2 <html lang="en">
3
4 <head>
5 <meta charset="UTF-8">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 <title><?= cx_site_name(); ?></title>
9 <link rel="stylesheet" href="<?= cx_url('/design/css/style.css') ?>">
10 <link rel="alternate" type="application/rss+xml" title="bts.cx" href="<?= cx_url('/feed/') ?>" />
11 </head>
12
13 <body>
14 <header>
15 <h1><?= cx_site_name(); ?></h1>
16 </header>
17
18 <nav>
19
20 <ul role="list">
21 <li><a href="<?= cx_url('/'); ?>">Home</a></li>
22
23 <?php foreach (cx_pages_get() as $page): ?>
24 <li><a href="<?= cx_url($page->url); ?>"><?= $page->title ?></a></li>
25 <?php endforeach; ?>
26 </ul>
27 </nav>
28
29 <?= cx_template_content(); ?>
30
31 <footer>
32
33 <div>
34 <p>&copy; <?= date('Y'); ?> <?= cx_site_name(); ?> &middot; <?= cx_site_author(); ?></p>
35 </div>
36
37 </footer>
38
39 </body>
40 </html>