diff --git a/t3lib/class.t3lib_pagerenderer.php b/t3lib/class.t3lib_pagerenderer.php index 45c3935..ac59014 100644 --- a/t3lib/class.t3lib_pagerenderer.php +++ b/t3lib/class.t3lib_pagerenderer.php @@ -1475,6 +1475,37 @@ class t3lib_PageRenderer implements t3lib_Singleton { $jsInline = ''; } + // postRenderHook for possible manipulation + if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postProcess'])) { + $params = array ( + 'jsLibs' => &$this->jsLibs, + 'jsFiles' => &$this->jsFiles, + 'jsFooterFiles' => &$this->jsFooterFiles, + 'cssFiles' => &$this->cssFiles, + 'headerData' => &$this->headerData, + 'footerData' => &$this->footerData, + 'jsInline' => &$this->jsInline, + 'cssInline' => &$this->cssInline, + 'xmlPrologAndDocType' => &$this->xmlPrologAndDocType, + 'htmlTag' => &$this->htmlTag, + 'headTag' => &$this->headTag, + 'charSet' => &$this->charSet, + 'metaCharSet' => &$this->metaCharSet, + 'inlineComments' => &$this->inlineComments, + 'baseUrl' => &$this->baseUrl, + 'favIcon' => &$this->favIcon, + 'titleTag' => &$this->titleTag, + 'title' => &$this->title, + 'metaTags' => &$this->metaTags, + 'jsFooterInline' => &$this->jsFooterInline, + 'jsFooterLibs' => &$this->jsFooterLibs, + 'bodyContent' => &$this->bodyContent, + ); + foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postProcess'] as $hook) { + t3lib_div::callUserFunction($hook, $params, $this); + } + } + $markerArray = array( 'XMLPROLOG_DOCTYPE' => $this->xmlPrologAndDocType, 'HTMLTAG' => $this->htmlTag, @@ -1487,15 +1518,15 @@ class t3lib_PageRenderer implements t3lib_Singleton { 'CSS_INLINE' => $cssInline, 'JS_INLINE' => $jsInline, 'JS_INCLUDE' => $jsFiles, - 'JS_LIBS' => $jsLibs, + 'JS_LIBS' => $jsLibs, 'TITLE' => $this->title ? str_replace('|', htmlspecialchars($this->title), $this->titleTag) : '', 'META' => $metaTags, 'HEADERDATA' => $this->headerData ? implode(LF, $this->headerData) : '', 'FOOTERDATA' => $this->footerData ? implode(LF, $this->footerData) : '', - 'JS_LIBS_FOOTER' => $jsFooterLibs, + 'JS_LIBS_FOOTER' => $jsFooterLibs, 'JS_INCLUDE_FOOTER' => $jsFooterFiles, 'JS_INLINE_FOOTER' => $jsFooterInline, - 'BODY' => $this->bodyContent, + 'BODY' => $this->bodyContent, ); $markerArray = array_map('trim', $markerArray);