| @@ 666-672 (lines=7) @@ | ||
| 663 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
| 664 | ||
| 665 | if ($type === "style") { |
|
| 666 | if (!in_array($path, self::$styles)) { |
|
| 667 | if ($prepend === true) { |
|
| 668 | array_unshift ( self::$styles, $path ); |
|
| 669 | } else { |
|
| 670 | self::$styles[] = $path; |
|
| 671 | } |
|
| 672 | } |
|
| 673 | } elseif ($type === "script") { |
|
| 674 | if (!in_array($path, self::$scripts)) { |
|
| 675 | if ($prepend === true) { |
|
| @@ 673-681 (lines=9) @@ | ||
| 670 | self::$styles[] = $path; |
|
| 671 | } |
|
| 672 | } |
|
| 673 | } elseif ($type === "script") { |
|
| 674 | if (!in_array($path, self::$scripts)) { |
|
| 675 | if ($prepend === true) { |
|
| 676 | array_unshift ( self::$scripts, $path ); |
|
| 677 | } else { |
|
| 678 | self::$scripts [] = $path; |
|
| 679 | } |
|
| 680 | } |
|
| 681 | } |
|
| 682 | } |
|
| 683 | ||
| 684 | /** |
|