]> git.bts.cx Git - cx.git/blob - cx/templates/public/base.php
post metadata support (not very good yet)
[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
12 <?php if (isset($cx_post_meta)): ?>
13
14 <meta property="og:title" content="<?= cx_site_name(); ?>">
15 <meta property="og:type" content="article" />
16 <meta property="og:image" content="<?= $cx_post_meta->hero_image; ?>">
17 <meta property="og:url" content="<?= cx_url_site($cx_post_permalink); ?>">
18 <meta name="twitter:card" content="summary_large_image">
19 <meta name="twitter:image:alt" content="<?= $cx_post_meta->hero_image_alt; ?>">
20
21 <?php /*<meta property="og:description" content="Offering tour packages for individuals or groups.">
22 <meta property="og:site_name" content="<?= cx_site_name(); ?>">
23 <meta name="twitter:image:alt" content="Alt text for image">*/ ?>
24
25 <?php endif; ?>
26 </head>
27
28 <body>
29 <header>
30 <h1><?= cx_site_name(); ?></h1>
31 </header>
32
33 <nav>
34
35 <ul role="list">
36 <li><a href="<?= cx_url('/'); ?>">Home</a></li>
37
38 <?php foreach (cx_pages_get() as $page): ?>
39 <li><a href="<?= cx_url($page->url); ?>"><?= $page->title ?></a></li>
40 <?php endforeach; ?>
41 </ul>
42 </nav>
43
44 <?= cx_template_content(); ?>
45
46 <footer>
47
48 <div>
49 <p>&copy; <?= date('Y'); ?> <?= cx_site_name(); ?> &middot; <?= cx_site_author(); ?></p>
50 </div>
51
52 </footer>
53
54 </body>
55 </html>