// Do the Turbine magic $cssp->apply_plugins('before_glue', $plugin_list, $cssp->parsed); // Apply plugins for before glue // Set compression mode if (isset($cssp->parsed['global']['@turbine']['compress'][0])) { $compress = (bool) $cssp->parsed['global']['@turbine']['compress'][0]; } else { $compress = (bool) $cssp->config['compress']; } unset($cssp->parsed['global']['@turbine']); // Remove configuration @-rule $output = $cssp->glue($compress); // Glue css output $cssp->apply_plugins('before_output', $plugin_list, $output); // Apply plugins for before output $cssp->reset(); // Reset the parser // Add output to cache if ($cssp->config['debug_level'] == 0) { file_put_contents($cachedir . '/' . $cachefile, $output); } } else { // Server-side cache: read the cached version of the file $output = file_get_contents($cachedir . '/' . $cachefile); } // Add to final css $css .= $output; } } else { $cssp->report_error('Style file ' . $file . ' not found. Is the base path in config.php configured correctly?'); }