public function get_css_content() {

        $csscontent = '';
        foreach ($this->get_css_files(false) as $type => $value) {
            foreach ($value as $identifier => $val) {
                if (is_array($val)) {
                    foreach ($val as $v) {
                        $csscontent .= file_get_contents($v) . "\n";
                    }
                } else {
                    if ($type === 'theme' && $identifier === self::SCSS_KEY) {
                        // We need the content from SCSS because this is the SCSS file from the theme.
                        if ($compiled = $this->get_css_content_from_scss(false)) {
                            $csscontent .= $compiled;
                        } else {
                            // The compiler failed so default back to any precompiled css that might
                            // exist.
                            $csscontent .= $this->get_precompiled_css_content();
                        }
                    } else if ($type === 'theme' && $identifier === $this->lessfile) {
                        // We need the content from LESS because this is the LESS file from the theme.
                        $csscontent .= $this->get_css_content_from_less(false);
                    } else {
                        $csscontent .= file_get_contents($val) . "\n";
                    }
                }
            }
        }
        $csscontent = $this->post_process($csscontent);
        $csscontent = core_minify::css($csscontent);

        return $csscontent;
    }
public function get_css_content() {

        $csscontent = '';
        foreach ($this->get_css_files(false) as $type => $value) {
            foreach ($value as $identifier => $val) {
                if (is_array($val)) {
                    foreach ($val as $v) {
                        $csscontent .= file_get_contents($v) . "\n";
                    }
                } else {
                    if ($type === 'theme' && $identifier === self::SCSS_KEY) {
                        // We need the content from SCSS because this is the SCSS file from the theme.
                        if ($compiled = $this->get_css_content_from_scss(false)) {
                            $csscontent .= $compiled;
                        } else {
                            // The compiler failed so default back to any precompiled css that might
                            // exist.
                            $csscontent .= $this->get_precompiled_css_content();
                        }
                    } else if ($type === 'theme' && $identifier === $this->lessfile) {
                        // We need the content from LESS because this is the LESS file from the theme.
                        $csscontent .= $this->get_css_content_from_less(false);
                    } else {
                        $csscontent .= file_get_contents($val) . "\n";
                    }
                }
            }
        }
        $csscontent = $this->post_process($csscontent);
        $csscontent = core_minify::css($csscontent);

        return $csscontent;
    }
public function get_css_content ( ) { $ csscontent = '' ; foreach ( $ this -> get_css_files ( false ) as $ type => $ value ) { foreach ( $ value as $ identifier => $ val ) { if ( is_array ( $ val ) ) { foreach ( $ val as $ v ) { $ csscontent .= file_get_contents ( $ v ) . "\n" ; } } else { if ( $ type === 'theme' && $ identifier === self :: SCSS_KEY ) { // We need the content from SCSS because this is the SCSS file from the theme. if ( $ compiled = $ this -> get_css_content_from_scss ( false ) ) { $ csscontent .= $ compiled ; } else { // The compiler failed so default back to any precompiled css that might // exist. $ csscontent .= $ this -> get_precompiled_css_content ( ) ; } } else if ( $ type === 'theme' && $ identifier === $ this -> lessfile ) { // We need the content from LESS because this is the LESS file from the theme. $ csscontent .= $ this -> get_css_content_from_less ( false ) ; } else { $ csscontent .= file_get_contents ( $ val ) . "\n" ; } } } } $ csscontent = $ this -> post_process ( $ csscontent ) ; $ csscontent = core_minify :: css ( $ csscontent ) ; return $ csscontent ; }
Get the whole css stylesheet for production mode.

NOTE: this method is not expected to be used from any addons.

@return string CSS markup compressed
Get the whole css stylesheet for production mode .