<?php
ob_start();
include __DIR__ . '/leverantorer.php';
$html = ob_get_clean();
$strip = '<div class="page-file-strip">'
. '<a class="page-file-pill" href="/maps/view.php?file=pages/suppliers.php" target="_blank" rel="noreferrer">suppliers.php <span class="page-file-code">DEV-' . strtoupper(substr(sha1('pages/suppliers.php'), 0, 8)) . '</span></a>'
. '<a class="page-file-pill" href="/maps/view.php?file=js/suppliers.js" target="_blank" rel="noreferrer">suppliers.js <span class="page-file-code">DEV-' . strtoupper(substr(sha1('js/suppliers.js'), 0, 8)) . '</span></a>'
. '<a class="page-file-pill" href="/maps/view.php?file=css/suppliers.css" target="_blank" rel="noreferrer">suppliers.css <span class="page-file-code">DEV-' . strtoupper(substr(sha1('css/suppliers.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" style="margin-bottom:2px">Leverantörer<\/h1>/', '<h1 class="page-title" style="margin-bottom:2px">Suppliers</h1>', $html, 1);
$html = preg_replace('/<p class="page-subtitle" style="margin:0">Materialleverantörer och artikelkatalog<\/p>/', '<p class="page-subtitle" style="margin:0">Suppliers and article catalog</p>', $html, 1);
$html = str_replace('+ Ny leverantör', '+ New supplier', $html);
echo $html;