|
|
|
@ -139,35 +139,6 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//移动优先的编辑
|
|
|
|
|
public function edit_mobile($is_id)
|
|
|
|
|
{
|
|
|
|
|
//查询结构信息
|
|
|
|
|
$Structure = $this->InfoStructures_model->Detail($is_id);
|
|
|
|
|
if ($Structure == FALSE) {
|
|
|
|
|
show_404();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询结构根节点
|
|
|
|
|
$rootStructure = $this->InfoStructures_model->GetParent($Structure->is_path, 1);
|
|
|
|
|
//没有根节点就从它本身开始查询
|
|
|
|
|
if ($rootStructure == false) {
|
|
|
|
|
$rootStructure_ID = $Structure->is_id;
|
|
|
|
|
} else {
|
|
|
|
|
$rootStructure_ID = $rootStructure->is_id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询结构列表信息
|
|
|
|
|
$data['informationList'] = $this->Information_model->StructureList($rootStructure_ID);
|
|
|
|
|
|
|
|
|
|
//信息内容
|
|
|
|
|
$data['information'] = $this->Information_model->Detail($is_id);
|
|
|
|
|
|
|
|
|
|
$this->load->view('bootstrap3/header', $data);
|
|
|
|
|
$this->load->view('mobile_first/editor');
|
|
|
|
|
$this->load->view('bootstrap3/footer');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function edit($is_id)
|
|
|
|
|
{
|
|
|
|
@ -329,16 +300,12 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
//获取移动优先的模板,如果有的话
|
|
|
|
|
//增加判断站点,每个站点需要读取的模板不一样。 20210311 zp
|
|
|
|
|
if ($this->config->item('site_code')=="ch"){
|
|
|
|
|
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)) {
|
|
|
|
|
$mobile_template_H1 = $this->call_mobile_template_H1($mobile_first_template_path, $data['information']->is_path, $data['information']->ic_author, $data['information']->ic_title, $data['information']->ic_photo);//H1模板替换
|
|
|
|
|
$data['mobile_first_template'] = $this->load->view($mobile_first_template_path, '', TRUE);
|
|
|
|
|
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'));
|
|
|
|
|
$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']);
|
|
|
|
|
//查找是否有静态文件
|
|
|
|
|
if ($this->html_file_helper('find', $data['information']->ic_url)) {
|
|
|
|
@ -350,7 +317,7 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//CT判断是否生成静态文件
|
|
|
|
|
if ($this->config->item("site_code")=="chinatravel"){
|
|
|
|
|
if ($this->config->item("site_code") == "chinatravel") {
|
|
|
|
|
//查找是否有静态文件
|
|
|
|
|
if ($this->html_file_helper('find', $data['information']->ic_url)) {
|
|
|
|
|
$data['has_html_file'] = true;
|
|
|
|
@ -363,75 +330,6 @@ class Information extends CI_Controller
|
|
|
|
|
$this->load->view('bootstrap3/footer');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* public function redirect($jumpUrl){
|
|
|
|
|
*
|
|
|
|
|
* header('HTTP/1.1 301 Moved Permanently');
|
|
|
|
|
*
|
|
|
|
|
* header($jumpUrl);// 301 跳转到设置的 url
|
|
|
|
|
*
|
|
|
|
|
* exit();
|
|
|
|
|
*
|
|
|
|
|
* } */
|
|
|
|
|
public function test_proxy($url = false)
|
|
|
|
|
{
|
|
|
|
|
$curl = curl_init();
|
|
|
|
|
//curl_setopt($curl,CURLOPT_URL, "http://graph.facebook.com/?id=http://www.chinahighlights.com");
|
|
|
|
|
//curl_setopt($curl,CURLOPT_URL, 'http://graph.facebook.com/?id=http://www.mybeijingchina.com/beijing-attractions/beihai-park/');
|
|
|
|
|
curl_setopt($curl, CURLOPT_URL, $url);
|
|
|
|
|
curl_setopt($curl, CURLOPT_HEADER, 0);
|
|
|
|
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
|
|
|
|
curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, 1);
|
|
|
|
|
curl_setopt($curl, CURLOPT_PROXY, "120.24.227.23:33333");
|
|
|
|
|
$request = curl_exec($curl);
|
|
|
|
|
curl_close($curl);
|
|
|
|
|
return $request;
|
|
|
|
|
//echo $request;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 分享数 lzq
|
|
|
|
|
public function statistical_sharing()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//$info_ic = $this->Information_model->get_ic_url_by_code('mbj');
|
|
|
|
|
$info_ic = $this->Information_model->get_ic_url();
|
|
|
|
|
$ic_id = $info_ic->ic_id;
|
|
|
|
|
$ic_url = $info_ic->ic_url;
|
|
|
|
|
$ic_sitecode = $info_ic->ic_sitecode;
|
|
|
|
|
$site = $this->config->item('site');
|
|
|
|
|
|
|
|
|
|
if (!empty($ic_url)) {
|
|
|
|
|
|
|
|
|
|
$result = $this->Information_model->update_ic_date_by_code($ic_id);
|
|
|
|
|
//var_dump($site['mbj']['site_url']);
|
|
|
|
|
//$wz_url = 'http://graph.facebook.com/?id='.$site['mbj']['site_url'].$ic_url;
|
|
|
|
|
$complete_url = 'http://graph.facebook.com/?id=' . $site[$ic_sitecode]['site_url'] . $ic_url;
|
|
|
|
|
//echo $wz_url;
|
|
|
|
|
$api_return = $this->test_proxy($complete_url);
|
|
|
|
|
$api_return = json_decode($api_return);
|
|
|
|
|
if (empty($api_return->shares)) {
|
|
|
|
|
var_dump($api_return);
|
|
|
|
|
$shares = 0;
|
|
|
|
|
} else {
|
|
|
|
|
var_dump($api_return);
|
|
|
|
|
$shares = $api_return->shares;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//echo $asd->shares;
|
|
|
|
|
$result2 = $this->Information_model->insert_url_to_csi($info_ic->ic_url, $ic_id, $info_ic->ic_sitecode, $shares);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//$sstt = $this->config->item('site');
|
|
|
|
|
//foreach($infolist as $k=>$v){
|
|
|
|
|
// $aabb[] = $v->ic_sitecode;
|
|
|
|
|
//}
|
|
|
|
|
//$url_count = $this->Information_model->get_count_by_code('mbj');
|
|
|
|
|
//$surl = site_url('/information/fengxiangshu');
|
|
|
|
|
//redirect($surl,'refresh',301);
|
|
|
|
|
|
|
|
|
|
$this->load->view('bootstrap3/header');
|
|
|
|
|
$this->load->view('bootstrap3/statistical_sharing');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function edit_save()
|
|
|
|
|
{
|
|
|
|
@ -510,7 +408,13 @@ class Information extends CI_Controller
|
|
|
|
|
$information_new = $this->Information_model->Detail($this->input->post('is_id'));
|
|
|
|
|
$this->make_www_cache('mobile', $information_new);
|
|
|
|
|
$this->make_www_cache('pc', $information_new);
|
|
|
|
|
}else if (strcasecmp($site_code, "chinatravel") == 0 && !empty($auto_update_cache)){
|
|
|
|
|
|
|
|
|
|
} else if (strcasecmp($site_code, "ah") == 0 && !empty($auto_update_cache)) {
|
|
|
|
|
//读取模板生成PC和移动优先文件
|
|
|
|
|
$information_new = $this->Information_model->Detail($this->input->post('is_id'));
|
|
|
|
|
$this->make_www_cache_ah('mobile', $information_new);
|
|
|
|
|
$this->make_www_cache_ah('pc', $information_new);
|
|
|
|
|
} else if (strcasecmp($site_code, "chinatravel") == 0 && !empty($auto_update_cache)) {
|
|
|
|
|
//chinatravel读取模板生成PC和移动优先文件
|
|
|
|
|
$information_new = $this->Information_model->Detail($this->input->post('is_id'));
|
|
|
|
|
$this->make_www_cache_ct('mobile', $information_new);
|
|
|
|
@ -596,10 +500,10 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
if ($this->html_file_helper('find', $information->ic_url)) {
|
|
|
|
|
//用于批量更新,CH和chinatravel分开 ,20210317 zp
|
|
|
|
|
if ($this->config->item('site_code') == 'ch'){
|
|
|
|
|
if ($this->config->item('site_code') == 'ch') {
|
|
|
|
|
$this->make_www_cache('pc', $information);
|
|
|
|
|
$this->make_www_cache('mobile', $information);
|
|
|
|
|
}else if ($this->config->item('site_code') == 'chinatravel'){
|
|
|
|
|
} else if ($this->config->item('site_code') == 'chinatravel') {
|
|
|
|
|
$this->make_www_cache_ct('pc', $information);
|
|
|
|
|
$this->make_www_cache_ct('mobile', $information);
|
|
|
|
|
}
|
|
|
|
@ -687,27 +591,35 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@CANONICAL@-->', $this->config->item('site_url') . $information->ic_url, $template);
|
|
|
|
|
//非产品页面
|
|
|
|
|
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
|
|
|
|
|
$template_H1 = $this->call_mobile_template_H1($template_path, $information->is_path, $information->ic_author, $information->ic_title, $information->ic_photo);//H1模板替换
|
|
|
|
|
|
|
|
|
|
//H1模板替换
|
|
|
|
|
$data_H1 = array();
|
|
|
|
|
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
|
$data_H1['author'] = $this->Operator_model->get_author_nikename($information->ic_author);//获取作者信息
|
|
|
|
|
$data_H1['ic_title'] = $information->ic_title;
|
|
|
|
|
$data_H1['ic_photo'] = $information->ic_photo;
|
|
|
|
|
$template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE);
|
|
|
|
|
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
|
|
|
|
|
|
|
|
|
|
//信息推荐
|
|
|
|
|
$template_NEXT = $this->call_mobile_template_NEXT($template_path, $information->is_id);
|
|
|
|
|
$template = str_replace('<!--@ARTICLENEXT@-->', $template_NEXT, $template);
|
|
|
|
|
$addthis_widget=$this->load->view($template_path.'-add-this', false,true);
|
|
|
|
|
$addthis_widget = $this->load->view($template_path . '-add-this', false, true);
|
|
|
|
|
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template);
|
|
|
|
|
} else {
|
|
|
|
|
$template = str_replace('<!--@PRODUCT-JS@-->', '<script src="https://data.chinahighlights.com/js/flatpickr.js"></script>', $template);
|
|
|
|
|
}
|
|
|
|
|
//顶部全屏大图
|
|
|
|
|
if($device=='mobile'){//移动端读取移动大图
|
|
|
|
|
if ($device == 'mobile') {//移动端读取移动大图
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
}
|
|
|
|
|
$meta_addon_picture_url = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
|
if (!empty($meta_addon_picture)) {
|
|
|
|
|
if(!empty($meta_addon_picture_url)){
|
|
|
|
|
$template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><a href="'.$meta_addon_picture_url.'"> <img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '"></a></div>', $template);
|
|
|
|
|
}else{
|
|
|
|
|
if (!empty($meta_addon_picture_url)) {
|
|
|
|
|
$template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><a href="' . $meta_addon_picture_url . '"> <img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '"></a></div>', $template);
|
|
|
|
|
} else {
|
|
|
|
|
$template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '"></div>', $template);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -718,14 +630,115 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@TOP-VIDEO@-->', '<div class="detailtopbanner"><video autoplay="" controls="controls" id="bgvid" poster="' . $meta_video_picture . '" src="' . $meta_news_video . '" style="position: inherit;"> </video></div>', $template);
|
|
|
|
|
}
|
|
|
|
|
//主样式表,内联模式
|
|
|
|
|
$main_css_string=compress_css(GET_HTTP('https://proxy-data.chinahighlights.com/css/mobile-first.css'));
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP('https://proxy-data.chinahighlights.com/css/mobile-first.css'));
|
|
|
|
|
$template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template);
|
|
|
|
|
//额外样式
|
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
|
if (!empty($meta_addon_css)) {
|
|
|
|
|
//引用方式 $template = str_replace('<!--@ADDON-CSS@-->', '<link href="' . $meta_addon_css . '" rel="stylesheet">', $template);
|
|
|
|
|
//内联方式
|
|
|
|
|
$meta_addon_css_string=compress_css(GET_HTTP($meta_addon_css));
|
|
|
|
|
$meta_addon_css_string = compress_css(GET_HTTP($meta_addon_css));
|
|
|
|
|
$template = str_replace('<!--@ADDON-CSS@-->', '<style type="text/css">' . $meta_addon_css_string . '</style>', $template);
|
|
|
|
|
}
|
|
|
|
|
//额外js
|
|
|
|
|
$meta_addon_js = get_meta($information->ic_id, 'meta_addon_js');
|
|
|
|
|
if (!empty($meta_addon_js)) {
|
|
|
|
|
$template = str_replace('<!--@ADDON-JS@-->', '<script src="' . $meta_addon_js . '"></script>', $template);
|
|
|
|
|
}
|
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $information->ic_content, $template);
|
|
|
|
|
//Google广告代码
|
|
|
|
|
//if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) {
|
|
|
|
|
$template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161" data-matched-content-rows-num="2,2" data-matched-content-columns-num="1,3" data-matched-content-ui-type="image_stacked,image_stacked"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template);
|
|
|
|
|
//}
|
|
|
|
|
if (!empty(get_meta($information->ic_id, 'meta_google_ad_article'))) {
|
|
|
|
|
$in_article_google = $this->load->view($template_path . '-google-ad', false, true);
|
|
|
|
|
$template = str_replace('<!--@IN-ARTICLE-GOOGLE@-->', $in_article_google, $template);
|
|
|
|
|
}
|
|
|
|
|
//社媒分享图片
|
|
|
|
|
if (!empty($information->ic_photo)) {
|
|
|
|
|
$full_ic_photo = $this->config->item('site_image_url') . $information->ic_photo;
|
|
|
|
|
$template = str_replace('<!--@OG:IMAGE@-->', '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">', $template);
|
|
|
|
|
}
|
|
|
|
|
//设置图片尺寸
|
|
|
|
|
$template = $this->html_optimize_lib->set_image_size($template);
|
|
|
|
|
// /travelguide/chinese-zodiac/monthly-fortune-for-dog.htm
|
|
|
|
|
$html_path = $this->config->item('cache')[$this->config->item('site_code')]['cache_path'] . $information->ic_url;
|
|
|
|
|
$html_path = str_replace("\\", "/", $html_path);
|
|
|
|
|
if (substr($html_path, -1, 1) == '/') {
|
|
|
|
|
$html_path = $html_path . 'index.htm';
|
|
|
|
|
}
|
|
|
|
|
$html_path .= $html_path_ext;
|
|
|
|
|
create_folder_by_path(dirname($html_path));
|
|
|
|
|
file_put_contents($html_path, $template, LOCK_EX);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function make_www_cache_ah($device, $information)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
$data = array();
|
|
|
|
|
$data['information']=$information;
|
|
|
|
|
switch ($device) {
|
|
|
|
|
case 'mobile':
|
|
|
|
|
//获取移动优先的模板,如果有的话
|
|
|
|
|
$template_path = 'mobile_first/' . $this->config->item('site_code');
|
|
|
|
|
if (is_file(APPPATH . 'views/' . $template_path . EXT)) {
|
|
|
|
|
$template = $this->load->view($template_path, '', TRUE);
|
|
|
|
|
$html_path_ext = '-mobile.htm';
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 'pc':
|
|
|
|
|
//获取PC的模板,如果有的话
|
|
|
|
|
$template_path = 'mobile_first/' . $this->config->item('site_code');
|
|
|
|
|
if (is_file(APPPATH . 'views/' . $template_path . '-pc' . EXT)) {
|
|
|
|
|
$template = $this->load->view($template_path . '-pc', '', TRUE);
|
|
|
|
|
$html_path_ext = '-pc.htm';
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//替换模板中的标签
|
|
|
|
|
$template = str_replace('<!--@TITLE@-->', $information->ic_seo_title, $template);
|
|
|
|
|
$template = str_replace('<!--@DESCRIPTION@-->', $information->ic_seo_description, $template);
|
|
|
|
|
$template = str_replace('<!--@KEYWORDS@-->', $information->ic_seo_keywords, $template);
|
|
|
|
|
$template = str_replace('<!--@CANONICAL@-->', $this->config->item('site_url') . $information->ic_url, $template);
|
|
|
|
|
|
|
|
|
|
//顶部全屏大图
|
|
|
|
|
if ($device == 'mobile') {//移动端读取移动大图
|
|
|
|
|
$data['meta_addon_picture'] = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
} else {
|
|
|
|
|
$data['meta_addon_picture'] = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
}
|
|
|
|
|
$data['meta_addon_picture_url'] = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
|
$template_H1 = $this->load->view($template_path . '-h1', $data, TRUE);
|
|
|
|
|
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//非产品页面
|
|
|
|
|
/*
|
|
|
|
|
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
|
|
|
|
|
//信息推荐 暂时不用,未来用广告系统替代
|
|
|
|
|
$template_NEXT = $this->call_mobile_template_NEXT($template_path, $information->is_id);
|
|
|
|
|
$template = str_replace('<!--@ARTICLENEXT@-->', $template_NEXT, $template);
|
|
|
|
|
$addthis_widget = $this->load->view($template_path . '-add-this', false, true);
|
|
|
|
|
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template);
|
|
|
|
|
} else {
|
|
|
|
|
$template = str_replace('<!--@PRODUCT-JS@-->', '<script src="https://data.chinahighlights.com/js/flatpickr.js"></script>', $template);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//主样式表,内联模式
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP('https://proxy-data.asiahighlights.com/css/mobile-first.css'));
|
|
|
|
|
$template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template);
|
|
|
|
|
//额外样式
|
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
|
if (!empty($meta_addon_css)) {
|
|
|
|
|
//内联方式
|
|
|
|
|
$meta_addon_css_string = compress_css(GET_HTTP($meta_addon_css));
|
|
|
|
|
$template = str_replace('<!--@ADDON-CSS@-->', '<style type="text/css">' . $meta_addon_css_string . '</style>', $template);
|
|
|
|
|
}
|
|
|
|
|
//额外js
|
|
|
|
@ -736,10 +749,10 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $information->ic_content, $template);
|
|
|
|
|
//Google广告代码
|
|
|
|
|
//if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) {
|
|
|
|
|
$template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161" data-matched-content-rows-num="2,2" data-matched-content-columns-num="1,3" data-matched-content-ui-type="image_stacked,image_stacked"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template);
|
|
|
|
|
$template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161" data-matched-content-rows-num="2,2" data-matched-content-columns-num="1,3" data-matched-content-ui-type="image_stacked,image_stacked"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template);
|
|
|
|
|
//}
|
|
|
|
|
if (!empty(get_meta($information->ic_id, 'meta_google_ad_article'))) {
|
|
|
|
|
$in_article_google=$this->load->view($template_path.'-google-ad', false,true);
|
|
|
|
|
$in_article_google = $this->load->view($template_path . '-google-ad', false, true);
|
|
|
|
|
$template = str_replace('<!--@IN-ARTICLE-GOOGLE@-->', $in_article_google, $template);
|
|
|
|
|
}
|
|
|
|
|
//社媒分享图片
|
|
|
|
@ -748,7 +761,7 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@OG:IMAGE@-->', '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">', $template);
|
|
|
|
|
}
|
|
|
|
|
//设置图片尺寸
|
|
|
|
|
$template=$this->html_optimize_lib->set_image_size($template);
|
|
|
|
|
$template = $this->html_optimize_lib->set_image_size($template);
|
|
|
|
|
// /travelguide/chinese-zodiac/monthly-fortune-for-dog.htm
|
|
|
|
|
$html_path = $this->config->item('cache')[$this->config->item('site_code')]['cache_path'] . $information->ic_url;
|
|
|
|
|
$html_path = str_replace("\\", "/", $html_path);
|
|
|
|
@ -766,7 +779,8 @@ class Information extends CI_Controller
|
|
|
|
|
* @return:
|
|
|
|
|
* @Date Changed:
|
|
|
|
|
*/
|
|
|
|
|
function make_www_cache_ct($device,$information){
|
|
|
|
|
function make_www_cache_ct($device, $information)
|
|
|
|
|
{
|
|
|
|
|
$data = array();
|
|
|
|
|
//先准备数据,CT采用直接赋值视图然后返回视图字符串的模式,不使用一次次替换视图模板内容的模式。
|
|
|
|
|
$data["TITLE"] = $information->ic_seo_title;
|
|
|
|
@ -777,10 +791,10 @@ class Information extends CI_Controller
|
|
|
|
|
/* 详细内容 */
|
|
|
|
|
$ic_content = $information->ic_content;
|
|
|
|
|
// /**替换详细内容里面的价格
|
|
|
|
|
/* 直接使用fetch来动态获取价格,这样不用替换标签,直接录标签
|
|
|
|
|
// * // 一日游价格标签, "<!--@DayTripPrice:XASIC-41@-->" 或者<!--@DayTripPrice:XASIC-41,2@--> 逗号后面是人数
|
|
|
|
|
// * //精华线路标签"<!--@TourPrice:ct-1@-->"
|
|
|
|
|
// */
|
|
|
|
|
/* 直接使用fetch来动态获取价格,这样不用替换标签,直接录标签
|
|
|
|
|
// * // 一日游价格标签, "<!--@DayTripPrice:XASIC-41@-->" 或者<!--@DayTripPrice:XASIC-41,2@--> 逗号后面是人数
|
|
|
|
|
// * //精华线路标签"<!--@TourPrice:ct-1@-->"
|
|
|
|
|
// */
|
|
|
|
|
// $ic_content = preg_replace_callback('/<!--@DayTripPrice:(.*)@-->/i',function($match){
|
|
|
|
|
// //处理一日游每次配备
|
|
|
|
|
// $matchItem = $match[1];
|
|
|
|
@ -793,138 +807,134 @@ class Information extends CI_Controller
|
|
|
|
|
// },$ic_content);
|
|
|
|
|
|
|
|
|
|
//$ic_content = '<div class="container-details details-content">'.$ic_content.'</div>'; //兼容拷贝过来的内容样式
|
|
|
|
|
$data["CUSTOMCONENT"]=$ic_content;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$data["CUSTOMCONENT"] = $ic_content;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//非产品页面
|
|
|
|
|
$data["PRODUCTJS"]="";
|
|
|
|
|
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
|
|
|
|
|
//非产品页面
|
|
|
|
|
$data["PRODUCTJS"] = "";
|
|
|
|
|
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
// $data["PRODUCTJS"] = '<script src="https://data.chinatravel.com/js/mobile-first/flatpickr.js"></script>';
|
|
|
|
|
// $data["PRODUCTJS"] = '<script src="https://data.chinatravel.com/js/mobile-first/flatpickr.js"></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//顶部全屏大图
|
|
|
|
|
$data["TOPBANNER"] ="";
|
|
|
|
|
$data["TOPBANNER"] = "";
|
|
|
|
|
$ImgText = ""; //图文字
|
|
|
|
|
$meta_addon_picture_url = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
|
if($device=='mobile'){//移动端读取移动大图
|
|
|
|
|
if ($device == 'mobile') {//移动端读取移动大图
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
$bannerImg = '<img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">';
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
$bannerImg = '<img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">';
|
|
|
|
|
$meta_addon_picture_text = get_meta($information->ic_id,'meta_addon_picture_text');
|
|
|
|
|
if(!empty($meta_addon_picture_url)){
|
|
|
|
|
$ImgText = '<div class="carousel-caption"><p class="ads-title"><a href="'.$meta_addon_picture_url.'">'.$meta_addon_picture_text.'</a></p></div>';
|
|
|
|
|
}else{
|
|
|
|
|
$ImgText = '<div class="carousel-caption"><p class="ads-title">'.$meta_addon_picture_text.'</p></div>';
|
|
|
|
|
$meta_addon_picture_text = get_meta($information->ic_id, 'meta_addon_picture_text');
|
|
|
|
|
if (!empty($meta_addon_picture_url)) {
|
|
|
|
|
$ImgText = '<div class="carousel-caption"><p class="ads-title"><a href="' . $meta_addon_picture_url . '">' . $meta_addon_picture_text . '</a></p></div>';
|
|
|
|
|
} else {
|
|
|
|
|
$ImgText = '<div class="carousel-caption"><p class="ads-title">' . $meta_addon_picture_text . '</p></div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!empty($meta_addon_picture)) {
|
|
|
|
|
if(!empty($meta_addon_picture_url)){
|
|
|
|
|
$data["TOPBANNER"] = '<div class="banner"><a href="'.$meta_addon_picture_url.'">'.$bannerImg.' </a>'.$ImgText.'</div>';
|
|
|
|
|
}else{
|
|
|
|
|
$data["TOPBANNER"] = '<div class="banner">'.$bannerImg.$ImgText.'</div>';
|
|
|
|
|
if (!empty($meta_addon_picture_url)) {
|
|
|
|
|
$data["TOPBANNER"] = '<div class="banner"><a href="' . $meta_addon_picture_url . '">' . $bannerImg . ' </a>' . $ImgText . '</div>';
|
|
|
|
|
} else {
|
|
|
|
|
$data["TOPBANNER"] = '<div class="banner">' . $bannerImg . $ImgText . '</div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//顶部视频
|
|
|
|
|
$data["TOPVIDEO"]="";
|
|
|
|
|
//顶部视频
|
|
|
|
|
$data["TOPVIDEO"] = "";
|
|
|
|
|
$meta_news_video = get_meta($information->ic_id, 'meta_news_video');
|
|
|
|
|
$meta_video_picture = get_meta($information->ic_id, 'meta_video_picture');
|
|
|
|
|
if (!empty($meta_news_video) && !empty($meta_video_picture)) {
|
|
|
|
|
$data["TOPVIDEO"]='<div class="banner"><video autoplay="" controls="controls" id="bgvid" poster="' . $meta_video_picture . '" src="' . $meta_news_video . '" style="position: inherit;"> </video></div>';
|
|
|
|
|
$data["TOPVIDEO"] = '<div class="banner"><video autoplay="" controls="controls" id="bgvid" poster="' . $meta_video_picture . '" src="' . $meta_news_video . '" style="position: inherit;"> </video></div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//主样式表,内联模式
|
|
|
|
|
//$apiweb="http://202.103.68.104"; //本地测试
|
|
|
|
|
$apiweb="https://data.chinatravel.com";
|
|
|
|
|
if ($device=="mobile"){
|
|
|
|
|
$cssUrl = $apiweb."/css/newcss3/base.css";
|
|
|
|
|
}else{
|
|
|
|
|
$cssUrl=$apiweb."/css/newcss3/base.css";
|
|
|
|
|
$apiweb = "https://data.chinatravel.com";
|
|
|
|
|
if ($device == "mobile") {
|
|
|
|
|
$cssUrl = $apiweb . "/css/newcss3/base.css";
|
|
|
|
|
} else {
|
|
|
|
|
$cssUrl = $apiweb . "/css/newcss3/base.css";
|
|
|
|
|
}
|
|
|
|
|
$main_css_string=compress_css(GET_HTTP($cssUrl));
|
|
|
|
|
$main_css_string = compress_css(GET_HTTP($cssUrl));
|
|
|
|
|
$data["MAINCSS"] = '<style type="text/css">' . $main_css_string . '</style>';
|
|
|
|
|
|
|
|
|
|
//额外样式
|
|
|
|
|
$data["ADDONCSS"]="";
|
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
|
if (!empty($meta_addon_css)) {
|
|
|
|
|
//引用方式
|
|
|
|
|
//$data["ADDONCSS"]= '<link href="' . $meta_addon_css . '" rel="stylesheet" />';
|
|
|
|
|
//内联方式
|
|
|
|
|
$meta_addon_css_string=compress_css(GET_HTTP($meta_addon_css));
|
|
|
|
|
$data["ADDONCSS"]='<style type="text/css">' . $meta_addon_css_string . '</style>';
|
|
|
|
|
$data["ADDONCSS"] = "";
|
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
|
if (!empty($meta_addon_css)) {
|
|
|
|
|
//引用方式
|
|
|
|
|
//$data["ADDONCSS"]= '<link href="' . $meta_addon_css . '" rel="stylesheet" />';
|
|
|
|
|
//内联方式
|
|
|
|
|
$meta_addon_css_string = compress_css(GET_HTTP($meta_addon_css));
|
|
|
|
|
$data["ADDONCSS"] = '<style type="text/css">' . $meta_addon_css_string . '</style>';
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//总JS:为了方便以后js好维护,必须的把一些公用的JS统计到一个文件。但是又不是所有页面都需要调用这个基础js,所以必须在这里进行判断
|
|
|
|
|
$addBaseJs = false;
|
|
|
|
|
$addonJs = "";
|
|
|
|
|
$meta_ct_page_price = get_meta($information->ic_id, 'meta_ct_page_price'); //是否包含价格
|
|
|
|
|
$meta_ct_page_type = get_meta($information->ic_id, 'meta_ct_page_type'); //页面类型
|
|
|
|
|
if ($meta_ct_page_price=="yes"){
|
|
|
|
|
$addBaseJs=true;
|
|
|
|
|
}else if ($meta_ct_page_type!==false && $meta_ct_page_type!=""){
|
|
|
|
|
$addBaseJs=true;
|
|
|
|
|
if ($meta_ct_page_price == "yes") {
|
|
|
|
|
$addBaseJs = true;
|
|
|
|
|
} else if ($meta_ct_page_type !== false && $meta_ct_page_type != "") {
|
|
|
|
|
$addBaseJs = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($addBaseJs){
|
|
|
|
|
$addonJs='<script src="/js/mobile-first/base.js"></script>';
|
|
|
|
|
if ($addBaseJs) {
|
|
|
|
|
$addonJs = '<script src="/js/mobile-first/base.js"></script>';
|
|
|
|
|
}
|
|
|
|
|
/// ----- 总JS判断完成-----
|
|
|
|
|
|
|
|
|
|
//额外js
|
|
|
|
|
$data["ADDONJS"]="";
|
|
|
|
|
$data["ADDONJS"] = "";
|
|
|
|
|
$meta_addon_js = get_meta($information->ic_id, 'meta_addon_js');
|
|
|
|
|
if (!empty($meta_addon_js)) {
|
|
|
|
|
$addonJs .='<script src="' . $meta_addon_js . '"></script>';
|
|
|
|
|
$addonJs .= '<script src="' . $meta_addon_js . '"></script>';
|
|
|
|
|
}
|
|
|
|
|
//价格js
|
|
|
|
|
if ($meta_ct_page_price=="yes"){
|
|
|
|
|
if ($meta_ct_page_price == "yes") {
|
|
|
|
|
$addonJs .= '<script src="/js/mobile-first/getprice.js"></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//列表js
|
|
|
|
|
if ($meta_ct_page_type=="daytripindex" || $meta_ct_page_type=="tourindex"){
|
|
|
|
|
if ($meta_ct_page_type == "daytripindex" || $meta_ct_page_type == "tourindex") {
|
|
|
|
|
$addonJs .= '<script src="/js/mobile-first/getlist.js"></script>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$data["ADDONJS"]=$addonJs;
|
|
|
|
|
$data["ADDONJS"] = $addonJs;
|
|
|
|
|
//社媒分享图片
|
|
|
|
|
$data["OGIMAGE"]="";
|
|
|
|
|
$data["OGIMAGE"] = "";
|
|
|
|
|
if (!empty($information->ic_photo)) {
|
|
|
|
|
$full_ic_photo = $this->config->item('site_image_url') . $information->ic_photo;
|
|
|
|
|
$data["OGIMAGE"]= '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">';
|
|
|
|
|
$data["OGIMAGE"] = '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//结构化标签
|
|
|
|
|
$data["ConstructionCode"]="";
|
|
|
|
|
$meta_construction_code = get_meta($information->ic_id,'meta_construction_code');
|
|
|
|
|
if (!empty($meta_construction_code)){
|
|
|
|
|
$data["ConstructionCode"]=$meta_construction_code;
|
|
|
|
|
$data["ConstructionCode"] = "";
|
|
|
|
|
$meta_construction_code = get_meta($information->ic_id, 'meta_construction_code');
|
|
|
|
|
if (!empty($meta_construction_code)) {
|
|
|
|
|
$data["ConstructionCode"] = $meta_construction_code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//页面传递参数
|
|
|
|
|
$passParam = "";
|
|
|
|
|
if ($meta_ct_page_type=="daytripindex" || $meta_ct_page_type=="tourindex"){
|
|
|
|
|
if ($meta_ct_page_type == "daytripindex" || $meta_ct_page_type == "tourindex") {
|
|
|
|
|
//产品首页
|
|
|
|
|
$meta_ct_page_value = get_meta($information->ic_id,'meta_ct_page_value');
|
|
|
|
|
$passParam .= '<input type="hidden" name="param_city" id="param_city" value="'.$meta_ct_page_value.'"/>';
|
|
|
|
|
$meta_ct_page_value = get_meta($information->ic_id, 'meta_ct_page_value');
|
|
|
|
|
$passParam .= '<input type="hidden" name="param_city" id="param_city" value="' . $meta_ct_page_value . '"/>';
|
|
|
|
|
|
|
|
|
|
//加信息平台的is_id
|
|
|
|
|
$passParam .= '<input type="hidden" name="param_parentId" id="param_parentId" value="'.$information->is_id.'"/>';
|
|
|
|
|
$passParam .= '<input type="hidden" name="param_parentId" id="param_parentId" value="' . $information->is_id . '"/>';
|
|
|
|
|
}
|
|
|
|
|
$data["passParam"] = $passParam;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//两种模板
|
|
|
|
|
switch ($device) {
|
|
|
|
|
case 'mobile':
|
|
|
|
@ -962,9 +972,6 @@ class Information extends CI_Controller
|
|
|
|
|
file_put_contents($html_path, $template, LOCK_EX);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //Google广告代码
|
|
|
|
|
// if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) {
|
|
|
|
|
// $template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template);
|
|
|
|
@ -981,15 +988,6 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function call_mobile_template_H1($mobile_first_template_path, $is_path, $ic_author, $ic_title, $ic_photo)
|
|
|
|
|
{
|
|
|
|
|
$data['infocategory'] = $this->Information_model->get_detail_by_path($is_path, 1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
|
$data['author'] = $this->Operator_model->get_author_nikename($ic_author);//获取作者信息
|
|
|
|
|
$data['ic_title'] = $ic_title;
|
|
|
|
|
$data['ic_photo'] = $ic_photo;
|
|
|
|
|
return $this->load->view($mobile_first_template_path . '-h1', $data, TRUE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//通过内容找到第一张图片
|
|
|
|
|
function set_photo_content($ic_photo, $ic_content)
|
|
|
|
|
{
|
|
|
|
@ -1063,10 +1061,10 @@ class Information extends CI_Controller
|
|
|
|
|
case 'planing-1(guide)':
|
|
|
|
|
case 'planning-2 (decision tips)':
|
|
|
|
|
case 'destination': //url的第一段表示地区,根据第一段来搜索相关数据如/beijing/ 而不是根据is_parent_id因为可能信息和线路是在不同的分类下
|
|
|
|
|
$destination_url=trim($data['detail']->ic_url);
|
|
|
|
|
$destination_url=substr($destination_url,0,strpos($destination_url,'/',1)+1);
|
|
|
|
|
$destination_url = trim($data['detail']->ic_url);
|
|
|
|
|
$destination_url = substr($destination_url, 0, strpos($destination_url, '/', 1) + 1);
|
|
|
|
|
//how to plan
|
|
|
|
|
$data['info_howtoplan'] = $this->Information_model->search_by_words($destination_url, array('how', 'plan'),$data['detail']->is_id);
|
|
|
|
|
$data['info_howtoplan'] = $this->Information_model->search_by_words($destination_url, array('how', 'plan'), $data['detail']->is_id);
|
|
|
|
|
if (empty($data['info_howtoplan'])) {//找不到对应信息则显示备用
|
|
|
|
|
$data['info_howtoplan'] = $this->Information_model->Detail('/travelguide/plan-first-trip.htm');
|
|
|
|
|
}
|
|
|
|
@ -1075,7 +1073,7 @@ class Information extends CI_Controller
|
|
|
|
|
$data['info_howtoplan']->ic_photo = $this->set_photo_content($data['info_howtoplan']->ic_photo, $data['info_howtoplan']->ic_content);
|
|
|
|
|
}
|
|
|
|
|
//best time to visit
|
|
|
|
|
$data['info_besttime'] = $this->Information_model->search_by_words($destination_url, array('best', 'time'),$data['detail']->is_id);
|
|
|
|
|
$data['info_besttime'] = $this->Information_model->search_by_words($destination_url, array('best', 'time'), $data['detail']->is_id);
|
|
|
|
|
if (empty($data['info_besttime'])) {
|
|
|
|
|
$data['info_besttime'] = $this->Information_model->Detail('/weather/china-best-times.htm');
|
|
|
|
|
}
|
|
|
|
@ -1084,7 +1082,7 @@ class Information extends CI_Controller
|
|
|
|
|
$data['info_besttime']->ic_photo = $this->set_photo_content($data['info_besttime']->ic_photo, $data['info_besttime']->ic_content);
|
|
|
|
|
}
|
|
|
|
|
//top things to do
|
|
|
|
|
$data['info_topthings'] = $this->Information_model->search_by_words($destination_url, array('top', 'things'),$data['detail']->is_id);
|
|
|
|
|
$data['info_topthings'] = $this->Information_model->search_by_words($destination_url, array('top', 'things'), $data['detail']->is_id);
|
|
|
|
|
if (empty($data['info_topthings'])) {
|
|
|
|
|
$data['info_topthings'] = $this->Information_model->Detail('/travelguide/article-top-china-tourist-destination.htm');
|
|
|
|
|
}
|
|
|
|
@ -1101,7 +1099,7 @@ class Information extends CI_Controller
|
|
|
|
|
'/aboutus/no-shops.htm',
|
|
|
|
|
'/aboutus/company-history.htm'
|
|
|
|
|
);
|
|
|
|
|
$data['info_hotel']=$this->Information_model->Detail($random_array[rand(0, count($random_array) - 1)]);
|
|
|
|
|
$data['info_hotel'] = $this->Information_model->Detail($random_array[rand(0, count($random_array) - 1)]);
|
|
|
|
|
if (!empty($data['info_hotel'])) {
|
|
|
|
|
$data['info_hotel_root'] = $this->Information_model->get_detail_by_path($data['info_hotel']->is_path, 1);
|
|
|
|
|
$data['info_hotel']->ic_photo = $this->set_photo_content($data['info_hotel']->ic_photo, $data['info_hotel']->ic_content);
|
|
|
|
|