HomeHelpTrac

Changeset 14598


Ignore:
Timestamp:
11/02/10 23:54:19 (19 months ago)
Author:
Alexander Trofimov
Message:

Ticket #2270

Location:
trunk
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolTemplate.php

    r14505 r14598  
    981981 
    982982    /** 
     983     * Minify CSS  
     984     * 
     985     * @param string $s CSS string to minify 
     986     * @return string minified CSS string. 
     987     */ 
     988    function _minifyCss($s) {         
     989        require_once(BX_DIRECTORY_PATH_PLUGINS . 'minify/lib/Minify/CSS/Compressor.php');         
     990        return Minify_CSS_Compressor::process($s); 
     991    } 
     992 
     993    /** 
    983994     * Private callback function for CSS compiler. 
    984995     * 
     
    10401051        $sMethodWrap = '_wrapInTag' . $sUpcaseType; 
    10411052        $sMethodCompile = '_compile' . $sUpcaseType; 
     1053        $sMethodMinify = '_minify' . $sUpcaseType; 
    10421054 
    10431055        ksort($aFiles); 
     
    10631075            if(($sContent = $this->$sMethodCompile($aFile['path'], $aIncluded)) !== false) 
    10641076                $sResult .= $sContent; 
     1077 
     1078        if (method_exists($this, $sMethodMinify)) 
     1079            $sResult = $this->$sMethodMinify($sResult); 
    10651080 
    10661081        $mixedWriteResult = false; 
Note: See TracChangeset for help on using the changeset viewer.