Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function cssFile($css_file, $widget_id = '') {
- $css = '';
- $css .= file_get_contents($css_file);
- $css = preg_replace('!/*[^*]**+([^/][^*]**+)*/!', '', $css);
- $css = str_replace(': ', ':', $css);
- $css = str_replace(array("n", "t", ' ', ' ', ' '), '', $css);
- return $css;
- }
- private function cssFile($css_file, $id = '') {
- $css = '';
- $css .= file_get_contents($css_file);
- $css = preg_replace('!/*[^*]**+([^/][^*]**+)*/!', '', $css);
- $css = str_replace(
- array(": ", "n", "t", ", ", " ", "}#", " {", "}.", ",.", " > "),
- array(':', "","", ",", "", "}#".$id."#", "{", "}#".$id.".", ",#".$id.".", ">")
- , $css);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement