protected function getStyleCss(array $tag_frag, $test_for_css = true)
    {
        if (empty($tag_frag['style_css'])) {
            return ''; // Not possible; no CSS code.
        }
        if ($test_for_css && !$this->isStyleTagFragCss($tag_frag)) {
            return ''; // This tag does not contain CSS.
        }
        return trim($tag_frag['style_css']); // CSS code.
    }
protected function getStyleCss(array $tag_frag, $test_for_css = true)
    {
        if (empty($tag_frag['style_css'])) {
            return ''; // Not possible; no CSS code.
        }
        if ($test_for_css && !$this->isStyleTagFragCss($tag_frag)) {
            return ''; // This tag does not contain CSS.
        }
        return trim($tag_frag['style_css']); // CSS code.
    }
protected function getStyleCss ( array $ tag_frag , $ test_for_css = true ) { if ( empty ( $ tag_frag [ 'style_css' ] ) ) { return '' ; // Not possible; no CSS code. } if ( $ test_for_css && ! $ this -> isStyleTagFragCss ( $ tag_frag ) ) { return '' ; // This tag does not contain CSS. } return trim ( $ tag_frag [ 'style_css' ] ) ; // CSS code. }
Get style CSS from a CSS tag fragment.

@since 140417 Initial release.

@param array $tag_frag     A CSS tag fragment.
@param bool  $test_for_css Defaults to a TRUE value.
If TRUE, we will test tag fragment to make sure it's CSS.

@return string The style CSS code (if possible); else an empty string.
Get style CSS from a CSS tag fragment .