public function addContentElementsCSS ($strBuffer='', $objTemplate=null)
	{
		foreach (array('CSS', 'SCSS' , 'LESS') as $strType)
		{
			if ($GLOBALS['TL_CTB_' . $strType] == '')
			{
				continue;
			}

			$strKey = substr(md5($strType . $GLOBALS['TL_CTB_CSS'] . $GLOBALS['TL_CTB_SCSS'] . $GLOBALS['TL_CTB_LESS']), 0, 12);
			$strPath = 'assets/css/' . $strKey . '.' . strtolower($strType);
			
			// Write to a temporary file in the assets folder
			if (!file_exists($strPath))
			{
				$objFile = new File($strPath, true);
				$objFile->write($GLOBALS['TL_CTB_' . $strType]);
				$objFile->close();
			}
				
			$strPath .= '|static';
			
			// add file path to TL_USER_CSS
			$GLOBALS['TL_USER_CSS'][] = $strPath;
		}

		return $strBuffer;
	}
public function addContentElementsCSS ($strBuffer='', $objTemplate=null)
	{
		foreach (array('CSS', 'SCSS' , 'LESS') as $strType)
		{
			if ($GLOBALS['TL_CTB_' . $strType] == '')
			{
				continue;
			}

			$strKey = substr(md5($strType . $GLOBALS['TL_CTB_CSS'] . $GLOBALS['TL_CTB_SCSS'] . $GLOBALS['TL_CTB_LESS']), 0, 12);
			$strPath = 'assets/css/' . $strKey . '.' . strtolower($strType);
			
			// Write to a temporary file in the assets folder
			if (!file_exists($strPath))
			{
				$objFile = new File($strPath, true);
				$objFile->write($GLOBALS['TL_CTB_' . $strType]);
				$objFile->close();
			}
				
			$strPath .= '|static';
			
			// add file path to TL_USER_CSS
			$GLOBALS['TL_USER_CSS'][] = $strPath;
		}

		return $strBuffer;
	}
public function addContentElementsCSS ( $ strBuffer = '' , $ objTemplate = null ) { foreach ( array ( 'CSS' , 'SCSS' , 'LESS' ) as $ strType ) { if ( $ GLOBALS [ 'TL_CTB_' . $ strType ] == '' ) { continue ; } $ strKey = substr ( md5 ( $ strType . $ GLOBALS [ 'TL_CTB_CSS' ] . $ GLOBALS [ 'TL_CTB_SCSS' ] . $ GLOBALS [ 'TL_CTB_LESS' ] ) , 0 , 12 ) ; $ strPath = 'assets/css/' . $ strKey . '.' . strtolower ( $ strType ) ; // Write to a temporary file in the assets folder if ( ! file_exists ( $ strPath ) ) { $ objFile = new File ( $ strPath , true ) ; $ objFile -> write ( $ GLOBALS [ 'TL_CTB_' . $ strType ] ) ; $ objFile -> close ( ) ; } $ strPath .= '|static' ; // add file path to TL_USER_CSS $ GLOBALS [ 'TL_USER_CSS' ] [ ] = $ strPath ; } return $ strBuffer ; }
Adds CSS created in content elements templates to the TL_USER_CSS global

@param string   $strBuffer
@param Template $objTemplate

@return string
Adds CSS created in content elements templates to the TL_USER_CSS global