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