|
|
|
|
@ -2932,10 +2932,10 @@ class Information extends CI_Controller {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//主样式表,内联模式
|
|
|
|
|
if (is_file('D:/wwwroot/origin-www.thailandhighlights.com/css/th-mobile-first.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
|
|
|
|
|
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.thailandhighlights.com/css/th-mobile-first.css'));
|
|
|
|
|
if (is_file('D:/wwwroot/origin-www.thailandhighlights.com/css/mobile-first.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
|
|
|
|
|
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.thailandhighlights.com/css/mobile-first.css'));
|
|
|
|
|
} else {
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP('https://proxy-data.thailandhighlights.com/css/th-mobile-first.css'));
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP('https://proxy-data.thailandhighlights.com/css/mobile-first.css'));
|
|
|
|
|
}
|
|
|
|
|
$template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template);
|
|
|
|
|
//额外样式
|
|
|
|
|
|