| @@ 471-480 (lines=10) @@ | ||
| 468 | * @param string $uri The webpath to the Cascading Style Sheet file |
|
| 469 | * @param boolean $async Can the CSS be loaded asynchronously? |
|
| 470 | */ |
|
| 471 | public function addCSSByURI($uri, $async = false) |
|
| 472 | { |
|
| 473 | $attributes = array('rel'=>'stylesheet', 'href'=>$uri, 'type'=>'text/css'); |
|
| 474 | if($async === true && $this->importSupport === true) |
|
| 475 | { |
|
| 476 | $attributes['rel'] = 'import'; |
|
| 477 | } |
|
| 478 | $cssTag = $this->createOpenTag('link', $attributes, true); |
|
| 479 | $this->addHeadTag($cssTag); |
|
| 480 | } |
|
| 481 | ||
| 482 | /** |
|
| 483 | * Add a JavaScript file from a set of files known to the framework |
|
| @@ 464-473 (lines=10) @@ | ||
| 461 | * @param string $uri The webpath to the Cascading Style Sheet file |
|
| 462 | * @param boolean $async Can the CSS be loaded asynchronously? |
|
| 463 | */ |
|
| 464 | public function addCSSByURI($uri, $async = false) |
|
| 465 | { |
|
| 466 | $attributes = array('rel'=>'stylesheet', 'href'=>$uri, 'type'=>'text/css'); |
|
| 467 | if($async === true && $this->importSupport === true) |
|
| 468 | { |
|
| 469 | $attributes['rel'] = 'import'; |
|
| 470 | } |
|
| 471 | $cssTag = $this->createOpenTag('link', $attributes, true); |
|
| 472 | $this->addHeadTag($cssTag); |
|
| 473 | } |
|
| 474 | /** |
|
| 475 | * Add a JavaScript file from a set of files known to the framework |
|
| 476 | * |
|