Skip to content

Commit 8bbfd0d

Browse files
author
Askupa Software
committed
Changed name to 'compiler'
1 parent 990317d commit 8bbfd0d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ body {
5757
}
5858
```
5959

60-
In the above example, the stylesheet will be automatically rendered and printed to the `<head>` of the document. The value of `$body_bg_color` will be replaced by the value of `get_theme_mod('body_bg_color')`.
60+
In the above example, the stylesheet will be automatically compiled and printed to the `<head>` of the document. The value of `$body_bg_color` will be replaced by the value of `get_theme_mod('body_bg_color')`.
6161

6262
Now, let's say that `get_theme_mod('body_bg_color')` returns the value `#fff`, then `my-style.css` will be compiled to:
6363

@@ -184,5 +184,5 @@ body {
184184
## TODO
185185

186186
* Add support for multiple value callback functions
187-
* Add support for loading the rendered CSS externally instead of printing to the document head
187+
* Add support for loading the compiled CSS externally instead of printing to the document head
188188
* Add support for caching

bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* WordPress Dynamic CSS
44
*
5-
* Render CSS using dynamic data from WordPress
5+
* Dynamic CSS compiler for WordPress
66
*
77
* @package wp-dynamic-css
88
* @author Askupa Software <[email protected]>
@@ -12,7 +12,7 @@
1212
* @wordpress-plugin
1313
* Plugin Name: WordPress Dynamic CSS
1414
* Plugin URI: https://github.com/askupasoftware/wp-dynamic-css
15-
* Description: Render CSS using dynamic data from WordPress
15+
* Description: Dynamic CSS compiler for WordPress
1616
* Version: 1.0.0
1717
* Author: Askupa Software
1818
* Author URI: http://www.askupasoftware.com

compiler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class DynamicCSSCompiler
2929
private static $instance;
3030

3131
/**
32-
* @var array The list of dynamic styles paths to render
32+
* @var array The list of dynamic styles paths to compile
3333
*/
3434
private $styles = array();
3535

@@ -54,11 +54,11 @@ public static function get_instance()
5454
*/
5555
public function init()
5656
{
57-
add_action( 'wp_print_styles', array( $this, 'print_rendered_style' ) );
57+
add_action( 'wp_print_styles', array( $this, 'print_compiled_style' ) );
5858
}
5959

6060
/**
61-
* Add a style path to the pool of styles to be rendered
61+
* Add a style path to the pool of styles to be compiled
6262
*
6363
* @param type $path The absolute path to the dynamic style
6464
*/
@@ -70,7 +70,7 @@ public function enqueue_style( $path )
7070
/**
7171
* Parse all styles in $this->styles and print them
7272
*/
73-
public function print_rendered_style()
73+
public function print_compiled_style()
7474
{
7575
ob_start();
7676
foreach( $this->styles as $style )
@@ -87,10 +87,10 @@ public function print_rendered_style()
8787
* corresponding values retrieved by applying the filter
8888
* wp_dynamic_css_get_variable_value.
8989
*
90-
* @param string $css A string containing dynamic CSS (pre-rendered CSS with
90+
* @param string $css A string containing dynamic CSS (pre-compiled CSS with
9191
* variables)
9292
* @uses wp_dynamic_css_get_variable_value filter
93-
* @return string The rendered CSS after converting the variables to their
93+
* @return string The compiled CSS after converting the variables to their
9494
* corresponding values
9595
*/
9696
public function parse_css( $css )

0 commit comments

Comments
 (0)