Changeset 38322 in spip-zone for _plugins_/css_imbriques


Ignore:
Timestamp:
May 22, 2010, 11:07:07 AM (10 years ago)
Author:
arno@…
Message:

Minifier les CSS. (PageSpeed? aime.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/css_imbriques/css_imbriques_fonctions.php

    r34910 r38322  
    144144        }
    145145        */
     146       
     147       
     148        // Derniere passe: "minifier" les CSS
     149        $css = preg_replace(",\n,", "", $css);
     150        $css = preg_replace(",\t,", "", $css);
     151        $css = preg_replace(",\},", "}\n", $css);
    146152
    147153        return $css;
Note: See TracChangeset for help on using the changeset viewer.