@@ 486-508 (lines=23) @@ | ||
483 | * |
|
484 | * @return string |
|
485 | */ |
|
486 | public function getCss() |
|
487 | { |
|
488 | // Set the template engine cache dir |
|
489 | $this->setTemplateCacheDir(); |
|
490 | ||
491 | $sCode = ''; |
|
492 | foreach($this->aResponsePlugins as $xPlugin) |
|
493 | { |
|
494 | if(($str = trim($xPlugin->getCss()))) |
|
495 | { |
|
496 | $sCode .= rtrim($str, " \n") . "\n"; |
|
497 | } |
|
498 | } |
|
499 | foreach($this->aPackages as $sClass) |
|
500 | { |
|
501 | $xPackage = jaxon()->di()->get($sClass); |
|
502 | if(($str = trim($xPackage->css()))) |
|
503 | { |
|
504 | $sCode .= rtrim($str, " \n") . "\n"; |
|
505 | } |
|
506 | } |
|
507 | return $sCode; |
|
508 | } |
|
509 | ||
510 | /** |
|
511 | * Get the correspondances between previous and current config options |
|
@@ 563-583 (lines=21) @@ | ||
560 | * |
|
561 | * @return string |
|
562 | */ |
|
563 | private function getReadyScript() |
|
564 | { |
|
565 | $sPluginScript = ''; |
|
566 | foreach($this->aResponsePlugins as $xPlugin) |
|
567 | { |
|
568 | if(($str = trim($xPlugin->getScript()))) |
|
569 | { |
|
570 | $sPluginScript .= "\n" . trim($str, " \n"); |
|
571 | } |
|
572 | } |
|
573 | foreach($this->aPackages as $sClass) |
|
574 | { |
|
575 | $xPackage = jaxon()->di()->get($sClass); |
|
576 | if(($str = trim($xPackage->ready()))) |
|
577 | { |
|
578 | $sPluginScript .= "\n" . trim($str, " \n"); |
|
579 | } |
|
580 | } |
|
581 | ||
582 | return $this->render('jaxon::plugins/ready.js', ['sPluginScript' => $sPluginScript]); |
|
583 | } |
|
584 | ||
585 | /** |
|
586 | * Get the javascript code to be sent to the browser |