@@ 734-742 (lines=9) @@ | ||
731 | $aFeatures = []; |
|
732 | foreach ($headerFeatures as $key => $value) { |
|
733 | switch ($key) { |
|
734 | case 'css': |
|
735 | if (is_array($value)) { |
|
736 | foreach ($value as $value2) { |
|
737 | $aFeatures[] = $this->setCssFile(filter_var($value2, FILTER_SANITIZE_URL)); |
|
738 | } |
|
739 | } else { |
|
740 | $aFeatures[] = $this->setCssFile(filter_var($value, FILTER_SANITIZE_URL)); |
|
741 | } |
|
742 | break; |
|
743 | case 'javascript': |
|
744 | if (is_array($value)) { |
|
745 | foreach ($value as $value2) { |
|
@@ 743-752 (lines=10) @@ | ||
740 | $aFeatures[] = $this->setCssFile(filter_var($value, FILTER_SANITIZE_URL)); |
|
741 | } |
|
742 | break; |
|
743 | case 'javascript': |
|
744 | if (is_array($value)) { |
|
745 | foreach ($value as $value2) { |
|
746 | $vl = filter_var($value2, FILTER_SANITIZE_URL); |
|
747 | $aFeatures[] = $this->setJavascriptFile($vl); |
|
748 | } |
|
749 | } else { |
|
750 | $aFeatures[] = $this->setJavascriptFile(filter_var($value, FILTER_SANITIZE_URL)); |
|
751 | } |
|
752 | break; |
|
753 | case 'lang': |
|
754 | $fixedHeaderElements['lang'] = '<html lang="' |
|
755 | . filter_var($value, FILTER_SANITIZE_STRING) . '">'; |