<?php
ob_start();
include __DIR__ . '/inkorg.php';
$html = ob_get_clean();
$strip = '<div class="page-file-strip">'
. '<a class="page-file-pill" href="/maps/view.php?file=pages/inbox.php" target="_blank" rel="noreferrer">inbox.php <span class="page-file-code">DEV-' . strtoupper(substr(sha1('pages/inbox.php'), 0, 8)) . '</span></a>'
. '<a class="page-file-pill" href="/maps/view.php?file=js/inbox.js" target="_blank" rel="noreferrer">inbox.js <span class="page-file-code">DEV-' . strtoupper(substr(sha1('js/inbox.js'), 0, 8)) . '</span></a>'
. '<a class="page-file-pill" href="/maps/view.php?file=css/inbox.css" target="_blank" rel="noreferrer">inbox.css <span class="page-file-code">DEV-' . strtoupper(substr(sha1('css/inbox.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">Inkorg<\/h1>/', '<h1 class="page-title">Inbox</h1>', $html, 1);
$html = preg_replace('/<p class="page-subtitle">Din e-post direkt i CRM:et<\/p>/', '<p class="page-subtitle">Your email directly in the CRM</p>', $html, 1);
echo $html;