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