|
@@ 222-231 (lines=10) @@
|
| 219 |
|
* @param array $themes List of themes |
| 220 |
|
* @return string Path to resolved CSS file (relative to base dir) |
| 221 |
|
*/ |
| 222 |
|
public function findThemedCSS($name, $themes) { |
| 223 |
|
if(substr($name, -4) !== '.css') $name .= '.css'; |
| 224 |
|
|
| 225 |
|
$filename = $this->findThemedResource("css/$name", $themes); |
| 226 |
|
if($filename === null) { |
| 227 |
|
$filename = $this->findThemedResource($name, $themes); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
return $filename; |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
/** |
| 234 |
|
* Resolve themed javascript path |
|
@@ 244-253 (lines=10) @@
|
| 241 |
|
* @param array $themes List of themes |
| 242 |
|
* @return string Path to resolved javascript file (relative to base dir) |
| 243 |
|
*/ |
| 244 |
|
public function findThemedJavascript($name, $themes) { |
| 245 |
|
if(substr($name, -3) !== '.js') $name .= '.js'; |
| 246 |
|
|
| 247 |
|
$filename = $this->findThemedResource("javascript/$name", $themes); |
| 248 |
|
if($filename === null) { |
| 249 |
|
$filename = $this->findThemedResource($name, $themes); |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
return $filename; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
/** |
| 256 |
|
* Resolve a themed resource |