TYPO3 API  SVNRelease
class.tx_templatehook.php
Go to the documentation of this file.
00001 <?php
00002 
00003 class tx_templatehook {
00004     function registerPngFix($params,$parent) {
00005             // handle stupid IE6
00006         $userAgent = t3lib_div::getIndpEnv('HTTP_USER_AGENT');
00007 
00008         if(!(strpos($userAgent, 'MSIE 6') === false)
00009         && strpos($userAgent, 'Opera') === false
00010         && strpos($userAgent, 'MSIE 7') === false) {
00011                 //make sure we match IE6 but not Opera or IE7
00012             $files = t3lib_div::getFilesInDir(PATH_typo3 . 'sysext/t3skin/stylesheets/ie6', 'css', 0, 1);
00013             foreach($files as $fileName) {
00014                 $params['pageRenderer']->addCssFile($parent->backPath . 'sysext/t3skin/stylesheets/ie6/' . $fileName);
00015             }
00016 
00017                 // load files of spriteGenerator for ie6
00018             $files = t3lib_div::getFilesInDir(PATH_site . t3lib_SpriteManager::$tempPath . 'ie6/', 'css', 0, 1);
00019             foreach($files as $fileName) {
00020                 $params['pageRenderer']->addCssFile($parent->backPath . '../' . t3lib_SpriteManager::$tempPath . 'ie6/' . $fileName);
00021             }
00022 
00023         }
00024     }
00025 }
00026 
00027 ?>