Function __global->_css_compile
Definitions
sources/web_resources2.php
- Return a specific compiled CSS file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
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 | string | No | No | required parameter | N/A | N/A | Theme name |
| $c | string | No | No | required parameter | N/A | N/A | The CSS file required |
| $full_path | PATH | No | No | required parameter | N/A | N/A | Full path to CSS file (file is in non-compiled Tempcode format) |
| $minify | boolean | No | No | True | N/A | N/A | Whether to also do minification |
Returns
- A pair: success status, The text of the compiled file
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Return a specific compiled CSS file.
*
* @param ID_TEXT $active_theme The theme the file is being loaded for
* @param string $theme Theme name
* @param string $c The CSS file required
* @param PATH $full_path Full path to CSS file (file is in non-compiled Tempcode format)
* @param boolean $minify Whether to also do minification
* @return array A pair: success status, The text of the compiled file
*/
function _css_compile(string $active_theme, string $theme, string $c, string $full_path, bool $minify = true) : array
* Return a specific compiled CSS file.
*
* @param ID_TEXT $active_theme The theme the file is being loaded for
* @param string $theme Theme name
* @param string $c The CSS file required
* @param PATH $full_path Full path to CSS file (file is in non-compiled Tempcode format)
* @param boolean $minify Whether to also do minification
* @return array A pair: success status, The text of the compiled file
*/
function _css_compile(string $active_theme, string $theme, string $c, string $full_path, bool $minify = true) : array

