@@ 123-129 (lines=7) @@ | ||
120 | if(!isset($meta["styles"]) AND !isset($meta["scripts"])) { |
|
121 | return; |
|
122 | } |
|
123 | if(isset($meta["styles"])) { |
|
124 | foreach($meta["styles"] as $index => $style) { |
|
125 | $this->addAsset("$basePath/$style"); |
|
126 | $meta["styles"][$index] = "<link rel=\"stylesheet\" type=\"text/css\" href=\"$style\">"; |
|
127 | } |
|
128 | $meta["styles"] = implode("\n ", $meta["styles"]); |
|
129 | } |
|
130 | if(isset($meta["scripts"])) { |
|
131 | foreach($meta["scripts"] as $index => $script) { |
|
132 | $this->addAsset("$basePath/$script"); |
|
@@ 130-136 (lines=7) @@ | ||
127 | } |
|
128 | $meta["styles"] = implode("\n ", $meta["styles"]); |
|
129 | } |
|
130 | if(isset($meta["scripts"])) { |
|
131 | foreach($meta["scripts"] as $index => $script) { |
|
132 | $this->addAsset("$basePath/$script"); |
|
133 | $meta["scripts"][$index] = "<script type=\"text/javascript\" src=\"$script\"></script>"; |
|
134 | } |
|
135 | $meta["scripts"] = implode("\n ", $meta["scripts"]); |
|
136 | } |
|
137 | } |
|
138 | ||
139 | protected function createHtml(string $filename): string { |