Added press. Added tracking.
This commit is contained in:
@ -268,7 +268,7 @@ function runPDF($folder, $texFilename, $filename, $title, $lang = "de", $debug =
|
||||
$uniqid = uniqid("PDF_");
|
||||
|
||||
copyFolder("$folder", "./tmp/$uniqid");
|
||||
copy("brochure.tex", "./tmp/$uniqid/brochure.tex");
|
||||
copy("$texFilename.tex", "./tmp/$uniqid/$texFilename.tex");
|
||||
|
||||
$generateUserSettings = function($lang, $title) {
|
||||
$babelPackages = [
|
||||
@ -296,8 +296,8 @@ function runPDF($folder, $texFilename, $filename, $title, $lang = "de", $debug =
|
||||
ensureDir(__DIR__ . "/pdf/$lang");
|
||||
|
||||
// Move output file to PDF directory.
|
||||
if (file_exists(__DIR__ . "/pdf/$lang/brochure.pdf")) unlink(__DIR__ . "/pdf/$lang/brochure.pdf");
|
||||
rename("brochure.pdf", __DIR__ . "/pdf/$lang/brochure.pdf");
|
||||
if (file_exists(__DIR__ . "/pdf/$lang/$filename.pdf")) unlink(__DIR__ . "/pdf/$lang/$filename.pdf");
|
||||
rename("$filename.pdf", __DIR__ . "/pdf/$lang/$filename.pdf");
|
||||
|
||||
# header("Content-type:application/pdf");
|
||||
# header("Content-Disposition:inline;filename=$filename");
|
||||
@ -324,7 +324,7 @@ function runPDF($folder, $texFilename, $filename, $title, $lang = "de", $debug =
|
||||
function printHTMLPage(string $title, string $contents, string $lang = "en", array $availableLangs = ["en"], string $descriptions = "") {
|
||||
|
||||
$output = '<!DOCTYPE html>
|
||||
<html lang="' . $lang . '">
|
||||
<html lang="' . $lang . '" id="' . str_replace(":", "", str_replace(" ", "", $title)) . '">
|
||||
<head>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
@ -378,6 +378,9 @@ function printHTMLPage(string $title, string $contents, string $lang = "en", arr
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="./js/tracking.js"></script>
|
||||
<noscript><p><img src="https://www.jrenslin.de/museum-digital/piwik/piwik.php?idsite=1" style="border:0;" alt="" ></p></noscript>
|
||||
|
||||
</html>';
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user