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