@@ 113-119 (lines=7) @@ | ||
110 | if(!isset($meta["styles"]) AND !isset($meta["scripts"])) { |
|
111 | return; |
|
112 | } |
|
113 | if(isset($meta["styles"])) { |
|
114 | foreach($meta["styles"] as $index => $style) { |
|
115 | $this->addAsset("$basePath/$style"); |
|
116 | $meta["styles"][$index] = "<link rel=\"stylesheet\" type=\"text/css\" href=\"$style\">"; |
|
117 | } |
|
118 | $meta["styles"] = implode("\n ", $meta["styles"]); |
|
119 | } |
|
120 | if(isset($meta["scripts"])) { |
|
121 | foreach($meta["scripts"] as $index => $script) { |
|
122 | $this->addAsset("$basePath/$script"); |
|
@@ 120-126 (lines=7) @@ | ||
117 | } |
|
118 | $meta["styles"] = implode("\n ", $meta["styles"]); |
|
119 | } |
|
120 | if(isset($meta["scripts"])) { |
|
121 | foreach($meta["scripts"] as $index => $script) { |
|
122 | $this->addAsset("$basePath/$script"); |
|
123 | $meta["scripts"][$index] = "<script type=\"text/javascript\" src=\"$script\"></script>"; |
|
124 | } |
|
125 | $meta["scripts"] = implode("\n ", $meta["scripts"]); |
|
126 | } |
|
127 | } |
|
128 | ||
129 | protected function createHtml(string $filename): string { |