|
@@ 1057-1064 (lines=8) @@
|
| 1054 |
|
// Either associative array path=>path type=>type or numeric 0=>path 1=>type |
| 1055 |
|
// Otherwise, assume path is the first item |
| 1056 |
|
if (isset($file['type']) && in_array($file['type'], array('css', 'javascript', 'js'))) { |
| 1057 |
|
switch ($file['type']) { |
| 1058 |
|
case 'css': |
| 1059 |
|
$this->css($file['path'], $media); |
| 1060 |
|
break; |
| 1061 |
|
default: |
| 1062 |
|
$this->javascript($file['path']); |
| 1063 |
|
break; |
| 1064 |
|
} |
| 1065 |
|
$files[$index] = $file['path']; |
| 1066 |
|
} elseif (isset($file[1]) && in_array($file[1], array('css', 'javascript', 'js'))) { |
| 1067 |
|
switch ($file[1]) { |
|
@@ 1067-1074 (lines=8) @@
|
| 1064 |
|
} |
| 1065 |
|
$files[$index] = $file['path']; |
| 1066 |
|
} elseif (isset($file[1]) && in_array($file[1], array('css', 'javascript', 'js'))) { |
| 1067 |
|
switch ($file[1]) { |
| 1068 |
|
case 'css': |
| 1069 |
|
$this->css($file[0], $media); |
| 1070 |
|
break; |
| 1071 |
|
default: |
| 1072 |
|
$this->javascript($file[0]); |
| 1073 |
|
break; |
| 1074 |
|
} |
| 1075 |
|
$files[$index] = $file[0]; |
| 1076 |
|
} else { |
| 1077 |
|
$file = array_shift($file); |