|
@@ 199-208 (lines=10) @@
|
| 196 |
|
* @param array $themes List of themes |
| 197 |
|
* @return string Path to resolved CSS file (relative to base dir) |
| 198 |
|
*/ |
| 199 |
|
public function findThemedCSS($name, $themes) { |
| 200 |
|
if(substr($name, -4) !== '.css') $name .= '.css'; |
| 201 |
|
|
| 202 |
|
$filename = $this->findThemedResource("css/$name", $themes); |
| 203 |
|
if($filename === null) { |
| 204 |
|
$filename = $this->findThemedResource($name, $themes); |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
return $filename; |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
/** |
| 211 |
|
* Resolve themed javascript path |
|
@@ 221-230 (lines=10) @@
|
| 218 |
|
* @param array $themes List of themes |
| 219 |
|
* @return string Path to resolved javascript file (relative to base dir) |
| 220 |
|
*/ |
| 221 |
|
public function findThemedJavascript($name, $themes) { |
| 222 |
|
if(substr($name, -3) !== '.js') $name .= '.js'; |
| 223 |
|
|
| 224 |
|
$filename = $this->findThemedResource("javascript/$name", $themes); |
| 225 |
|
if($filename === null) { |
| 226 |
|
$filename = $this->findThemedResource($name, $themes); |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
return $filename; |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
/** |
| 233 |
|
* Resolve a themed resource |