/sources/css_and_js.php

Description
Classes
Class Description
JSMin
Functions
css_compile (line 136)

Compile a CSS file.

void css_compile (ID_TEXT $theme, ID_TEXT $c, PATH $fullpath, PATH $css_cache_path, [boolean $minify = true])
  • ID_TEXT $theme: The theme the file is in
  • ID_TEXT $c: Name of the CSS file
  • PATH $fullpath: Full path to the CSS file
  • PATH $css_cache_path: Full path to where the cached CSS file will go
  • boolean $minify: Whether to also do minification
css_inherit (line 29)

Inerit from a CSS file to create a string for a (possibly theme-gen) modified version of that file.

void css_inherit (ID_TEXT $css_file, ID_TEXT $theme, ?ID_TEXT $seed, boolean $dark)
  • ID_TEXT $css_file: Source CSS file
  • ID_TEXT $theme: Source theme
  • ?ID_TEXT $seed: Seed (NULL: do not re-seed)
  • boolean $dark: Whether to makeit dark
css_minify (line 659)

Minifies stylesheet definitions

  • return: Minified stylesheet definitions
string css_minify (string $v)
  • string $v: Stylesheet definitions as string
js_compile (line 96)

Compile a Javascript file.

void js_compile (ID_TEXT $j, PATH $js_cache_path, [boolean $minify = true])
  • ID_TEXT $j: Name of the JS file
  • PATH $js_cache_path: Full path to the JS file
  • boolean $minify: Whether to also do minification
js_minify (line 287)

Minimise the given Javascript

  • return: Minimised Javascript
string js_minify (string $js)
  • string $js: Javascript to minimise
_css_compile (line 183)

Return a specific compiled CSS file.

  • return: A pair: success status, The text of the compiled file
array _css_compile (string $theme, string $c, PATH $fullpath, [boolean $minify = true])
  • string $theme: Theme name
  • string $c: The CSS file required
  • PATH $fullpath: Full path to CSS file (file is in uncompiled Tempcode format)
  • boolean $minify: Whether to also do minification
_css_ocp_include (line 157)

preg_replace callback, to handle CSS file inclusion.

  • return: A pair: success status, The text of the compiled file
array _css_ocp_include (array $matches)
  • array $matches: Matched variables

Documentation generated on Sun, 02 Jan 2011 23:12:40 +0000 by phpDocumentor 1.4.3