page: track base head include
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 27 Oct 2018 15:43:16 +0000 (17:43 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 27 Oct 2018 15:54:35 +0000 (17:54 +0200)
Common parts of html headers, to be branded and customised per site.

head.inc.php [new file with mode: 0644]

diff --git a/head.inc.php b/head.inc.php
new file mode 100644 (file)
index 0000000..63621b5
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="nl">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width">
+       <!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script><![endif]-->
+<?php if (!empty($Place['image'])) { ?>
+       <meta property="og:image" content="<?= htmlspecialchars($Place['image']) ?>" />
+<?php } ?>
+</head>
+<body>