Beispiel #1
0
function minify_filter_external_css()
{
    $styles = Styles::newInstance()->getStyles();
    foreach ($styles as $key => $url) {
        if (false === strpos($url, osc_base_url())) {
            unset($styles[$key]);
        } else {
            osc_remove_style($key);
        }
    }
    return $styles;
}
Beispiel #2
0
 /**
  * Get the css styles urls
  *
  * @deprecated deprecated since version 3.1
  */
 public function getStyles()
 {
     return Styles::newInstance()->getStyles();
 }
Beispiel #3
0
/**
 * Print the HTML tags to make the style load
 */
function osc_load_styles()
{
    Styles::newInstance()->printStyles();
}