diff --git a/application/controllers/information.php b/application/controllers/information.php
index 003092e7..1d4c3b65 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -1084,13 +1084,6 @@ class Information extends CI_Controller
);
$template = str_replace('', $article_structured_data_content, $template);
- $article_top_image_content = $this->load->view(
- $template_path . '-info-top-img',
- array('information' => $information),
- true
- );
- $template = str_replace('', $article_top_image_content, $template);
-
$info_page_form_content = $this->load->view($template_path . '-info-page-form', false, true);
$information->ic_content = str_replace('', $info_page_form_content, $information->ic_content);
@@ -1101,8 +1094,37 @@ class Information extends CI_Controller
$template = str_replace('?product_code=', '?product_code=' . $meta_product_code, $template);
$information->ic_content = str_replace('', $inquiry_form_template, $information->ic_content);
- $breadcrumb_content = $this->load->view($template_path . '-breadcrumb', array('breadcrumb_data' => $breadcrumb_data), true);
- $information->ic_content = str_replace('', $breadcrumb_content, $information->ic_content);
+ $ads_by_google = !empty ($meta_google_ad_article);
+ //H1模板替换
+ $data_H1 = array();
+ $data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
+ $data_H1['author'] = ''; //获取作者信息
+ $author = $this->Operator_model->get_author_nikename($information->ic_author);
+ if (!empty ($author)) {
+ $data_H1['author'] = $author->OPI_FirstName;
+ } else {
+ $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
+ if (!empty ($author_web)) {
+ $data_H1['author'] = $author_web->a_name;
+ }
+ }
+
+ // 检查图片地址格式
+ $parsed_photo = $information->ic_photo;
+ $parsed_photo_url = parse_url($information->ic_photo);
+ if (
+ (!isset ($parsed_photo_url['host']) || !isset ($parsed_photo_url['scheme'])) && isset ($parsed_photo_url['path'])
+ ) {
+ $parsed_photo = 'https://images.chinahighlights.com' . $parsed_photo_url['path'];
+ }
+
+ $data_H1['ic_title'] = $information->ic_title;
+ $data_H1['ic_photo'] = $parsed_photo;
+ $data_H1['breadcrumb_data'] = $breadcrumb_data;
+ $data_H1['ads_by_google'] = $ads_by_google;
+ $data_H1['ic_datetime'] = $information->ic_datetime;
+ $template_H1 = $this->load->view($template_path . '-h1', $data_H1, true);
+ $template = str_replace('', $template_H1, $template);
}
// CH: 1; AH: 28; GH : 33
@@ -1317,23 +1339,6 @@ class Information extends CI_Controller
}
}
- $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('', '
', $template);
- } else {
- $template = str_replace('', '
-
-
' . $template_TrainSearch . '
', $template);
- }
- }
- //顶部视频
- $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)) {
- $template = str_replace('', '
', $template);
- }
-
if (is_file('D:/wwwroot/origin-data.chinahighlights.com/css/mobile-first.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-data.chinahighlights.com/css/mobile-first.css'));
} else {
diff --git a/application/views/mobile_first/ah-feedback-30-list.php b/application/views/mobile_first/ah-feedback-30-list.php
index ac49bf85..a066b2af 100644
--- a/application/views/mobile_first/ah-feedback-30-list.php
+++ b/application/views/mobile_first/ah-feedback-30-list.php
@@ -4,7 +4,7 @@
- More
+ More
,
diff --git a/application/views/mobile_first/ah-feedback-city-list.php b/application/views/mobile_first/ah-feedback-city-list.php
index 45dea0d3..07db1210 100644
--- a/application/views/mobile_first/ah-feedback-city-list.php
+++ b/application/views/mobile_first/ah-feedback-city-list.php
@@ -5,10 +5,10 @@
$feedback) {?>
-
+
-
-
More
+
+
More
,
@@ -20,10 +20,10 @@
$feedback) {?>
-
+
-
-
More
+
+
More
,
@@ -35,10 +35,10 @@
$feedback) {?>
-
+
-
-
More
+
+
More
,
@@ -50,10 +50,10 @@
$feedback) {?>
-
+
-
-
More
+
+
More
,
@@ -67,10 +67,10 @@
$feedback) {?>
-
+
-
-
More
+
+
More
,
@@ -82,10 +82,10 @@
$feedback) {?>
-
+
-
-
More
+
+
More
,
diff --git a/application/views/mobile_first/ah-feedback-list.php b/application/views/mobile_first/ah-feedback-list.php
index fc79fcb8..45f6f280 100644
--- a/application/views/mobile_first/ah-feedback-list.php
+++ b/application/views/mobile_first/ah-feedback-list.php
@@ -1,5 +1,5 @@
-Discover real reviews of Highlights Travel Family 's best-rated service across trusted platforms.
+Discover real reviews of Highlights Travel Family 's best-rated service across trusted platforms.
@@ -25,7 +25,7 @@
-
More
+
More
,
diff --git a/application/views/mobile_first/ah-feedback-newest-10.php b/application/views/mobile_first/ah-feedback-newest-10.php
index 46e7df8a..b99aba1b 100644
--- a/application/views/mobile_first/ah-feedback-newest-10.php
+++ b/application/views/mobile_first/ah-feedback-newest-10.php
@@ -17,7 +17,7 @@
-
more
+
more
,
diff --git a/application/views/mobile_first/ah-feedback-newest.php b/application/views/mobile_first/ah-feedback-newest.php
index 0507299c..15b485cf 100644
--- a/application/views/mobile_first/ah-feedback-newest.php
+++ b/application/views/mobile_first/ah-feedback-newest.php
@@ -1,5 +1,5 @@
-
Discover real reviews of Highlights Travel Family 's best-rated service across trusted platforms.
+
Discover real reviews of Highlights Travel Family 's best-rated service across trusted platforms.
@@ -26,7 +26,7 @@
-
More
+
More
,
diff --git a/application/views/mobile_first/ah-feedback-right.php b/application/views/mobile_first/ah-feedback-right.php
index a826d769..de183463 100644
--- a/application/views/mobile_first/ah-feedback-right.php
+++ b/application/views/mobile_first/ah-feedback-right.php
@@ -14,7 +14,7 @@
-
More
+
More
,
diff --git a/application/views/mobile_first/ah-h1.php b/application/views/mobile_first/ah-h1.php
index 4c8bbc99..9f8de67a 100644
--- a/application/views/mobile_first/ah-h1.php
+++ b/application/views/mobile_first/ah-h1.php
@@ -16,24 +16,5 @@
-
-
-
-
-
-
diff --git a/application/views/mobile_first/ah-lantern-form-info-page.php b/application/views/mobile_first/ah-lantern-form-info-page.php
index f067b643..26a0f985 100644
--- a/application/views/mobile_first/ah-lantern-form-info-page.php
+++ b/application/views/mobile_first/ah-lantern-form-info-page.php
@@ -25,7 +25,7 @@
Premium+Transfer+Dinner
- US$199
+ US$179 (6400THB)
0 left
@@ -35,7 +35,7 @@
VIP+Transfer+Dinner
- US$169
+ US$169 (5900THB)
0 left
@@ -45,7 +45,7 @@
Standard+Transfer+Dinner
- US$129
+ US$129 (4600THB)
0 left
@@ -415,7 +415,7 @@
var currentTarget = event.currentTarget;
var adultNumberValue = parseInt(adultNumberNode.value);
if (currentTarget.value === 'Premium+Transfer+Dinner') {
- ticketPrice = 199;
+ ticketPrice = 179;
} else if (currentTarget.value === 'Standard+Transfer+Dinner') {
ticketPrice = 129;
} else if (currentTarget.value === 'VIP+Transfer+Dinner') {
diff --git a/application/views/mobile_first/ah-lantern-form.php b/application/views/mobile_first/ah-lantern-form.php
index 86723a41..0e548eec 100644
--- a/application/views/mobile_first/ah-lantern-form.php
+++ b/application/views/mobile_first/ah-lantern-form.php
@@ -26,7 +26,7 @@
Premium+Transfer+Dinner
- US$199
+ US$179 (6400THB)
0 left
@@ -36,7 +36,7 @@
VIP+Transfer+Dinner
- US$169
+ US$169 (5900THB)
0 left
@@ -46,7 +46,7 @@
Standard+Transfer+Dinner
- US$129
+ US$129 (4600THB)
0 left
@@ -412,7 +412,7 @@
var currentTarget = event.currentTarget;
var adultNumberValue = parseInt(adultNumberNode.value);
if (currentTarget.value === 'Premium+Transfer+Dinner') {
- ticketPrice = 199;
+ ticketPrice = 179;
} else if (currentTarget.value === 'Standard+Transfer+Dinner') {
ticketPrice = 129;
} else if (currentTarget.value === 'VIP+Transfer+Dinner') {
diff --git a/application/views/mobile_first/ch-feedback-30-list.php b/application/views/mobile_first/ch-feedback-30-list.php
index 2510cbf5..a8a1f839 100644
--- a/application/views/mobile_first/ch-feedback-30-list.php
+++ b/application/views/mobile_first/ch-feedback-30-list.php
@@ -1,9 +1,9 @@
Discover real reviews of Highlights Travel Family 's best-rated service across trusted platforms.
+padding-bottom: 0;" class="city_feedback">Discover real reviews of Highlights Travel Family 's best-rated service across trusted platforms.
-
+
@@ -18,7 +18,7 @@ padding-bottom: 0;">Discover real reviews of
- More
+
More
,
diff --git a/application/views/mobile_first/ch-feedback-city-list.php b/application/views/mobile_first/ch-feedback-city-list.php
index 8b76a970..e7b804e6 100644
--- a/application/views/mobile_first/ch-feedback-city-list.php
+++ b/application/views/mobile_first/ch-feedback-city-list.php
@@ -8,7 +8,7 @@
-
More
+
More
,
@@ -23,7 +23,7 @@
-
More
+
More
,
@@ -38,7 +38,7 @@
- More
+ More
,
@@ -53,7 +53,7 @@
- More
+ More
,
@@ -68,7 +68,7 @@
- More
+ More
,
@@ -83,7 +83,7 @@
- More
+ More
,
@@ -98,7 +98,7 @@
- More
+ More
,
@@ -113,7 +113,7 @@
- More
+ More
,
@@ -128,7 +128,7 @@
- More
+ More
,
@@ -143,7 +143,7 @@
- More
+ More
,
@@ -158,7 +158,7 @@
- More
+ More
,
@@ -173,7 +173,7 @@
- More
+ More
,
@@ -188,48 +188,9 @@
- More
+ More
,
- Read more Hangzhou travel reviews.
-
- All Destinations' Feedbacks
-
\ No newline at end of file
+ Read more Hangzhou travel reviews.
\ No newline at end of file
diff --git a/application/views/mobile_first/ch-feedback-list.php b/application/views/mobile_first/ch-feedback-list.php
index 94171187..7e07d6d8 100644
--- a/application/views/mobile_first/ch-feedback-list.php
+++ b/application/views/mobile_first/ch-feedback-list.php
@@ -26,7 +26,7 @@
- more
+ more
,
diff --git a/application/views/mobile_first/ch-feedback-newest.php b/application/views/mobile_first/ch-feedback-newest.php
index 1847fb37..64f32b5d 100644
--- a/application/views/mobile_first/ch-feedback-newest.php
+++ b/application/views/mobile_first/ch-feedback-newest.php
@@ -23,7 +23,7 @@
- more
+ more
,
diff --git a/application/views/mobile_first/ch-feedback.php b/application/views/mobile_first/ch-feedback.php
index 2a7b75a4..f3da1119 100644
--- a/application/views/mobile_first/ch-feedback.php
+++ b/application/views/mobile_first/ch-feedback.php
@@ -6,6 +6,6 @@
reviewed ,
- more
+ more
\ No newline at end of file
diff --git a/application/views/mobile_first/ch-h1.php b/application/views/mobile_first/ch-h1.php
index 11b7b02c..6db212bb 100644
--- a/application/views/mobile_first/ch-h1.php
+++ b/application/views/mobile_first/ch-h1.php
@@ -1,15 +1,7 @@
-
-
-
-
-
-
-
-
+
Home
$item) {?>
@@ -20,22 +12,8 @@
Written by Updated
-
-
\ No newline at end of file
diff --git a/application/views/mobile_first/ch-info-top-img.php b/application/views/mobile_first/ch-info-top-img.php
index 83ae235b..182418ca 100644
--- a/application/views/mobile_first/ch-info-top-img.php
+++ b/application/views/mobile_first/ch-info-top-img.php
@@ -1,6 +1,3 @@
-
-
-
+
\ No newline at end of file
diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php
index 19125d18..c0943d05 100644
--- a/application/views/mobile_first/ch-pc.php
+++ b/application/views/mobile_first/ch-pc.php
@@ -322,8 +322,6 @@
experience. Learn
more
-
-
@@ -362,19 +360,9 @@
Sign up to Our Newsletter
Be the first to receive exciting updates, exclusive promotions, and valuable travel tips from our
- team of experts.
-
+ team of experts.
+
Click to Sign up
+
-
-
-
Europe
Middle East
African Safari
@@ -573,65 +556,7 @@
}
})(window, document, 'header');
-
-
-
@@ -664,16 +589,7 @@ function validateNewsletterForm() {
firstScript.parentNode.insertBefore(asyncScript, firstScript);
}
-
+
@@ -366,18 +363,7 @@
Sign up to Our Newsletter
Be the first to receive exciting updates, exclusive promotions, and valuable travel tips from our
team of experts.
-
+
Click to Sign up
@@ -560,65 +546,6 @@ Travel Service Co., LTD
© 1998-2024 China Highlights — Discovery Your Way!
-
-
-