]> git.bts.cx Git - cx.git/blob - cx/templates/public/base.php
f5e96705717a3affa791166a1675b54b0d9b3213
[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
9 <?php if (isset($cx_post_title)): ?>
10 <title><?= cx_site_name(); ?> - <?= $cx_post_title; ?></title>
11 <?php else: ?>
12 <title><?= cx_site_name(); ?></title>
13 <?php endif; ?>
14
15 <link rel="stylesheet" href="<?= cx_url('/design/css/style.css') ?>">
16 <link rel="alternate" type="application/rss+xml" title="bts.cx" href="<?= cx_url('/feed/') ?>" />
17
18 <?php if (isset($cx_post_meta)): ?>
19
20 <meta property="og:title" content="<?= cx_site_name(); ?> - <?= $cx_post_title; ?>">
21 <meta property="og:type" content="article" />
22
23 <?php if (isset($cx_post_meta->hero_image)): ?>
24 <meta property="og:image" content="<?= $cx_post_meta->hero_image; ?>">
25 <?php endif; ?>
26
27 <meta property="og:url" content="<?= cx_url_site($cx_post_permalink); ?>">
28 <meta name="twitter:card" content="summary_large_image">
29
30 <?php if (isset($cx_post_meta->hero_image_alt)): ?>
31 <meta name="twitter:image:alt" content="<?= $cx_post_meta->hero_image_alt; ?>">
32 <?php endif; ?>
33
34 <?php /*<meta property="og:description" content="Offering tour packages for individuals or groups.">
35 <meta property="og:site_name" content="<?= cx_site_name(); ?>">
36 <meta name="twitter:image:alt" content="Alt text for image">*/ ?>
37
38 <?php endif; ?>
39 </head>
40
41 <body>
42 <header>
43 <h1><?= cx_site_name(); ?></h1>
44 </header>
45
46 <nav>
47
48 <ul role="list">
49 <li><a href="<?= cx_url('/'); ?>">Home</a></li>
50
51 <?php foreach (cx_pages_get() as $page): ?>
52 <li><a href="<?= cx_url($page->url); ?>"><?= $page->title ?></a></li>
53 <?php endforeach; ?>
54 </ul>
55 </nav>
56
57 <?= cx_template_content(); ?>
58
59 <footer>
60
61 <div>
62 <p>&copy; <?= date('Y'); ?> <?= cx_site_name(); ?> &middot; <?= cx_site_author(); ?></p>
63 </div>
64
65 </footer>
66
67 </body>
68 </html>