| @@ 554-560 (lines=7) @@ | ||
| 551 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
| 552 | ||
| 553 | if ($type === "style") { |
|
| 554 | if (!in_array($path, self::$styles)) { |
|
| 555 | if ($prepend === true) { |
|
| 556 | array_unshift ( self::$styles, $path ); |
|
| 557 | } else { |
|
| 558 | self::$styles[] = $path; |
|
| 559 | } |
|
| 560 | } |
|
| 561 | } elseif ($type === "script") { |
|
| 562 | if (!in_array($path, self::$scripts)) { |
|
| 563 | if ($prepend === true) { |
|
| @@ 561-569 (lines=9) @@ | ||
| 558 | self::$styles[] = $path; |
|
| 559 | } |
|
| 560 | } |
|
| 561 | } elseif ($type === "script") { |
|
| 562 | if (!in_array($path, self::$scripts)) { |
|
| 563 | if ($prepend === true) { |
|
| 564 | array_unshift ( self::$scripts, $path ); |
|
| 565 | } else { |
|
| 566 | self::$scripts [] = $path; |
|
| 567 | } |
|
| 568 | } |
|
| 569 | } |
|
| 570 | } |
|
| 571 | ||
| 572 | /** |
|