|
|
|
@ -573,6 +573,11 @@ class Information extends CI_Controller
|
|
|
|
|
$mobile_template = str_replace('<!--@CANONICAL@-->', $this->input->post('site_url') . $this->input->post('ic_url'), $mobile_template);
|
|
|
|
|
$mobile_template_H1 = $this->call_mobile_template_H1($mobile_first_template_path, $this->input->post('is_path'), $this->input->post('ic_author'), $this->input->post('ic_title'), $this->input->post('ic_photo'));//H1模板替换
|
|
|
|
|
$mobile_template = str_replace('<!--@HEAD_1@-->', $mobile_template_H1, $mobile_template);
|
|
|
|
|
//额外样式
|
|
|
|
|
$meta_addon_css=get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
|
if(!empty($meta_addon_css)){
|
|
|
|
|
$mobile_template = str_replace('<!--@ADDON-CSS@-->', '<link href="'.$meta_addon_css.'" rel="stylesheet">', $mobile_template);
|
|
|
|
|
}
|
|
|
|
|
$mobile_template = str_replace('<!--@CUSTOM-CONENT@-->', $this->input->post('ic_content'), $mobile_template);
|
|
|
|
|
//Google广告代码
|
|
|
|
|
if(!empty(get_meta($information->ic_id, 'meta_google_ad_content'))){
|
|
|
|
@ -617,6 +622,11 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@CANONICAL@-->', $this->input->post('site_url') . $this->input->post('ic_url'), $template);
|
|
|
|
|
$template_H1 = $this->call_mobile_template_H1($template_path, $this->input->post('is_path'), $this->input->post('ic_author'), $this->input->post('ic_title'), $this->input->post('ic_photo'));//H1模板替换
|
|
|
|
|
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $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);
|
|
|
|
|
}
|
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $this->input->post('ic_content'), $template);
|
|
|
|
|
//Google广告代码
|
|
|
|
|
if(!empty(get_meta($information->ic_id, 'meta_google_ad_content'))){
|
|
|
|
|