pages/deals.php

Code: DEV-4043919F Size: 1.1 KB Lines: 17 Path: /home/prodconfig.wenesthosting.com/dev.solargroup.wenest.se/pages/deals.php

Task / Comment

Open report form
<?php
ob_start();
include __DIR__ . '/projekt.php';
$html = ob_get_clean();

$strip = '<div class="page-file-strip">'
    . '<a class="page-file-pill" href="/maps/view.php?file=pages/deals.php" target="_blank" rel="noreferrer">deals.php <span class="page-file-code">DEV-' . strtoupper(substr(sha1('pages/deals.php'), 0, 8)) . '</span></a>'
    . '<a class="page-file-pill" href="/maps/view.php?file=js/deals.js" target="_blank" rel="noreferrer">deals.js <span class="page-file-code">DEV-' . strtoupper(substr(sha1('js/deals.js'), 0, 8)) . '</span></a>'
    . '<a class="page-file-pill" href="/maps/view.php?file=css/deals.css" target="_blank" rel="noreferrer">deals.css <span class="page-file-code">DEV-' . strtoupper(substr(sha1('css/deals.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">Affärer<\/h1>/', '<h1 class="page-title">Deals</h1>', $html, 1);
$html = preg_replace('/<p class="page-subtitle">Pipeline och affärsöversikt<\/p>/', '<p class="page-subtitle">Pipeline and deal overview</p>', $html, 1);

echo $html;