css改为内联模式,修复预览界面

ct-mobile-first
ycc 5 years ago
parent 31c20171ab
commit b72e05c2d9

@ -333,6 +333,9 @@ class Information extends CI_Controller
if (empty(get_meta($data['information']->ic_id, 'meta_product_code'))) {
$data['mobile_first_template'] = str_replace('<!--@HEAD_1@-->', $mobile_template_H1, $data['mobile_first_template']);
}
//主样式表,内联模式
$main_css_string=compress_css(GET_HTTP('https://proxy-data.chinahighlights.com/css/mobile-first.css'));
$data['mobile_first_template'] = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $data['mobile_first_template']);
} else {
$data['mobile_first_template'] = '没有找到移动模板';
}

Loading…
Cancel
Save