|
|
|
|
@ -2200,7 +2200,7 @@ class Information extends CI_Controller
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
$recommand_template = 'mobile_first/ah-next-mobile';
|
|
|
|
|
$recommand_template = 'mobile_first/htravel-next-mobile';
|
|
|
|
|
break;
|
|
|
|
|
case 'pc':
|
|
|
|
|
//获取PC的模板,如果有的话
|
|
|
|
|
@ -2211,7 +2211,7 @@ class Information extends CI_Controller
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
$recommand_template = 'mobile_first/ah-next';
|
|
|
|
|
$recommand_template = 'mobile_first/htravel-next';
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
}
|
|
|
|
|
@ -2258,8 +2258,8 @@ class Information extends CI_Controller
|
|
|
|
|
if (!empty($author)) {
|
|
|
|
|
$data['author'] = $author->OPI_FirstName;
|
|
|
|
|
$data['OPI_Code'] = $author->OPI_Code;
|
|
|
|
|
$data['author_url'] = $this->get_author_url('www.asiahighlights.com', $author->OPI_Code);
|
|
|
|
|
$author_url = $this->get_author_url('www.asiahighlights.com', $author->OPI_Code);
|
|
|
|
|
$data['author_url'] = $this->get_author_url('www.highlightstravel.com', $author->OPI_Code);
|
|
|
|
|
$author_url = $this->get_author_url('www.highlightstravel.com', $author->OPI_Code);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
$author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
|
|
|
|
|
@ -2321,7 +2321,7 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$tips_right_list_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-tips-right-list',
|
|
|
|
|
'mobile_first/htravel-tips-right-list',
|
|
|
|
|
array(
|
|
|
|
|
'tips_right_a' => $tips_right_a,
|
|
|
|
|
'tips_right_b' => $tips_right_b,
|
|
|
|
|
@ -2419,7 +2419,7 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
// 水灯节表单
|
|
|
|
|
$lantern_form_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-lantern-form',
|
|
|
|
|
'mobile_first/htravel-lantern-form',
|
|
|
|
|
array('information' => $information),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
@ -2427,7 +2427,7 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
// 水灯节2025表单
|
|
|
|
|
$lantern_form_content_2025 = $this->load->view(
|
|
|
|
|
'mobile_first/ah-lantern-form-2025',
|
|
|
|
|
'mobile_first/htravel-lantern-form-2025',
|
|
|
|
|
array('information' => $information),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
@ -2435,7 +2435,7 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
// Chiang Mai Authentic Sky Lantern Festival on Nov. 5, 2025
|
|
|
|
|
$lantern_form_content_authentic_sky = $this->load->view(
|
|
|
|
|
'mobile_first/ah-chiang-mai-lantern-festival',
|
|
|
|
|
'mobile_first/htravel-chiang-mai-lantern-festival',
|
|
|
|
|
array('information' => $information),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
@ -2444,7 +2444,7 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
// CAD 跨年表单
|
|
|
|
|
$new_year_countdown_form_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-new-year-countdown',
|
|
|
|
|
'mobile_first/htravel-new-year-countdown',
|
|
|
|
|
array('information' => $information),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
@ -2467,7 +2467,7 @@ class Information extends CI_Controller
|
|
|
|
|
// 防止触发 Google 网络垃圾政策只返回前三条
|
|
|
|
|
$top3_feedback_list = array_slice($feedback_list, 0, 3);
|
|
|
|
|
$feedback_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-feedback-list',
|
|
|
|
|
'mobile_first/htravel-feedback-list',
|
|
|
|
|
array('feedback_list' => $top3_feedback_list),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
@ -2489,7 +2489,7 @@ class Information extends CI_Controller
|
|
|
|
|
$city_name = $feedback30_array[1][$index];
|
|
|
|
|
$feedback_list = $this->Feedback_model->get_feedback_by_city_name($city_name);
|
|
|
|
|
$feedback_30_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-feedback-30-list',
|
|
|
|
|
'mobile_first/htravel-feedback-30-list',
|
|
|
|
|
array('feedback_list' => $feedback_list),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
@ -2516,7 +2516,7 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$feedback_city_content = $this->load->view(
|
|
|
|
|
'mobile_first/ah-feedback-city-list',
|
|
|
|
|
'mobile_first/htravel-feedback-city-list',
|
|
|
|
|
$feedback_city_list,
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
@ -2529,10 +2529,10 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//主样式表,内联模式
|
|
|
|
|
if (is_file('D:/wwwroot/origin-www.asiahighlights.com/css/mobile-first.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
|
|
|
|
|
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.asiahighlights.com/css/mobile-first.css'));
|
|
|
|
|
if (is_file('D:/wwwroot/origin-www.highlightstravel.com/css/mobile-first.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
|
|
|
|
|
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.highlightstravel.com/css/mobile-first.css'));
|
|
|
|
|
} else {
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP('https://proxy-data.asiahighlights.com/css/mobile-first.css'));
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP('https://proxy-data.highlightstravel.com/css/mobile-first.css'));
|
|
|
|
|
}
|
|
|
|
|
$template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template);
|
|
|
|
|
//额外样式
|
|
|
|
|
@ -2563,7 +2563,7 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@Meta_Robots@-->', '<meta name="robots" content="' . $meta_index_set . '" />', $template);
|
|
|
|
|
}
|
|
|
|
|
//设置内容图片缓加载
|
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.asiahighlights.com/grey.gif');
|
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.highlightstravel.com/grey.gif');
|
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
|
|
|
|
|
|
|
|
|
|
//Google广告代码
|
|
|
|
|
@ -2584,7 +2584,7 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
// 设置图片尺寸
|
|
|
|
|
// 优化过图片目录:D:\wwwroot\origin-images.chinahighlights.com\optimize\
|
|
|
|
|
$www_local_path = 'D:/wwwroot/origin-www.asiahighlights.com';
|
|
|
|
|
$www_local_path = 'D:/wwwroot/origin-www.highlightstravel.com';
|
|
|
|
|
$image_local_path = 'D:/wwwroot/origin-images.chinahighlights.com/optimize';
|
|
|
|
|
if (is_dir($www_local_path) && is_dir($image_local_path)) {
|
|
|
|
|
$template = $this->html_optimize_lib->set_image_size_local($template, $www_local_path, $image_local_path);
|
|
|
|
|
|