| @@ 56-63 (lines=8) @@ | ||
| 53 | return ''; |
|
| 54 | } |
|
| 55 | ||
| 56 | if ($type === 'css' && $optimize) { |
|
| 57 | ||
| 58 | $result = '<style type="text/css">'; |
|
| 59 | $result .= $this->_collectAssetsContent($files, $type); |
|
| 60 | $result .= '</style>'; |
|
| 61 | return $result; |
|
| 62 | ||
| 63 | } |
|
| 64 | ||
| 65 | if ($type === 'js' && $optimize) { |
|
| 66 | ||
| @@ 65-72 (lines=8) @@ | ||
| 62 | ||
| 63 | } |
|
| 64 | ||
| 65 | if ($type === 'js' && $optimize) { |
|
| 66 | ||
| 67 | $result = '<script>'; |
|
| 68 | $result .= $this->_collectAssetsContent($files, $type); |
|
| 69 | $result .= '</script>'; |
|
| 70 | return $result; |
|
| 71 | ||
| 72 | } |
|
| 73 | ||
| 74 | foreach ($files AS $file) { |
|
| 75 | $result .= sprintf($pattern, $file) . "\n"; |
|