| @@ 568-574 (lines=7) @@ | ||
| 565 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
| 566 | ||
| 567 | if ($type === "style") { |
|
| 568 | if (!in_array($path, self::$styles)) { |
|
| 569 | if ($prepend === true) { |
|
| 570 | array_unshift ( self::$styles, $path ); |
|
| 571 | } else { |
|
| 572 | self::$styles[] = $path; |
|
| 573 | } |
|
| 574 | } |
|
| 575 | } elseif ($type === "script") { |
|
| 576 | if (!in_array($path, self::$scripts)) { |
|
| 577 | if ($prepend === true) { |
|
| @@ 575-583 (lines=9) @@ | ||
| 572 | self::$styles[] = $path; |
|
| 573 | } |
|
| 574 | } |
|
| 575 | } elseif ($type === "script") { |
|
| 576 | if (!in_array($path, self::$scripts)) { |
|
| 577 | if ($prepend === true) { |
|
| 578 | array_unshift ( self::$scripts, $path ); |
|
| 579 | } else { |
|
| 580 | self::$scripts [] = $path; |
|
| 581 | } |
|
| 582 | } |
|
| 583 | } |
|
| 584 | } |
|
| 585 | ||
| 586 | /** |
|