@@ 228-237 (lines=10) @@ | ||
225 | * @param array $themes List of themes |
|
226 | * @return string Path to resolved CSS file (relative to base dir) |
|
227 | */ |
|
228 | public function findThemedCSS($name, $themes) |
|
229 | { |
|
230 | if (substr($name, -4) !== '.css') { |
|
231 | $name .= '.css'; |
|
232 | } |
|
233 | ||
234 | $filename = $this->findThemedResource("css/$name", $themes); |
|
235 | if ($filename === null) { |
|
236 | $filename = $this->findThemedResource($name, $themes); |
|
237 | } |
|
238 | ||
239 | return $filename; |
|
240 | } |
|
@@ 253-262 (lines=10) @@ | ||
250 | * @param array $themes List of themes |
|
251 | * @return string Path to resolved javascript file (relative to base dir) |
|
252 | */ |
|
253 | public function findThemedJavascript($name, $themes) |
|
254 | { |
|
255 | if (substr($name, -3) !== '.js') { |
|
256 | $name .= '.js'; |
|
257 | } |
|
258 | ||
259 | $filename = $this->findThemedResource("javascript/$name", $themes); |
|
260 | if ($filename === null) { |
|
261 | $filename = $this->findThemedResource($name, $themes); |
|
262 | } |
|
263 | ||
264 | return $filename; |
|
265 | } |