fix:CSS 实际路径

master
LiaoYijun 2 months ago
parent e7d00cb24c
commit 9f8e92c59a

@ -2941,10 +2941,10 @@ class Information extends CI_Controller {
}
//主样式表,内联模式
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'));
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'));
} else {
$main_css_string = compress_css(GET_HTTP('https://proxy-data.thailandhighlights.com/css/mobile-first.css'));
$main_css_string = compress_css(GET_HTTP('https://proxy-data.thailandhighlights.com/css/th-mobile-first.css'));
}
$template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template);
//额外样式

Loading…
Cancel
Save