From 08ef0dd254ce2a672b34a7a8adcf7a59bf1a0a06 Mon Sep 17 00:00:00 2001 From: ycc Date: Mon, 28 Dec 2020 14:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A2=9D=E5=A4=96=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 10 ++++++++++ application/views/bootstrap3/information_edit.php | 2 +- application/views/mobile_first/ch-pc.php | 1 + application/views/mobile_first/ch.php | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 9ce34e6a..f908bb92 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -573,6 +573,11 @@ class Information extends CI_Controller $mobile_template = str_replace('', $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('', $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('', '', $mobile_template); + } $mobile_template = str_replace('', $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('', $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('', $template_H1, $template); + //额外样式 + $meta_addon_css=get_meta($information->ic_id, 'meta_addon_css'); + if(!empty($meta_addon_css)){ + $template = str_replace('', '', $template); + } $template = str_replace('', $this->input->post('ic_content'), $template); //Google广告代码 if(!empty(get_meta($information->ic_id, 'meta_google_ad_content'))){ diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index c52d6aab..3be9a7f1 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -726,7 +726,7 @@ if (!empty($setting_website_nav)) { - +