<?php
ob_start();
include __DIR__ . '/kalender.php';
$html = ob_get_clean();
$strip = '<div class="page-file-strip">'
. '<a class="page-file-pill" href="/maps/view.php?file=pages/calendar.php" target="_blank" rel="noreferrer">calendar.php <span class="page-file-code">DEV-' . strtoupper(substr(sha1('pages/calendar.php'), 0, 8)) . '</span></a>'
. '<a class="page-file-pill" href="/maps/view.php?file=js/calendar.js" target="_blank" rel="noreferrer">calendar.js <span class="page-file-code">DEV-' . strtoupper(substr(sha1('js/calendar.js'), 0, 8)) . '</span></a>'
. '<a class="page-file-pill" href="/maps/view.php?file=css/calendar.css" target="_blank" rel="noreferrer">calendar.css <span class="page-file-code">DEV-' . strtoupper(substr(sha1('css/calendar.css'), 0, 8)) . '</span></a>'
. '</div>';
$html = preg_replace('/(<p class="page-subtitle">.*?<\/p>)/s', '$1' . $strip, $html, 1);
$html = preg_replace('/<h1 class="page-title">Kalender<\/h1>/', '<h1 class="page-title">Calendar</h1>', $html, 1);
$html = preg_replace('/<p class="page-subtitle">Din Google Kalender — bädda in genom att ange din e-post<\/p>/', '<p class="page-subtitle">Your calendar and callbacks tied to your login</p>', $html, 1);
echo $html;