From 5ee239e2787d8040137860e30115831fae7d451d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 30 Aug 2021 11:19:30 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E7=81=AB=E8=BD=A6=E7=A5=A8=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=90=9C=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 10 ++- .../views/mobile_first/ch-train-index.php | 82 +++++++++++++++++++ 2 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 application/views/mobile_first/ch-train-index.php diff --git a/application/controllers/information.php b/application/controllers/information.php index a7676f00..2084a0c7 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -692,12 +692,20 @@ class Information extends CI_Controller } else { $meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture'); } + + // 火车票首页搜索框 + $template_TrainSearch = ""; + if ($information->ic_url =="/china-trains/hometest.htm" || $information->ic_url=="/china-trains/"){ + $template_TrainSearch = $this->load->view($template_path . '-train-index', null, TRUE); + } + + $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('', '
' . $information->ic_title . '
', $template); } else { - $template = str_replace('', '
' . $information->ic_title . '
', $template); + $template = str_replace('', '
' . $information->ic_title . ''.$template_TrainSearch.'
', $template); } } //顶部视频 diff --git a/application/views/mobile_first/ch-train-index.php b/application/views/mobile_first/ch-train-index.php new file mode 100644 index 00000000..bbc91b2b --- /dev/null +++ b/application/views/mobile_first/ch-train-index.php @@ -0,0 +1,82 @@ + +
+

China Highlights Train Ticket Service

+ +
+ + + + \ No newline at end of file From 92f262ed2bd0a4bc4bd981f1c46779b1ae787f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 30 Aug 2021 11:44:50 +0800 Subject: [PATCH 2/8] fix --- application/views/mobile_first/ch-train-index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/views/mobile_first/ch-train-index.php b/application/views/mobile_first/ch-train-index.php index bbc91b2b..37296e17 100644 --- a/application/views/mobile_first/ch-train-index.php +++ b/application/views/mobile_first/ch-train-index.php @@ -29,7 +29,7 @@
- +
@@ -67,7 +67,7 @@
-
+
@@ -77,6 +77,6 @@
- + \ No newline at end of file From 1b6299dc896370fe9d2048dfaadc2077d96b270a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Wed, 1 Sep 2021 09:55:45 +0800 Subject: [PATCH 3/8] =?UTF-8?q?GH=E7=AB=99=E7=82=B9=E5=8F=98=E4=B8=BAmobil?= =?UTF-8?q?e=20first=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/welcome.php | 31 ----------------------------- application/helpers/info_helper.php | 2 +- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php index 124bb9c6..0d36c528 100644 --- a/application/controllers/welcome.php +++ b/application/controllers/welcome.php @@ -218,37 +218,6 @@ class Welcome extends CI_Controller { } } - // $information->ic_content = $htm_doc->saveHTML(); - // $this->InfoContents_model->Update( - // $information->ic_id, - // $information->ic_url, - // $information->ic_url_title, - // $information->ic_type, - // $information->ic_title, - // $information->ic_content, - // $information->ic_summary, - // $information->ic_seo_title, - // $information->ic_seo_description, - // $information->ic_seo_keywords, - // $information->ic_show_bread_crumbs, - // $information->ic_status, - // $information->ic_template, - // $information->ic_photo, - // $information->ic_photo_width, - // $information->ic_photo_height, - // $information->ic_recommend_tours, - // $information->ic_recommend_packages, - // $information->ic_ht_area_id, - // $information->ic_ht_area_type, - // $information->ic_ht_product_id, - // $information->ic_ht_product_type, - // $information->ic_author); - // $this->echo_json(array( - // 'status' => 'ok', - // 'infoId' => $info_id, - // 'message' => 'success', - // 'date' => date('Y-m-d h:i:s') - // )); } public function count_redirect_nofollow() { diff --git a/application/helpers/info_helper.php b/application/helpers/info_helper.php index c392c9ae..db149a56 100644 --- a/application/helpers/info_helper.php +++ b/application/helpers/info_helper.php @@ -103,7 +103,7 @@ function is_mobile_first() { $CI = &get_instance(); $sitecode = $CI->config->item('site_code'); - if ($sitecode == 'ch' || $sitecode == 'ah' || $sitecode=='chinatravel') { + if ($sitecode == 'ch' || $sitecode == 'ah' || $sitecode=='chinatravel' || $sitecode == 'gh') { return true; } else { return false; From af29bdf3a505243eb59fa8feafeb5ff4b6166e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Wed, 1 Sep 2021 16:58:27 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E4=BB=A3=E7=A0=81fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/chinatravel-add-this.php | 2 +- application/views/mobile_first/chinatravel.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/application/views/mobile_first/chinatravel-add-this.php b/application/views/mobile_first/chinatravel-add-this.php index 5472cda4..0a889f37 100644 --- a/application/views/mobile_first/chinatravel-add-this.php +++ b/application/views/mobile_first/chinatravel-add-this.php @@ -1 +1 @@ - + diff --git a/application/views/mobile_first/chinatravel.php b/application/views/mobile_first/chinatravel.php index 56e606d4..d6302c2f 100644 --- a/application/views/mobile_first/chinatravel.php +++ b/application/views/mobile_first/chinatravel.php @@ -288,7 +288,13 @@ - + + + + From 605ff1668089eb309a758a11647970216a4e3785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Wed, 1 Sep 2021 17:06:17 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E8=B0=B7=E6=AD=8C=E5=B9=BF=E5=91=8Afix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/chinatravel-pc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/views/mobile_first/chinatravel-pc.php b/application/views/mobile_first/chinatravel-pc.php index ef3903f6..e0152f01 100644 --- a/application/views/mobile_first/chinatravel-pc.php +++ b/application/views/mobile_first/chinatravel-pc.php @@ -288,7 +288,13 @@ eval(function(p,a,c,k,e,d){e=function(c){return(c - + + + + From 311d9161fe84393480008e3dc5ae00d217bbab8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 2 Sep 2021 10:33:07 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E5=AD=97=E4=BD=93=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/chinatravel-pc.php | 2 ++ application/views/mobile_first/chinatravel.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/application/views/mobile_first/chinatravel-pc.php b/application/views/mobile_first/chinatravel-pc.php index e0152f01..7ea2bc55 100644 --- a/application/views/mobile_first/chinatravel-pc.php +++ b/application/views/mobile_first/chinatravel-pc.php @@ -26,6 +26,8 @@ + + diff --git a/application/views/mobile_first/chinatravel.php b/application/views/mobile_first/chinatravel.php index d6302c2f..f0a332a7 100644 --- a/application/views/mobile_first/chinatravel.php +++ b/application/views/mobile_first/chinatravel.php @@ -26,6 +26,8 @@ + + From b4cc0a9f0ca5710d2e093a75d4152f89bbb363b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Fri, 3 Sep 2021 09:28:23 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/recommend/views/templates.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/application/third_party/recommend/views/templates.php b/application/third_party/recommend/views/templates.php index cbe1cc72..c9b1a1ed 100644 --- a/application/third_party/recommend/views/templates.php +++ b/application/third_party/recommend/views/templates.php @@ -1,4 +1,4 @@ -

完整的文中广告代码:

+

完整的文中广告代码:

Recommended Itinerary
@@ -18,7 +18,7 @@
-

完整的右侧广告代码:

+

CH 完整的右侧广告代码:

+ + + +

AH 右侧和文中广告代码模板

+
Recommended Itinerary
+ + \ No newline at end of file From 15d586b1bfb079f566e0d556eb54832799942925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Fri, 3 Sep 2021 09:33:56 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/recommend/views/templates.php | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/application/third_party/recommend/views/templates.php b/application/third_party/recommend/views/templates.php index c9b1a1ed..3dbe77aa 100644 --- a/application/third_party/recommend/views/templates.php +++ b/application/third_party/recommend/views/templates.php @@ -1,20 +1,10 @@

完整的文中广告代码:

-
Recommended Itinerary
- -
7-Day Myanmar Essence Tour - - - +
Recommended Tour
+
Jiuzhaigou +
+

Time-Smart Jiuzhaigou Discovery

+ 3-Day Jiuzhaigou and Huanglong Highlights Tour View more