@@ 228-238 (lines=11) @@ | ||
225 | /** |
|
226 | * Método que devuelve el html con la ruta compilada del recurso javascript |
|
227 | */ |
|
228 | protected function printJs() |
|
229 | { |
|
230 | if ($this->debug && 0 < count($this->compiled_files)) { |
|
231 | foreach ($this->compiled_files as $file) { |
|
232 | echo "\t\t<script type='text/javascript' src='{$file}'></script>\n"; |
|
233 | } |
|
234 | } else { |
|
235 | $basePath = $this->cdnPath ?: ''; |
|
236 | echo "\t\t<script type='text/javascript' src='" . $basePath . "/js/" . $this->hash . ".js'></script>\n"; |
|
237 | } |
|
238 | } |
|
239 | ||
240 | /** |
|
241 | * Método que devuelve el html con la ruta compilada del recurso css |
|
@@ 243-253 (lines=11) @@ | ||
240 | /** |
|
241 | * Método que devuelve el html con la ruta compilada del recurso css |
|
242 | */ |
|
243 | protected function printCss() |
|
244 | { |
|
245 | if ($this->debug && 0 < count($this->compiled_files)) { |
|
246 | foreach ($this->compiled_files as $file) { |
|
247 | echo "\t\t<link href='{$file}' rel='stylesheet' media='screen, print'>"; |
|
248 | } |
|
249 | } else { |
|
250 | $basePath = $this->cdnPath ?: ''; |
|
251 | echo "\t\t<link href='" . $basePath . "/css/" . $this->hash . ".css' rel='stylesheet'>"; |
|
252 | } |
|
253 | } |
|
254 | ||
255 | /** |
|
256 | * @param string $source |