diff --git a/src/Site/BlockLayout/TechDocument.php b/src/Site/BlockLayout/TechDocument.php index b80d1f1..4c96c08 100644 --- a/src/Site/BlockLayout/TechDocument.php +++ b/src/Site/BlockLayout/TechDocument.php @@ -58,10 +58,11 @@ class TechDocument extends AbstractBlockLayout { $data = $block->getData(); $site_title = $block->getPage()->getSite()->getTitle(); + $site_url = null; $parsedown = new Parsedown(); # logo -> link to site page - $text = "\n"; + $text = "\n"; $text .= "\n# ".$site_title." ".$dir."\n"; $text .= "## Technical documentation\n"; $text .= "### Characteristics\n"; @@ -79,6 +80,17 @@ class TechDocument extends AbstractBlockLayout $html = $parsedown->setBreaksEnabled(true)->text($text); $mpdf = new \Mpdf\Mpdf(); + $mpdf->SetHTMLFooter(' + + + + + + +
{DATE j-m-Y}{PAGENO}/{nbpg}' + .$site_title + .''.$site_url.'' + .'
'); $mpdf->WriteHTML($html); $mpdf->Output($this->storage_dir.'/docs/'.$site_title.'.pdf', \Mpdf\Output\Destination::FILE); }