Bug #14246 ยป 236.diff
t3lib/class.t3lib_pagerenderer.php (working copy) | ||
---|---|---|
$jsFooterFiles = '';
|
||
$noJS = FALSE;
|
||
|
||
// preRenderHook for possible manuipulation
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'])) {
|
||
$params = array (
|
||
... | ... | |
}
|
||
$jsLibs = $this->renderJsLibraries();
|
||
|
||
if ($this->compressCss || $this->compressJavascript) {
|
||
// do the file compression
|
||
$this->doCompress();
|
||
... | ... | |
$metaTags = implode(LF, $this->metaTags);
|
||
// remove ending slashes from static header block
|
||
// if the page is beeing rendered as html (not xhtml)
|
||
// and define variable $endingSlash for further use
|
||
if ($GLOBALS['TSFE']->xhtmlVersion) {
|
||
$endingSlash = ' /';
|
||
} else {
|
||
$this->metaCharsetTag = str_replace(' />', '>', $this->metaCharsetTag);
|
||
$this->baseUrlTag = str_replace(' />', '>', $this->baseUrlTag);
|
||
$this->shortcutTag = str_replace(' />', '>', $this->shortcutTag);
|
||
$endingSlash = '';
|
||
}
|
||
if (count($this->cssFiles)) {
|
||
foreach ($this->cssFiles as $file => $properties) {
|
||
$file = t3lib_div::resolveBackPath($file);
|
||
... | ... | |
$tag = '<link rel="' . $properties['rel'] . '" type="text/css" href="' .
|
||
htmlspecialchars($file) . '" media="' . $properties['media'] . '"' .
|
||
($properties['title'] ? ' title="' . $properties['title'] . '"' : '') .
|
||
' />';
|
||
$endingSlash . '>';
|
||
if ($properties['allWrap'] && strpos($properties['allWrap'], '|') !== FALSE) {
|
||
$tag = str_replace('|', $tag, $properties['allWrap']);
|
||
}
|
||
... | ... | |
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_pagerenderer.php']) {
|
||
include_once ($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_pagerenderer.php']);
|
||
}
|
||
?>
|
||
?>
|
typo3/sysext/cms/tslib/class.tslib_pagegen.php (working copy) | ||
---|---|---|
$pageRenderer->setTitle($titleTagContent);
|
||
}
|
||
$pageRenderer->addMetaTag('<meta name="generator" content="TYPO3 ' . TYPO3_branch . ' CMS" />');
|
||
// add ending slash only to documents rendered as xhtml
|
||
$endingSlash = $GLOBALS['TSFE']->xhtmlVersion ? ' /' : '';
|
||
$pageRenderer->addMetaTag('<meta name="generator" content="TYPO3 ' . TYPO3_branch . ' CMS"' . $endingSlash . '>');
|
||
$conf = $GLOBALS['TSFE']->pSetup['meta.'];
|
||
if (is_array($conf)) {
|
||
foreach ($conf as $theKey => $theValue) {
|
||
... | ... | |
if (strtolower($key) == 'refresh') {
|
||
$a = 'http-equiv';
|
||
}
|
||
$pageRenderer->addMetaTag('<meta ' . $a . '="' . $key . '" content="' . htmlspecialchars(trim($val)) . '" />');
|
||
$pageRenderer->addMetaTag('<meta ' . $a . '="' . $key . '" content="' . htmlspecialchars(trim($val)) . '"' . $endingSlash . '>');
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
var $fromTC = 0; // Means that everything is returned instead of only uid and label-field
|
||
}
|
||
?>
|
||
?>
|