Include just to allow page overrides, such as "article" for nieuws pages
(might affect Facebook, but seems a minor and mostly useless distinction).
At least silences Dareboost warnings about required Open Graph properties.
<?php if ($Article->image) { ?>
<meta property="og:image" content="https://<?= $_SERVER['HTTP_HOST'] . '/' . htmlspecialchars($Article->thumb('640x')) ?>" />
<?php } ?>
+ <meta property="og:type" content="<?= $Article->meta['og:type'] ?? 'website' ?>" />
<meta property="og:url" content="https://<?= $_SERVER['HTTP_HOST'] . '/' . htmlspecialchars($Article->link) ?>" />
</head>
<body>
}
if ($page and !is_numeric($page)) {
+ $Article->meta['og:type'] = 'article';
$edit = $User && $User->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL;
if ($edit) {
$Article->title = $edit;