GH的静态化发布

hotfix/paypal-note
尹诚诚 4 years ago
parent 4291e685cd
commit e5b2279164

@ -727,6 +727,7 @@ $config['cache']['ru']['cache_path'] = 'C:\VHD\Dropbox\wwwcache\chinahighlights.
$config['cache']['it']['cache_path'] = 'C:\VHD\Dropbox\wwwcache\viaggio-in-cina.it'; $config['cache']['it']['cache_path'] = 'C:\VHD\Dropbox\wwwcache\viaggio-in-cina.it';
$config['cache']['ch']['cache_path'] = 'D:\wwwcache\chinahighlights.com'; $config['cache']['ch']['cache_path'] = 'D:\wwwcache\chinahighlights.com';
$config['cache']['ah']['cache_path'] = 'D:\wwwcache\asiahighlights.com'; $config['cache']['ah']['cache_path'] = 'D:\wwwcache\asiahighlights.com';
$config['cache']['gh']['cache_path'] = 'D:\wwwcache\globalhighlights.com';
$config['cache']['chinatravel']['cache_path'] = 'D:\wwwcache\mobile-first\chinatravel.com'; $config['cache']['chinatravel']['cache_path'] = 'D:\wwwcache\mobile-first\chinatravel.com';
//静态文件更新接口 //静态文件更新接口

@ -423,8 +423,10 @@ class Information extends CI_Controller
$this->make_www_cache_ah('mobile', $information_new, $recommand_information); $this->make_www_cache_ah('mobile', $information_new, $recommand_information);
$this->make_www_cache_ah('pc', $information_new, $recommand_information); $this->make_www_cache_ah('pc', $information_new, $recommand_information);
} else if (strcasecmp($site_code, "gh") == 0 && !empty($auto_update_cache)) { } else if (strcasecmp($site_code, "gh") == 0 && !empty($auto_update_cache)) {
$recommand_information = $this->recommand_information($information);
$information_new = $this->Information_model->Detail($this->input->post('is_id')); $information_new = $this->Information_model->Detail($this->input->post('is_id'));
$this->make_www_cache_gh($information_new); $this->make_www_cache_gh('mobile', $information_new, $recommand_information);
$this->make_www_cache_gh('pc', $information_new, $recommand_information);
} else if (strcasecmp($site_code, "chinatravel") == 0 && !empty($auto_update_cache)) { } else if (strcasecmp($site_code, "chinatravel") == 0 && !empty($auto_update_cache)) {
//chinatravel读取模板生成PC和移动优先文件 //chinatravel读取模板生成PC和移动优先文件
$information_new = $this->Information_model->Detail($this->input->post('is_id')); $information_new = $this->Information_model->Detail($this->input->post('is_id'));
@ -977,40 +979,40 @@ class Information extends CI_Controller
$template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE); $template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE);
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template); $template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
$addthis_widget = $this->load->view($template_path . '-add-this', false, true); // $addthis_widget = $this->load->view($template_path . '-add-this', false, true);
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template); // $template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template);
$article_structured_data_content = $this->load->view( // $article_structured_data_content = $this->load->view(
$template_path . '-structured-data-article', // $template_path . '-structured-data-article',
array('information' => $information, 'author' => $author), // array('information' => $information, 'author' => $author),
true); // true);
$template = str_replace('<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->', $article_structured_data_content, $template); // $template = str_replace('<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->', $article_structured_data_content, $template);
} else { } else {
$template = str_replace('<!--@PRODUCT-JS@-->', '<script src="https://data.chinahighlights.com/js/flatpickr.js"></script>', $template); // $template = str_replace('<!--@PRODUCT-JS@-->', '<script src="https://data.chinahighlights.com/js/flatpickr.js"></script>', $template);
$inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true); // $inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true);
$information->ic_content = str_replace('<!--@INQUIRY-FORM@-->', $inquiry_form_template, $information->ic_content); // $information->ic_content = str_replace('<!--@INQUIRY-FORM@-->', $inquiry_form_template, $information->ic_content);
//
$breadcrumb_content = $this->load->view($template_path . '-breadcrumb', array('breadcrumb_data' => $breadcrumb_data), true); // $breadcrumb_content = $this->load->view($template_path . '-breadcrumb', array('breadcrumb_data' => $breadcrumb_data), true);
$information->ic_content = str_replace('<!--@BREADCRUMB-BLOCK@-->', $breadcrumb_content, $information->ic_content); // $information->ic_content = str_replace('<!--@BREADCRUMB-BLOCK@-->', $breadcrumb_content, $information->ic_content);
} }
//信息推荐 //信息推荐
$template_recommand = $recommand_information; //$this->recommand_information($information); 从外面传进来pc和移动只需要查一次减少数据库负担 $template_recommand = $recommand_information; //$this->recommand_information($information); 从外面传进来pc和移动只需要查一次减少数据库负担
$template = str_replace('<!--@ARTICLENEXT@-->', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), TRUE), $template); // $template = str_replace('<!--@ARTICLENEXT@-->', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), TRUE), $template);
// //广告改叫tips防止被插件屏蔽 // //广告改叫tips防止被插件屏蔽
if (!empty($template_recommand['Tips Right TOP'])) { if (!empty($template_recommand['Tips Right TOP'])) {
$template = str_replace('<!--@TIPS-RIGHT-TOP@-->', "<div class='right_brand_info'><aside>" . $template_recommand['Tips Right TOP']->it_content . "</aside></div>", $template); // $template = str_replace('<!--@TIPS-RIGHT-TOP@-->', "<div class='right_brand_info'><aside>" . $template_recommand['Tips Right TOP']->it_content . "</aside></div>", $template);
} }
if (!empty($template_recommand['Tips Right'])) { if (!empty($template_recommand['Tips Right'])) {
$template = str_replace('<!--@TIPS-RIGHT@-->', "<div class='right_tour'>" . $template_recommand['Tips Right']->it_content . "</div>", $template); // $template = str_replace('<!--@TIPS-RIGHT@-->', "<div class='right_tour'>" . $template_recommand['Tips Right']->it_content . "</div>", $template);
} }
//文中的信息推荐 //文中的信息推荐
if (strpos($information->ic_content, '<!--@Content-Recommends-Article@-->') !== false) { if (strpos($information->ic_content, '<!--@Content-Recommends-Article@-->') !== false) {
$information->ic_content = str_replace('<!--@Content-Recommends-Article@-->', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), TRUE), $information->ic_content); // $information->ic_content = str_replace('<!--@Content-Recommends-Article@-->', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), TRUE), $information->ic_content);
} }
//文中的线路推荐 //文中的线路推荐
if (strpos($information->ic_content, '<!--@Content-Recommends-Tour@-->') !== false) { if (strpos($information->ic_content, '<!--@Content-Recommends-Tour@-->') !== false) {
$information->ic_content = str_replace('<!--@Content-Recommends-Tour@-->', $this->load->view($template_path . '-recommends-tour', array('recommands' => $template_recommand), TRUE), $information->ic_content); // $information->ic_content = str_replace('<!--@Content-Recommends-Tour@-->', $this->load->view($template_path . '-recommends-tour', array('recommands' => $template_recommand), TRUE), $information->ic_content);
} }
//替换内容中广告 //替换内容中广告
@ -1036,32 +1038,32 @@ class Information extends CI_Controller
$meta_addon_picture_url = get_meta($information->ic_id, 'meta_addon_picture_url'); $meta_addon_picture_url = get_meta($information->ic_id, 'meta_addon_picture_url');
if (!empty($meta_addon_picture)) { if (!empty($meta_addon_picture)) {
if (!empty($meta_addon_picture_url)) { if (!empty($meta_addon_picture_url)) {
$template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><a href="' . $meta_addon_picture_url . '"> <img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '"></a></div>', $template); // $template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><a href="' . $meta_addon_picture_url . '"> <img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '"></a></div>', $template);
} else { } else {
$template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">' . $template_TrainSearch . '</div>', $template); // $template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">' . $template_TrainSearch . '</div>', $template);
} }
} }
//顶部视频 //顶部视频
$meta_news_video = get_meta($information->ic_id, 'meta_news_video'); // $meta_news_video = get_meta($information->ic_id, 'meta_news_video');
$meta_video_picture = get_meta($information->ic_id, 'meta_video_picture'); // $meta_video_picture = get_meta($information->ic_id, 'meta_video_picture');
if (!empty($meta_news_video) && !empty($meta_video_picture)) { // if (!empty($meta_news_video) && !empty($meta_video_picture)) {
$template = str_replace('<!--@TOP-VIDEO@-->', '<div class="detailtopbanner"><video autoplay="" controls="controls" id="bgvid" poster="' . $meta_video_picture . '" src="' . $meta_news_video . '" style="position: inherit;"> </video></div>', $template); // $template = str_replace('<!--@TOP-VIDEO@-->', '<div class="detailtopbanner"><video autoplay="" controls="controls" id="bgvid" poster="' . $meta_video_picture . '" src="' . $meta_news_video . '" style="position: inherit;"> </video></div>', $template);
} // }
if (is_file('D:/wwwroot/origin-data.chinahighlights.com/css/mobile-first.css')) {//主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速 if (is_file('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css')) {//主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-data.chinahighlights.com/css/mobile-first.css')); $main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css'));
} else { } else {
$main_css_string = compress_css(GET_HTTP('https://proxy-data.chinahighlights.com/css/mobile-first.css')); $main_css_string = compress_css(GET_HTTP('https://origin-www.globalhighlights.com/css/gh-global.css'));
} }
$template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template); $template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template);
//额外样式 //额外样式
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css'); $meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
if (!empty($meta_addon_css)) { if (!empty($meta_addon_css)) {
if ($meta_addon_css == 'https://proxy-data.chinahighlights.com/css/tour-detail-former.css' && is_file('D:/wwwroot/origin-data.chinahighlights.com/css/tour-detail-former.css')) { // if ($meta_addon_css == 'https://proxy-data.chinahighlights.com/css/tour-detail-former.css' && is_file('D:/wwwroot/origin-data.chinahighlights.com/css/tour-detail-former.css')) {
$meta_addon_css_string = compress_css(file_get_contents('D:/wwwroot/origin-data.chinahighlights.com/css/tour-detail-former.css')); //$meta_addon_css_string = compress_css(file_get_contents('D:/wwwroot/origin-data.chinahighlights.com/css/tour-detail-former.css'));
} else { // } else {
$meta_addon_css_string = compress_css(GET_HTTP($meta_addon_css)); $meta_addon_css_string = compress_css(GET_HTTP($meta_addon_css));
} // }
$template = str_replace('<!--@ADDON-CSS@-->', '<style type="text/css">' . $meta_addon_css_string . '</style>', $template); $template = str_replace('<!--@ADDON-CSS@-->', '<style type="text/css">' . $meta_addon_css_string . '</style>', $template);
} }
//额外js //额外js
@ -1074,12 +1076,12 @@ class Information extends CI_Controller
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template); $template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
//替换内容中各种标签 //替换内容中各种标签
$tag_why_us = $this->load->view($template_path . '-why-us', false, true); //$tag_why_us = $this->load->view($template_path . '-why-us', false, true);
$template = str_replace('<!--@TAG-WHY-US@-->', $tag_why_us, $template); // $template = str_replace('<!--@TAG-WHY-US@-->', $tag_why_us, $template);
//Google广告代码 //Google广告代码
//if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) { //if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) {
$template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161" data-matched-content-rows-num="2,2" data-matched-content-columns-num="1,3" data-matched-content-ui-type="image_stacked,image_stacked"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template); //$template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161" data-matched-content-rows-num="2,2" data-matched-content-columns-num="1,3" data-matched-content-ui-type="image_stacked,image_stacked"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template);
//} //}
//社媒分享图片 //社媒分享图片
$full_ic_photo = ''; $full_ic_photo = '';
@ -1092,8 +1094,8 @@ class Information extends CI_Controller
$template = str_replace('<!--@OG:IMAGE@-->', '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">', $template); $template = str_replace('<!--@OG:IMAGE@-->', '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">', $template);
} }
//设置图片尺寸 //设置图片尺寸
if (is_dir('D:/wwwroot/origin-images.chinahighlights.com') && is_dir('D:/wwwroot/origin-www.chinahighlights.com')) { if (is_dir('D:/wwwroot/origin-images.chinahighlights.com') && is_dir('D:/wwwroot/origin-www.globalhighlights.com')) {
$template = $this->html_optimize_lib->set_image_size_local($template, 'D:/wwwroot/origin-www.chinahighlights.com', 'D:/wwwroot/origin-images.chinahighlights.com'); $template = $this->html_optimize_lib->set_image_size_local($template, 'D:/wwwroot/origin-www.globalhighlights.com', 'D:/wwwroot/origin-images.chinahighlights.com');
} else { } else {
$template = $this->html_optimize_lib->set_image_size($template); $template = $this->html_optimize_lib->set_image_size($template);
} }

@ -2312,7 +2312,7 @@
<input type="checkbox" name="ignore_url_check" id="ignore_url_check"/>忽略URL重复 <input type="checkbox" name="ignore_url_check" id="ignore_url_check"/>忽略URL重复
</label> </label>
<div class="clearfix"></div> <div class="clearfix"></div>
<?php if (in_array($this->config->item('site_code'), array('ch', 'cht', 'gm', 'ah', 'ct','chinatravel'))) { ?> <?php if (in_array($this->config->item('site_code'), array('ch', 'cht', 'gm', 'ah', 'gh', 'ct','chinatravel'))) { ?>
<label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;"> <label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;">
<input type="checkbox" name="auto_update_cache_checkbox" id="auto_update_cache_checkbox" <input type="checkbox" name="auto_update_cache_checkbox" id="auto_update_cache_checkbox"
onclick="get_update_cache_url();" value="<?php echo $information->ic_url; ?>"/>静态更新 onclick="get_update_cache_url();" value="<?php echo $information->ic_url; ?>"/>静态更新

@ -0,0 +1,21 @@
<div class="pagetop">
<?php if (!empty($ic_photo)) { ?>
<img src="<?php echo 'https://images.globalhighlights.com'.$ic_photo; ?>"
alt="<?php echo !empty($ic_title)?$ic_title:'H1 title globalhighlights mobile first template'; ?>" class="img-responsive">
<?php } ?>
<div class="aboutustop">
<div class="main_content_pc" style="float: none;">
<div id="crumbNav"><a href="/" data-count="<?php echo count($breadcrumb_data) ?>">Home</a>
<?php foreach ($breadcrumb_data as $index => $item) {?>
<a href="<?php echo $item['ic_url'] ?>" data-index="<?php echo $index ?>" data-is-id="<?php echo $item['is_id'] ?>"><?php echo $item['ic_url_title'] ?></a>
<?php }?>
</div>
<div class="topinfo">
<h1><?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?></h1>
<div class="author_info">By <em><?php echo !empty($author)?$author->OPI_FirstName:'author nickname'; ?></em> | Updated <?php echo date("M. j, Y",time()); ?></div>
</div>
</div>
</div>
</div>

@ -0,0 +1,275 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
<!--@TITLE@-->
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta name="apple-mobile-web-app-title" content="Global Highlights - Since 2018!">
<meta name="keywords" content="<!--@KEYWORDS@-->">
<meta name="description" content="<!--@DESCRIPTION@-->">
<!--@OG:IMAGE@-->
<link rel="canonical" href="<!--@CANONICAL@-->">
<link rel="shortcut icon" href="https://www.globalhighlights.com/favicon.ico"/>
<link rel="dns-prefetch" href="https://data.globalhighlights.com">
<link rel="dns-prefetch" href="https://images.globalhighlights.com">
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
<!--@MAIN-CSS@-->
<!--@ADDON-CSS@-->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MNKHRM5');</script>
<!-- End Google Tag Manager -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MNKHRM5"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<script>
((doc, buttonId, contentId) => {
doc.addEventListener('DOMContentLoaded', () => {
var moreButton = doc.getElementById(buttonId);
var contentDiv = doc.getElementById(contentId);
if (moreButton === null || contentDiv === null) {
console.error('CHECK MORE config error');
return;
}
moreButton.addEventListener('click', () => {
moreButton.classList.add('gh-animate-fade-out');
setTimeout(() => {
moreButton.classList.add('gh-display-none');
}, 80);
contentDiv.classList.remove('gh-display-none');
setTimeout(() => {
contentDiv.classList.remove('gh-animate-slide-down');
contentDiv.classList.add('gh-animate-slide-up');
}, 0);
});
});
})(document, 'checkMoreButton', 'moreContentDiv');
</script>
<!--PC头部-->
<header class="headerbar" id="header">
<div class="topnavigation">
<a href="/" class="p_toplogo"> <img src="https://data.chinahighlights.com/image/aboutus/logo-gh.png"
alt="Global Highlights logo" class="asiahighlightslogo img-responsive"></a>
<div class="p_topnavigation">
<ul class="pctopnavi">
<li class="dropdown"><a class="p_topnavilink">Destinations</a>
<div class="destinationspc dropdown-content">
<div class="inspirationinfo">
<div class="inspirationlist besttime">
<div class="inspirationtitle">East Asia Destinations</div>
<div class="listtour">
<ul class="inspiration">
<li><a href="/china/tours" >China</a></li>
<li><a href="/japan/tours" > Japan</a></li>
</ul>
</div>
</div>
<div class="inspirationlist topthings">
<div class="inspirationtitle">Southeast Asia Destinations</div>
<div class="listtour">
<ul class="inspiration">
<li><a href="/thailand/tours" >Thailand</a></li>
<li><a href="/vietnam/tours" >Vietnam</a></li>
<li><a href="/india/tours" >India</a></li>
</ul>
</div>
</div>
<div class="inspirationlist vacationtype">
<div class="inspirationtitle">More...</div>
<ul class="inspiration">
<li><a href="/egypt/tours" >Egypt</a></li>
<li><a href="/turkey/tours" >Turkey</a></li>
<li><a href="/morocco/tours" >Morocco</a></li>
</ul>
</div>
</div>
</div>
</li>
<li class="dropdown"><a class="p_topnavilink">Tours</a>
</li>
<li class="dropdown"><a href="/about" class="p_topnavilink" >About Us</a></li>
<li class="dropdown" style="padding-top: 25px;"><a href="/contactus" class="p_topnavilink contactbutton" >Contact Us</a>
</li>
<li class="dropdown">
<div class="siteSearch">
<form class="searchtextbox" id="searchbox_001281624266240652297:cl1fy1cxepi"
name="googlesreach" action="https://www.asiahighlights.com/sitesearch">
<input type="hidden" value="001281624266240652297:cl1fy1cxepi" name="cx">
<input type="hidden" value="FORID:9" name="cof">
<input type="text" onfocus="this.value = ''" class="strkeys" placeholder="site search"
name="q" style="width: 225px;">
<input type="image" class="submits"
src="https://data.chinahighlights.com/pic/pc-top-navigation-web-search-bg.png"
width="25px">
<input type="hidden" name="__ftoken__"
value="MTU5ODMzNDc2NDQ0NA==.3664784f0395175e7de44382781cd7f7cb647e2a">
</form>
</div>
</li>
</ul>
</div>
</div>
</header>
<!--PC头部 结束-->
<!--PC和移动端头部图-->
<div class="main_content">
<div class="main_content_pc">
<div class="pc_content">
<section>
<!--PC正文-->
</section>
</div>
<!--@TIPS-RIGHT@-->
</div>
<!--@ARTICLENEXT@-->
<!--PC正文 结束-->
</div>
<!--PC底部-->
<div class="infotailor">
<div class="infotailorword">We are here to help you...<br> Start planning your tailor-made global tour with 1-1
help from our travel advisors.
<div class="infotailormade"><a href="/contactus" >Create My Trip</a></div>
</div>
</div>
<div id="footer">
<div class="footerContent">
<div class="footerFeatures">
<div class=" whyuscontent">
<div class="featureTitle">100% Tailor-made</div>
<ul>
<li>Your timetable, your pace, unlimited changes without charge.</li>
</ul>
</div>
<div class=" whyuscontent">
<div class="featureTitle">Authentic</div>
<ul>
<li>Visit local families. rural farmers, and experience local life.</li>
</ul>
</div>
<div class=" whyuscontent">
<div class="featureTitle">Quality</div>
<ul>
<li>Our award winning service is backed up by a money back guarantee. We constantly review, inspect, and train our handpicked team.</li>
</ul>
</div>
<div class=" whyuscontent">
<div class="featureTitle">Top Reviews</div>
<ul>
<li>Over 10,000 travelers choose us per year, including celebrities, royalty and Australian Geographic Magazines team. And TripAdvisor Certificate of Excellence Winner Year on Year. </li>
</ul>
</div>
<div class=" partner">
<ul class="withBorder">
<li><a href="/about" rel="nofollow">About us</a></li>
<li><a href="/contactus" rel="nofollow">Contact us</a></li>
<li>Follow Us <a class="social_media" title="Follow us on Facebook" rel="nofollow" href="https://www.facebook.com/GlobalHighlightsTravel" target="_blank"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<path id="facebook" fill="#ffffff" d="M17.252,11.106V8.65c0-0.922,0.611-1.138,1.041-1.138h2.643V3.459l-3.639-0.015 c-4.041,0-4.961,3.023-4.961,4.961v2.701H10v4.178h2.336v11.823h4.916V15.284h3.316l0.428-4.178H17.252z"></path>
</svg></a>
<a class="social_media" title="Share us on Twitter" rel="nofollow" href="https://twitter.com/GlobalHighligh1" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style=" fill: #fff; ">
<path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"></path>
</svg></a>
<a class="social_media" title="Share us on Instagram" rel="nofollow" href="https://www.instagram.com/globalhighlightstour/" target="_blank"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="25px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<path id="instagram" fill="#ffffff" d="M22.107,3.415H7.893c-2.469,0-4.479,2.007-4.479,4.477v4.73v9.486c0,2.469,2.01,4.479,4.479,4.479h14.215 c2.469,0,4.479-2.01,4.479-4.479v-9.486v-4.73C26.586,5.421,24.576,3.415,22.107,3.415 M23.393,6.086l0.512-0.004v0.511v3.416 l-3.916,0.014l-0.012-3.928L23.393,6.086z M11.693,12.622c0.742-1.028,1.945-1.7,3.307-1.7s2.564,0.672,3.307,1.7 c0.484,0.67,0.771,1.49,0.771,2.379c0,2.248-1.828,4.078-4.078,4.078c-2.248,0-4.078-1.83-4.078-4.078 C10.922,14.112,11.211,13.292,11.693,12.622 M24.328,22.107c0,1.225-0.994,2.219-2.221,2.219H7.893 c-1.225,0-2.219-0.994-2.219-2.219v-9.486h3.459C8.832,13.356,8.664,14.159,8.664,15c0,3.494,2.842,6.335,6.336,6.335 s6.336-2.842,6.336-6.335c0-0.842-0.17-1.645-0.467-2.379h3.459V22.107z"></path>
</svg></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<div class="bottomlogo">
<div class="footerbox">
<img src="https://data.asiahighlights.com/grey.gif"
originalsrc="https://data.chinahighlights.com/image/aboutus/gh-bottom-logo.png" loader="lazy" class="img-responsive bottomlogopc">
<div class="bottomcopyright">© 2016-2021 Asia Highlights — Discovery Your Way! </div>
<div class="bottomprivacy"><a href="/privacy.htm" >Privacy Policy</a> | <a
href="/terms-of-use.htm" >Terms</a></div>
</div>
</div>
<!--PC底部 结束-->
<!--@PRODUCT-JS@-->
<!--@ADDON-JS@-->
<script>eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('8.R=10;(4(){3 h=b 26();4 11(X){8.R=X&&X.1I===\'1b\'?h.1V==1:10;1c()}h.1T=11;h.1Z=11;h.S=\'1M:1R/1x;1F,1Q/1P=\'})();5(!c.g){c.g=(4(){3 1u=y.M.1S;3 P=4(l){6 I l==="4"||1u.Q(l)==="[19 1L]"};3 1j=4(D){3 f=1O(D);5(1N(f)){6 0}5(f===0||!1Y(f)){6 f}6(f>0?1:-1)*o.1X(o.20(f))};3 1y=o.1U(2,1W)-1;3 1a=4(D){3 9=1j(D);6 o.1G(o.1H(9,0),1y)};6 4 g(J){3 C=E;3 U=y(J);5(J==p){F b H("c.g 1K 1J 1E-1D 19 - V p 1k B")}3 n=j.m>1?j[1]:2o B;3 T;5(I n!=="B"){5(!P(n)){F b H("c.g: 2q 2j, 2i 2k 2l 2m 2n a 4")}5(j.m>2){T=j[2]}}3 9=1a(U.m);3 A=P(C)?y(b C(9)):b c(9);3 k=0;3 d;1l(k<9){d=U[k];5(n){A[k]=I T==="B"?n(d,k):n.Q(T,d,k)}z{A[k]=d}k+=1}A.m=9;6 A}}())}5(!c.M.v){c.M.v=4(u){3 T,k;5(E==p){F b H("E 1i p 1k V 2p")}3 O=y(E);3 9=O.m>>>0;5(I u!=="4"){F b H(u+" 1i V a 4")}5(j.m>1){T=j[1]}k=0;1l(k<9){3 d;5(k 13 O){d=O[k];u.Q(T,d,k,O)}k++}}}4 1c(2h){3 14=4(i){i.W("1b",4(){i.r.q=1});5(8.R){i.1z("S",i.1B("1A").25(\'.28\',\'.1x\'))}z{i.1z("S",i.1B("1A"))}};3 1p=c.g(e.1q("h[1C=27]"));1p.v(4(7,Y){7.r.q=0;7.r.1w="q 0.18 1e-13-1m";14(7)});3 w=1o();w();4 12(l,1s,1v){3 N=p,L=b 1r();6 4(){3 K=b 1r();22(N);5(K-L>=1v){l();L=K}z{N=21(l,1s)}}}4 1h(1n){3 16=1n.24();6{15:16.15+8.23-e.t.2e,1t:16.1t+8.2d-e.t.2g}}4 1o(){3 G=c.g(e.1q("h[1C=2f]"));G.v(4(7,Y){7.r.q=0;7.r.1w="q 0.18 1e-13-1m"});6 4(){3 1g=8.2a;3 x=(e.t&&e.t.x)||(e.1d&&e.1d.x);G=G.29(4(7,Y){3 1f=1h(7).15;3 Z=1f<1g+x;5(Z){14(7)}6!Z})}}5(8.W){8.W("2c",12(w,s,s),10)}z{5(8.17){8.17("2b",12(w,s,s))}}};',62,151,'|||var|function|if|return|element|window|len||new|Array|kValue|document|number|from|img|target|arguments||fn|length|mapFn|Math|null|opacity|style|500|documentElement|callback|forEach|lazyloader|scrollTop|Object|else||undefined||value|this|throw|lazyImageList|TypeError|typeof|arrayLike|curTime|startTime|prototype|timeout||isCallable|call|isSupportWebp|src||items|not|addEventListener|event|index|hasVisible|false|getResult|throttle|in|loadImageByUrl|top|box|attachEvent|5s|object|toLength|load|createImageLoader|body|ease|offsetTop|seeHeight|getOffset|is|toInteger|or|while|out|el|createLazyloader|imageList|querySelectorAll|Date|delay|left|toStr|atleast|transition|webp|maxSafeInteger|setAttribute|originalsrc|getAttribute|loader|like|array|base64|min|max|type|an|requires|Function|data|isNaN|Number|vuUAAA|UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA|image|toString|onerror|pow|width|53|floor|isFinite|onload|abs|setTimeout|clearTimeout|pageYOffset|getBoundingClientRect|replace|Image|ready|jpg|filter|innerHeight|onscroll|scroll|pageXOffset|clientTop|lazy|clientLeft|settings|the|provided|second|argument|must|be|void|defined|when'.split('|'),0,{}))
function loadScriptByAsync(src) {var asyncScript = document.createElement("script");asyncScript.async = true;asyncScript.crossorigin = "anonymous";asyncScript.src = src;firstScript=document.getElementsByTagName("script")[0];firstScript.parentNode.insertBefore(asyncScript, firstScript);}</script>
<!--@IN-ARTICLE-GOOGLE@-->
<!--@ADDTHIS-WIDGET@-->
</body>
</html>

@ -0,0 +1,179 @@
<h2 style="text-align: center;">Recommended Articles</h2>
<div class="swiper" id='recommendedArticles'>
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="How to Plan a 2-Week Itinerary to Visit Thailand and Cambodia" >
<div class="nextarticlename">
<a href="/thailand/2-week-trip-to-thailand-and-cambodia"> How to Plan a 2-Week Itinerary to Visit Thailand and Cambodia </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Best (and Worst) Time to Visit Thailand &amp; When is the Rainy Season" >
<div class="nextarticlename">
<a href="/thailand/best-time-to-visit"> Best (and Worst) Time to Visit Thailand &amp; When is the Rainy Season </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Top Things to Do in Thailand" >
<div class="nextarticlename">
<a href="/thailand/top-things-to-do"> Top Things to Do in Thailand </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Food and Drinks in Chiang Rai" >
<div class="nextarticlename">
<a href="/thailand/chiang-rai/food-and-drinks"> Food and Drinks in Chiang Rai </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Top Thai Historical Places " >
<div class="nextarticlename">
<a href="/thailand/top-historical-places"> Top Thai Historical Places </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="30 Famous Southeast Asian Foods That You Must Try At Least Once" >
<div class="nextarticlename">
<a href="/southeast-asia/top-dishes"> 30 Famous Southeast Asian Foods That You Must Try At Least Once </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Best Places to Visit in Southeast Asia for First-Timers" >
<div class="nextarticlename">
<a href="/southeast-asia/top-places-to-visit"> Best Places to Visit in Southeast Asia for First-Timers </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="The 30 Most Beautiful Places in Southeast Asia: Don't Miss These!" >
<div class="nextarticlename">
<a href="/southeast-asia/most-beautiful-places"> The 30 Most Beautiful Places in Southeast Asia: Don't Miss These! </a>
</div>
</div></div>
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-pagination"></div>
</div>
<h2 style="text-align: center;">Recommended Tours</h2>
<div class="swiper" id='recommendedArticles'>
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="How to Plan a 2-Week Itinerary to Visit Thailand and Cambodia" >
<div class="nextarticlename">
<a href="/thailand/2-week-trip-to-thailand-and-cambodia"> How to Plan a 2-Week Itinerary to Visit Thailand and Cambodia </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Best (and Worst) Time to Visit Thailand &amp; When is the Rainy Season" >
<div class="nextarticlename">
<a href="/thailand/best-time-to-visit"> Best (and Worst) Time to Visit Thailand &amp; When is the Rainy Season </a>
</div>
</div>
</div>
<div class="swiper-slide">
<div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Top Things to Do in Thailand" >
<div class="nextarticlename">
<a href="/thailand/top-things-to-do"> Top Things to Do in Thailand </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Food and Drinks in Chiang Rai" >
<div class="nextarticlename">
<a href="/thailand/chiang-rai/food-and-drinks"> Food and Drinks in Chiang Rai </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Top Thai Historical Places " >
<div class="nextarticlename">
<a href="/thailand/top-historical-places"> Top Thai Historical Places </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="30 Famous Southeast Asian Foods That You Must Try At Least Once" >
<div class="nextarticlename">
<a href="/southeast-asia/top-dishes"> 30 Famous Southeast Asian Foods That You Must Try At Least Once </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="Best Places to Visit in Southeast Asia for First-Timers" >
<div class="nextarticlename">
<a href="/southeast-asia/top-places-to-visit"> Best Places to Visit in Southeast Asia for First-Timers </a>
</div>
</div></div>
<div class="swiper-slide"><div class="nextarticle">
<img src="https://images.chinahighlights.com/allpicture/2014/08/6d9644d4ab1d466083923cea_cut_600x550_251.jpg" class="img-responsive" alt="The 30 Most Beautiful Places in Southeast Asia: Don't Miss These!" >
<div class="nextarticlename">
<a href="/southeast-asia/most-beautiful-places"> The 30 Most Beautiful Places in Southeast Asia: Don't Miss These! </a>
</div>
</div></div>
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-pagination"></div>
</div>
<!-- Swiper JS -->
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<!-- Initialize Swiper -->
<script>
var swiper = new Swiper("#recommendedArticles", {
cssMode: true,
keyboard: true,
slidesPerView: 4,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
},
pagination: {
el: ".swiper-pagination",
clickable: true
}
});
</script>

@ -0,0 +1,28 @@
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://www.globalhighlights.com/"
}
<?php foreach ($breadcrumb_data as $index => $item) {?>
,{
"@type": "ListItem",
"position": <?php echo ($index + 2) ?>,
"name": "<?php echo $item['ic_url_title'] ?>",
"item": "https://www.globalhighlights.com<?php echo $item['ic_url'] ?>"
}
<?php }?>
<?php if ($information->ic_url != '/') {?>
,{
"@type": "ListItem",
"position": <?php echo (count($breadcrumb_data) + 2) ?>,
"name": "<?php echo $information->ic_title ?>"
}
<?php }?>
]
}
</script>

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save