-
-
Save kaystrobach/2dfc16f49eeb0c6a4b6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* add Stylesheets for outer frame | |
*/ | |
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preHeaderRenderHook'][] = 'EXT:beskin/Classes/Hook/PreHeaderRenderHook.php:Tx_beskin_Be_PreHeaderRenderHook->main'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Tx_beskin_Be_PreHeaderRenderHook { | |
function main($arg) { | |
/** @var \t3lib_PageRenderer $pagerenderer*/ | |
$pagerenderer = $arg['pageRenderer']; | |
$extConfigs = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['beskin']); | |
$paths = array (); | |
if(t3lib_div::getFileAbsFileName($extConfigs['cssFile'])) { | |
$paths['cssFile'] = t3lib_div::getFileAbsFileName($extConfigs['cssFile']); | |
$paths = t3lib_div::removePrefixPathFromList($paths,PATH_site); | |
$pagerenderer->addCssFile('../' . $paths['cssFile']); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment