diff --git a/application/controllers/information.php b/application/controllers/information.php
index 48e6a1b7..79bf04ff 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -1097,6 +1097,7 @@ class Information extends CI_Controller
if (!empty($author)) {
$data_H1['author'] = $author->OPI_FirstName;
$data_H1['OPI_Code'] = $author->OPI_Code;
+ $data_H1['author_url'] = $this->get_author_url('www.chinahighlights.com', $author->OPI_Code);
} else {
$author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
if (!empty($author_web)) {
@@ -1150,7 +1151,7 @@ class Information extends CI_Controller
$article_structured_data_content = $this->load->view(
$template_path . '-structured-data-article',
- array('information' => $information, 'author' => $author),
+ array('information' => $information, 'author_name' => $data_H1['author'], 'author_url' => $data_H1['author_url']),
true
);
$template = str_replace('', $article_structured_data_content, $template);
@@ -1837,6 +1838,7 @@ class Information extends CI_Controller
if (!empty($author)) {
$data_H1['author'] = $author->OPI_FirstName;
$data_H1['OPI_Code'] = $author->OPI_Code;
+ $data_H1['author_url'] = $this->get_author_url('www.globalhighlights.com', $author->OPI_Code);
} else {
$author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
if (!empty($author_web)) {
@@ -1856,8 +1858,8 @@ class Information extends CI_Controller
}
$article_structured_data_content = $this->load->view(
- $template_path . '-structured-data-article',
- array('information' => $information, 'author_name' => $data_H1['author']),
+ 'mobile_first/gh-structured-data-article',
+ array('information' => $information, 'author_name' => $data_H1['author'], 'author_url' => $data_H1['author_url']),
true
);
$template = str_replace('', $article_structured_data_content, $template);
@@ -2226,6 +2228,7 @@ class Information extends CI_Controller
if (!empty($author)) {
$data['author'] = $author->OPI_FirstName;
$data['OPI_Code'] = $author->OPI_Code;
+ $data['author_url'] = $this->get_author_url('www.asiahighlights.com', $author->OPI_Code);
} else {
$author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
if (!empty($author_web)) {
@@ -2238,7 +2241,7 @@ class Information extends CI_Controller
// 结构化标签:Article
$article_structured_data_content = $this->load->view(
$template_path . '-structured-data-article',
- array('information' => $information, 'author' => $data['author']),
+ array('information' => $information, 'author_name' => $data['author'], 'author_url' => $data['author_url']),
true
);
$template = str_replace('', $article_structured_data_content, $template);
@@ -2631,6 +2634,7 @@ class Information extends CI_Controller
if (!empty($author)) {
$data['author'] = $author->OPI_FirstName;
$data['OPI_Code'] = $author->OPI_Code;
+ $data['author_url'] = $this->get_author_url('www.japanhighlights.com', $author->OPI_Code);
} else {
$author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
if (!empty($author_web)) {
@@ -2643,7 +2647,7 @@ class Information extends CI_Controller
// 结构化标签:Article
$article_structured_data_content = $this->load->view(
$template_path . '-structured-data-article',
- array('information' => $information, 'author' => $data['author']),
+ array('information' => $information, 'author_name' => $data['author'], 'author_url' => $data['author_url']),
true
);
$template = str_replace('', $article_structured_data_content, $template);
@@ -3129,7 +3133,7 @@ class Information extends CI_Controller
if (!empty($meta_index_set)) {
$data["meta_index_set"] = '';
}
-
+
//总JS:为了方便以后js好维护,必须的把一些公用的JS统计到一个文件。但是又不是所有页面都需要调用这个基础js,所以必须在这里进行判断
$addBaseJs = false;
@@ -5635,4 +5639,51 @@ class Information extends CI_Controller
echo json_encode($data);
return true;
}
+
+ public function get_author_url($domain_name, $OPI_Code)
+ {
+ $OPI_CodeUrls = [
+ 'zzy' => 'https://' . $domain_name .'/aboutus/team/ruru-zhou',
+ '2' => 'https://' . $domain_name .'/aboutus/team/ruru-zhou',
+ 'HWT' => 'https://' . $domain_name .'/aboutus/team/mike-he',
+ 'CA' => 'https://' . $domain_name .'/aboutus/team/carol-wang',
+ 'SI' => 'https://' . $domain_name .'/aboutus/team/simon-huang',
+ 'TJQ' => 'https://' . $domain_name .'/aboutus/team/cindy-tang',
+ 'CLA' => 'https://' . $domain_name .'/aboutus/team/claire-wang',
+ 'Albee' => 'https://' . $domain_name .'/aboutus/team/albee-ning',
+ 'KM' => 'https://' . $domain_name .'/aboutus/team/kimi-huang',
+ 'RY' => 'https://' . $domain_name .'/aboutus/team/rita-yu',
+ 'QMY' => 'https://' . $domain_name .'/aboutus/team/chris-quan',
+ 'CY' => 'https://' . $domain_name .'/aboutus/team/cynthia-li',
+ 'Vicky' => 'https://' . $domain_name .'/aboutus/team/vicky-leng',
+ 'LXW' => 'https://' . $domain_name .'/aboutus/team/carper-li',
+ 'zzyGH' => 'https://' . $domain_name .'/aboutus/team/ruru-zhou',
+ ];
+
+ if ($domain_name == 'www.chinahighlights.com') {
+ $OPI_CodeUrls = [
+ 'zzy' => 'https://www.chinahighlights.com/aboutus/team/ruru-zhou.htm',
+ '2' => 'https://www.chinahighlights.com/aboutus/team/ruru-zhou.htm',
+ 'HWT' => 'https://www.chinahighlights.com/aboutus/team/mike-he.htm',
+ 'CA' => 'https://www.chinahighlights.com/aboutus/team/carol-wang.htm',
+ 'SI' => 'https://www.chinahighlights.com/aboutus/team/simon-huang.htm',
+ 'TJQ' => 'https://www.chinahighlights.com/aboutus/team/cindy-tang.htm',
+ 'CLA' => 'https://www.chinahighlights.com/aboutus/team/claire-wang.htm',
+ 'Albee' => 'https://www.chinahighlights.com/aboutus/team/albee-ning.htm',
+ 'KM' => 'https://www.chinahighlights.com/aboutus/team/kimi-huang.htm',
+ 'RY' => 'https://www.chinahighlights.com/aboutus/team/rita-yu.htm',
+ 'QMY' => 'https://www.chinahighlights.com/aboutus/team/chris-quan.htm',
+ 'CY' => 'https://www.chinahighlights.com/aboutus/team/cynthia-li.htm',
+ 'Vicky' => 'https://www.chinahighlights.com/aboutus/team/vicky-leng.htm',
+ 'LXW' => 'https://www.chinahighlights.com/aboutus/team/carper-li.htm',
+ 'zzyGH' => 'https://www.chinahighlights.com/aboutus/team/ruru-zhou.htm',
+ ];
+ }
+
+ if (!empty($OPI_Code) && array_key_exists($OPI_Code, $OPI_CodeUrls)) {
+ return $OPI_CodeUrls[$OPI_Code];
+ } else {
+ return '';
+ }
+ }
}
diff --git a/application/views/mobile_first/ah-gp-form.php b/application/views/mobile_first/ah-gp-form.php
index 0fa161c1..9b29fa03 100644
--- a/application/views/mobile_first/ah-gp-form.php
+++ b/application/views/mobile_first/ah-gp-form.php
@@ -1,352 +1,348 @@
-
+
-
Inquire now! Your 1:1 travel consultant will reply within 1 working day.
-