|
@@ 81-85 (lines=5) @@
|
| 78 |
|
// Bail if there are no styles to be printed |
| 79 |
|
if( count( $styles ) === 0 ) return; |
| 80 |
|
|
| 81 |
|
foreach( $styles as $style ) |
| 82 |
|
{ |
| 83 |
|
$css = file_get_contents( $style['path'] ); |
| 84 |
|
$compiled_css .= $this->compile_css( $css, $this->callbacks[$style['handle']] )."\n"; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
echo "<style id=\"wp-dynamic-css\">\n"; |
| 88 |
|
include 'style.phtml'; |
|
@@ 102-106 (lines=5) @@
|
| 99 |
|
$compiled_css = ''; |
| 100 |
|
$styles = array_filter($this->stylesheets, array( $this, 'filter_external' ) ); |
| 101 |
|
|
| 102 |
|
foreach( $styles as $style ) |
| 103 |
|
{ |
| 104 |
|
$css = file_get_contents( $style['path'] ); |
| 105 |
|
$compiled_css .= $this->compile_css( $css, $this->callbacks[$style['handle']] )."\n"; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
include 'style.phtml'; |
| 109 |
|
wp_die(); |