From 638ede80d4973a5bb06d285086db28c1831fe32f Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Mon, 8 Apr 2024 14:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=B9=B3=E5=8F=B0=E5=90=AF?= =?UTF-8?q?=E7=94=A8meta=20robots=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 15 +++++++++++++++ application/views/mobile_first/ah-pc.php | 1 + application/views/mobile_first/ah.php | 1 + application/views/mobile_first/ch-pc.php | 1 + application/views/mobile_first/ch.php | 1 + application/views/mobile_first/gh-pc.php | 1 + application/views/mobile_first/gh.php | 1 + 7 files changed, 21 insertions(+) diff --git a/application/controllers/information.php b/application/controllers/information.php index 6db8fd7e..5834ca66 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1380,6 +1380,11 @@ class Information extends CI_Controller if (!empty ($meta_addon_js)) { $template = str_replace('', '', $template); } + + $meta_index_set = get_meta($information->ic_id, 'meta_index_set'); + if (!empty ($meta_index_set)) { + $template = str_replace('', '', $template); + } //设置内容图片缓加载 $lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.chinahighlights.com/grey.gif'); $template = str_replace('', $lazy_content, $template); @@ -2004,6 +2009,11 @@ class Information extends CI_Controller if (!empty ($meta_addon_js)) { $template = str_replace('', '', $template); } + + $meta_index_set = get_meta($information->ic_id, 'meta_index_set'); + if (!empty ($meta_index_set)) { + $template = str_replace('', '', $template); + } //设置内容图片缓加载 $lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.chinahighlights.com/grey.gif'); $template = str_replace('', $lazy_content, $template); @@ -2367,6 +2377,11 @@ class Information extends CI_Controller if (!empty ($meta_addon_js)) { $template = str_replace('', '', $template); } + + $meta_index_set = get_meta($information->ic_id, 'meta_index_set'); + if (!empty ($meta_index_set)) { + $template = str_replace('', '', $template); + } //设置内容图片缓加载 $lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.asiahighlights.com/grey.gif'); $template = str_replace('', $lazy_content, $template); diff --git a/application/views/mobile_first/ah-pc.php b/application/views/mobile_first/ah-pc.php index 7f6fe4b8..6fad423d 100644 --- a/application/views/mobile_first/ah-pc.php +++ b/application/views/mobile_first/ah-pc.php @@ -12,6 +12,7 @@ + diff --git a/application/views/mobile_first/ah.php b/application/views/mobile_first/ah.php index 358d91a5..1d71a763 100644 --- a/application/views/mobile_first/ah.php +++ b/application/views/mobile_first/ah.php @@ -9,6 +9,7 @@ + diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index eb1e9739..30bd8e49 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -12,6 +12,7 @@ + diff --git a/application/views/mobile_first/ch.php b/application/views/mobile_first/ch.php index 75c95620..2896d402 100644 --- a/application/views/mobile_first/ch.php +++ b/application/views/mobile_first/ch.php @@ -8,6 +8,7 @@ + diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 4831556c..9d85677a 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -12,6 +12,7 @@ + diff --git a/application/views/mobile_first/gh.php b/application/views/mobile_first/gh.php index 2b6d91ec..ffa3fe0c 100644 --- a/application/views/mobile_first/gh.php +++ b/application/views/mobile_first/gh.php @@ -8,6 +8,7 @@ +