|
|
|
|
@ -32,15 +32,35 @@ class html_document { |
|
|
|
|
$css = \tts\main\configure::get('html', 'css'); |
|
|
|
|
if (\tts\common::get_count($css) > 0) { |
|
|
|
|
foreach($css as $file=>$path) { |
|
|
|
|
if (is_array($file) || is_array($path)) continue; |
|
|
|
|
$this->add_css($file, $path); |
|
|
|
|
if (is_array($file)) continue; |
|
|
|
|
if (is_array($path)) { |
|
|
|
|
if (isset($path['path'])) { |
|
|
|
|
$path_type = $path['path']; |
|
|
|
|
unset($path['path']); |
|
|
|
|
} else { |
|
|
|
|
$path_type = "project"; |
|
|
|
|
} |
|
|
|
|
$this->add_css($file, $path_type, $path); |
|
|
|
|
} else { |
|
|
|
|
$this->add_css($file, $path); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$js = \tts\main\configure::get('html', 'javascript'); |
|
|
|
|
if (\tts\common::get_count($js) >0) { |
|
|
|
|
foreach($js as $file=>$path) { |
|
|
|
|
if (is_array($file) || is_array($path)) continue; |
|
|
|
|
$this->add_js($file, $path); |
|
|
|
|
if (is_array($file)) continue; |
|
|
|
|
if (is_array($path)) { |
|
|
|
|
if (isset($path['path'])) { |
|
|
|
|
$path_type = $path['path']; |
|
|
|
|
unset($path['path']); |
|
|
|
|
} else { |
|
|
|
|
$path_type = "project"; |
|
|
|
|
} |
|
|
|
|
$this->add_js($file, $path_type, $path); |
|
|
|
|
} else { |
|
|
|
|
$this->add_js($file, $path); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|