@@ 643-651 (lines=9) @@ | ||
640 | $aFeatures = []; |
|
641 | foreach ($headerFeatures as $key => $value) { |
|
642 | switch ($key) { |
|
643 | case 'css': |
|
644 | if (is_array($value)) { |
|
645 | foreach ($value as $value2) { |
|
646 | $aFeatures[] = $this->setCssFile(filter_var($value2, FILTER_SANITIZE_URL)); |
|
647 | } |
|
648 | } else { |
|
649 | $aFeatures[] = $this->setCssFile(filter_var($value, FILTER_SANITIZE_URL)); |
|
650 | } |
|
651 | break; |
|
652 | case 'javascript': |
|
653 | if (is_array($value)) { |
|
654 | foreach ($value as $value2) { |
|
@@ 652-661 (lines=10) @@ | ||
649 | $aFeatures[] = $this->setCssFile(filter_var($value, FILTER_SANITIZE_URL)); |
|
650 | } |
|
651 | break; |
|
652 | case 'javascript': |
|
653 | if (is_array($value)) { |
|
654 | foreach ($value as $value2) { |
|
655 | $vl = filter_var($value2, FILTER_SANITIZE_URL); |
|
656 | $aFeatures[] = $this->setJavascriptFile($vl); |
|
657 | } |
|
658 | } else { |
|
659 | $aFeatures[] = $this->setJavascriptFile(filter_var($value, FILTER_SANITIZE_URL)); |
|
660 | } |
|
661 | break; |
|
662 | case 'lang': |
|
663 | $fixedHeaderElements['lang'] = '<html lang="' |
|
664 | . filter_var($value, FILTER_SANITIZE_STRING) . '">'; |