GH的静态化发布

hotfix/paypal-note
尹诚诚 4 years ago
parent e5b2279164
commit e9fb05f1df

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

@ -149,7 +149,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<section>
<!--PC正文-->
<!--@CUSTOM-CONENT@-->
</section>

Loading…
Cancel
Save