@@ 323-335 (lines=13) @@ | ||
320 | $hrefs[$css] = $css; |
|
321 | } |
|
322 | break; |
|
323 | case 'template': |
|
324 | foreach ($cssArray as $css) { |
|
325 | if (is_array($css)) { |
|
326 | $this->ResolveCssHref($css, $type, $hrefs); |
|
327 | continue; |
|
328 | } |
|
329 | if (strpos($css, '://') !== false) { |
|
330 | $href = $css; |
|
331 | } else { |
|
332 | $href = $this->app->templatesPath . "/{$this->template->name}/css/{$css}"; |
|
333 | } |
|
334 | $hrefs[$href] = $href; |
|
335 | } |
|
336 | break; |
|
337 | case 'custom': |
|
338 | foreach ($cssArray as $css) { |
|
@@ 337-349 (lines=13) @@ | ||
334 | $hrefs[$href] = $href; |
|
335 | } |
|
336 | break; |
|
337 | case 'custom': |
|
338 | foreach ($cssArray as $css) { |
|
339 | if (is_array($css)) { |
|
340 | $this->ResolveCssHref($css, $type, $hrefs); |
|
341 | continue; |
|
342 | } |
|
343 | if (strpos($css, '//') !== false) { |
|
344 | $href = $css; |
|
345 | } else { |
|
346 | $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css; |
|
347 | } |
|
348 | $hrefs[$href] = $href; |
|
349 | } |
|
350 | break; |
|
351 | } |
|
352 | } |
|
@@ 482-494 (lines=13) @@ | ||
479 | $resultArray[] = $href; |
|
480 | } |
|
481 | break; |
|
482 | case 'template': |
|
483 | foreach ($jsArray as $js) { |
|
484 | if (is_array($js)) { |
|
485 | $this->genScriptArray($js, $type, $resultArray); |
|
486 | continue; |
|
487 | } |
|
488 | if (strpos($js, '//') !== false) { |
|
489 | $href = $js; |
|
490 | } else { |
|
491 | $href = $this->app->templatesPath . "/{$this->template->name}/js/{$js}"; |
|
492 | } |
|
493 | $resultArray[] = $href; |
|
494 | } |
|
495 | break; |
|
496 | case 'custom': |
|
497 | foreach ($jsArray as $js) { |