|
|
|
@ -311,6 +311,8 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
//获取移动优先的模板,如果有的话
|
|
|
|
|
//增加判断站点,每个站点需要读取的模板不一样。 20210311 zp
|
|
|
|
|
//取消预览,严重影响速度 2023-08-15 ycc
|
|
|
|
|
/*
|
|
|
|
|
if (is_mobile_first()) {
|
|
|
|
|
$mobile_first_template_path = 'mobile_first/' . $this->config->item('site_code');
|
|
|
|
|
if (is_file(APPPATH . 'views/' . $mobile_first_template_path . EXT)) {
|
|
|
|
@ -326,9 +328,10 @@ class Information extends CI_Controller
|
|
|
|
|
$data['mobile_first_template'] = '没有找到移动模板';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//CT判断是否生成静态文件
|
|
|
|
|
if ($this->config->item("site_code") == "chinatravel") {
|
|
|
|
|
//判断是否生成静态文件
|
|
|
|
|
if (is_mobile_first()) {
|
|
|
|
|
//查找是否有静态文件
|
|
|
|
|
if ($this->html_file_helper('find', $data['information']->ic_url)) {
|
|
|
|
|
$data['has_html_file'] = true;
|
|
|
|
|