Function __global->css_compile

Definitions

sources/web_resources2.php

  • Compile a CSS file.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$active_theme ID_TEXT No No required parameter N/A N/A The theme the file is being loaded for
$theme ID_TEXT No No required parameter N/A N/A The theme the file is in
$c ID_TEXT No No required parameter N/A N/A Name of the CSS file
$full_path PATH No No required parameter N/A N/A Full path to the CSS file
$css_cache_path PATH No No required parameter N/A N/A Full path to where the cached CSS file will go
$minify boolean No No True N/A N/A Whether to also do minification

Preview

Code (PHP)

/**
 * Compile a CSS file.
 *
 * @param  ID_TEXT $active_theme The theme the file is being loaded for
 * @param  ID_TEXT $theme The theme the file is in
 * @param  ID_TEXT $c Name of the CSS file
 * @param  PATH $full_path Full path to the CSS file
 * @param  PATH $css_cache_path Full path to where the cached CSS file will go
 * @param  boolean $minify Whether to also do minification
 */

function css_compile(string $active_theme, string $theme, string $c, string $full_path, string $css_cache_path, bool $minify = true)