| @@ 624-630 (lines=7) @@ | ||
| 621 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
| 622 | ||
| 623 | if ($type === "style") { |
|
| 624 | if (!in_array($path, self::$styles)) { |
|
| 625 | if ($prepend === true) { |
|
| 626 | array_unshift ( self::$styles, $path ); |
|
| 627 | } else { |
|
| 628 | self::$styles[] = $path; |
|
| 629 | } |
|
| 630 | } |
|
| 631 | } elseif ($type === "script") { |
|
| 632 | if (!in_array($path, self::$scripts)) { |
|
| 633 | if ($prepend === true) { |
|
| @@ 631-639 (lines=9) @@ | ||
| 628 | self::$styles[] = $path; |
|
| 629 | } |
|
| 630 | } |
|
| 631 | } elseif ($type === "script") { |
|
| 632 | if (!in_array($path, self::$scripts)) { |
|
| 633 | if ($prepend === true) { |
|
| 634 | array_unshift ( self::$scripts, $path ); |
|
| 635 | } else { |
|
| 636 | self::$scripts [] = $path; |
|
| 637 | } |
|
| 638 | } |
|
| 639 | } |
|
| 640 | } |
|
| 641 | ||
| 642 | /** |
|