Свойство | Type | Description | |
---|---|---|---|
$compiler | Compiler arguments. | ||
$current_fragment | Set during in fragments loop. | ||
$dir | Cache dir. | ||
$url | Cache url. |
Méthode | Description | |
---|---|---|
__construct ( array $args ) | Constructor. | |
add_content_media_query ( $content ) | Wrap content in query. | |
cache_file ( ) | Create cached file. | |
cache_file_exist ( ) | Check if cached file exists. | |
combine_fragments ( ) | Combine fragments content. | |
css_path_to_url ( $matches, $base_is_path = false ) | replace_css_url() callback. | |
enqueue_file ( ) | Enqueue cached file. | |
filesystem ( ) | Initialise WP Filsystem. | |
filesystem_method ( ) | Set WP Filsystem method. | |
format_content ( $content ) | Formal CSS, LESS and JS content. | |
get_extension ( ) | Get file extension. | |
get_function_content ( ) | Get function content. | |
get_internal_content ( ) | Get internal file content. | |
get_remote_content ( ) | Get external file content. | |
get_url ( ) | Get cached file url. | |
is_function ( $fragment ) | Is the fragement a function. | |
kill ( ) | Kill it :( | |
maybe_make_dir ( ) | Make directory. | |
replace_css_url ( $content ) | Replace CSS url shortcuts with a valid url. | |
report ( ) | Send report. | |
set_filname ( ) | Set class filname. | |
set_fragments ( ) | Set class fragments. | |
strip_whitespace ( $content ) | Minify CSS. |
public __construct ( array $args ) | ||
$args | array | Setting arguments. |
public add_content_media_query ( $content ) |
public css_path_to_url ( $matches, $base_is_path = false ) |
public replace_css_url ( $content ) |