|
@@ 818-825 (lines=8) @@
|
| 815 |
|
} |
| 816 |
|
} |
| 817 |
|
|
| 818 |
|
foreach(array_diff_key($this->css,$this->blocked) as $file => $params) { |
| 819 |
|
$path = Convert::raw2xml($this->path_for_file($file)); |
| 820 |
|
if($path) { |
| 821 |
|
$media = (isset($params['media']) && !empty($params['media'])) |
| 822 |
|
? " media=\"{$params['media']}\"" : ""; |
| 823 |
|
$requirements .= "<link rel=\"stylesheet\" type=\"text/css\"{$media} href=\"$path\" />\n"; |
| 824 |
|
} |
| 825 |
|
} |
| 826 |
|
|
| 827 |
|
foreach(array_diff_key($this->customCSS, $this->blocked) as $css) { |
| 828 |
|
$requirements .= "<style type=\"text/css\">\n$css\n</style>\n"; |
|
@@ 901-907 (lines=7) @@
|
| 898 |
|
|
| 899 |
|
$response->addHeader('X-Include-JS', implode(',', $jsRequirements)); |
| 900 |
|
|
| 901 |
|
foreach(array_diff_key($this->css,$this->blocked) as $file => $params) { |
| 902 |
|
$path = $this->path_for_file($file); |
| 903 |
|
if($path) { |
| 904 |
|
$path = str_replace(',', '%2C', $path); |
| 905 |
|
$cssRequirements[] = isset($params['media']) ? "$path:##:$params[media]" : $path; |
| 906 |
|
} |
| 907 |
|
} |
| 908 |
|
|
| 909 |
|
$response->addHeader('X-Include-CSS', implode(',', $cssRequirements)); |
| 910 |
|
} |