From a9b85222c0c089344a17e5a666b6fb33405bd768 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 9 Jun 2020 22:07:06 +0200 Subject: [PATCH] NEW The global header of a website can also have dynamic content --- htdocs/core/lib/website2.lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/website2.lib.php b/htdocs/core/lib/website2.lib.php index 8675e71ba7b..77f159512ff 100644 --- a/htdocs/core/lib/website2.lib.php +++ b/htdocs/core/lib/website2.lib.php @@ -202,14 +202,16 @@ function dolSavePageContent($filetpl, Website $object, WebsitePage $objectpage) } $tplcontent .= ''."\n"; } - // Add manifest.json on homepage + // Add manifest.json. Do we have to add it only on home page ? $tplcontent .= 'use_manifest) { print \'\'."\n"; } ?>'."\n"; $tplcontent .= ''."\n"; + // Add js $tplcontent .= ''."\n"; $tplcontent .= ''."\n"; $tplcontent .= ''."\n"; + // Add headers $tplcontent .= ''."\n"; - $tplcontent .= '/ims\', \'\', file_get_contents(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")); ?>'."\n"; + $tplcontent .= ''."\n"; $tplcontent .= ''."\n"; $tplcontent .= preg_replace('/<\/?html>/ims', '', $objectpage->htmlheader)."\n"; $tplcontent .= ''."\n";