@@ 840-848 (lines=9) @@ | ||
837 | ||
838 | $str = ''; |
|
839 | switch ($type) { |
|
840 | case 'script': |
|
841 | foreach ($this->metas[$type] as $attrs) { |
|
842 | $str .= "<script" . $this->renderAttributes($attrs) . ">"; |
|
843 | if (@$attrs['_']) { |
|
844 | $str .= "\n//<![CDATA[\n" . $attrs['_'] . "\n//]]>"; |
|
845 | } |
|
846 | $str .= "</script>\n"; |
|
847 | } |
|
848 | break; |
|
849 | case 'link': |
|
850 | foreach ($this->metas[$type] as $attrs) { |
|
851 | $rel = $attrs['rel']; |
|
@@ 856-865 (lines=10) @@ | ||
853 | $str .= '<link rel="' . $rel . '"' . $this->renderAttributes($attrs) . " />\n"; |
|
854 | } |
|
855 | break; |
|
856 | case 'stylesheet': |
|
857 | foreach ($this->metas[$type] as $attrs) { |
|
858 | if (@$attrs['_']) { |
|
859 | $str .= '<style' . $this->renderAttributes($attrs) |
|
860 | . ">\n/* <![CDATA[ */\n" . $attrs['_'] . "\n/* //]]> */\n</style>"; |
|
861 | } else { |
|
862 | $str .= '<link rel="stylesheet"' . $this->renderAttributes($attrs) . " />\n"; |
|
863 | } |
|
864 | } |
|
865 | break; |
|
866 | case 'http': |
|
867 | foreach ($this->metas[$type] as $name => $content) { |
|
868 | $str .= '<meta http-equiv="' . htmlspecialchars($name, ENT_QUOTES) . '" content="' |