|
|
|
@ -617,6 +617,7 @@ class Information extends CI_Controller
|
|
|
|
|
$mobile_template = str_replace('<!--@DESCRIPTION@-->', $this->input->post('ic_seo_description'), $mobile_template);
|
|
|
|
|
$mobile_template = str_replace('<!--@KEYWORDS@-->', $this->input->post('ic_seo_keywords'), $mobile_template);
|
|
|
|
|
$mobile_template = str_replace('<!--@CANONICAL@-->', $this->input->post('site_url') . $this->input->post('ic_url'), $mobile_template);
|
|
|
|
|
//非产品页面
|
|
|
|
|
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
|
|
|
|
|
//H1标题样式
|
|
|
|
|
$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模板替换
|
|
|
|
@ -624,6 +625,7 @@ class Information extends CI_Controller
|
|
|
|
|
//信息推荐
|
|
|
|
|
$template_NEXT = $this->call_mobile_template_NEXT($mobile_first_template_path, $this->input->post('is_id'));
|
|
|
|
|
$mobile_template = str_replace('<!--@ARTICLENEXT@-->', $template_NEXT, $mobile_template);
|
|
|
|
|
$mobile_template = str_replace('<!--@ADDTHIS-WIDGET@-->', '<script async src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52170b0a4a301edc"></script>', $mobile_template);
|
|
|
|
|
}
|
|
|
|
|
//额外样式
|
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
@ -669,12 +671,14 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@DESCRIPTION@-->', $this->input->post('ic_seo_description'), $template);
|
|
|
|
|
$template = str_replace('<!--@KEYWORDS@-->', $this->input->post('ic_seo_keywords'), $template);
|
|
|
|
|
$template = str_replace('<!--@CANONICAL@-->', $this->input->post('site_url') . $this->input->post('ic_url'), $template);
|
|
|
|
|
//非产品页面
|
|
|
|
|
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
|
|
|
|
|
$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);
|
|
|
|
|
//信息推荐
|
|
|
|
|
$template_NEXT = $this->call_mobile_template_NEXT($template_path, $this->input->post('is_id'));
|
|
|
|
|
$template = str_replace('<!--@ARTICLENEXT@-->', $template_NEXT, $template);
|
|
|
|
|
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', '<script async src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52170b0a4a301edc"></script>', $template);
|
|
|
|
|
}
|
|
|
|
|
//额外样式
|
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
|