diff --git a/application/config/config.php b/application/config/config.php
index 657ae842..b6c3886a 100644
--- a/application/config/config.php
+++ b/application/config/config.php
@@ -2,8 +2,8 @@
?>
array('site_code' => 'ch', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'https://www.chinahighlights.com', 'site_image_url' => 'https://images.chinahighlights.com', 'site_authors' => array('TDJ', 'ycc'), 'site_user' => ',ycc,'),
'ah' => array('site_code' => 'ah', 'site_id' => 141, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => 'https://images.asiahighlights.com', 'site_url' => 'https://www.asiahighlights.com', 'site_sitemap' => '', 'site_authors' => array('X', 'sfx'), 'site_user' => array(',ycc,sfx,X,')),
@@ -434,360 +434,139 @@ $config['site'] = array(
);
//静态文件生成路径
-$config['cache']['jp']['cache_path'] = 'D:\wwwcache-intl\arachina.com';
-$config['cache']['gm']['cache_path'] = 'D:\wwwcache-gm\chinarundreisen.com';
-$config['cache']['vc']['cache_path'] = 'D:\wwwcache-intl\voyageschine.com';
+$config['cache']['jp']['cache_path'] = 'D:\wwwcache-intl\arachina.com';
+$config['cache']['gm']['cache_path'] = 'D:\wwwcache-gm\chinarundreisen.com';
+$config['cache']['vc']['cache_path'] = 'D:\wwwcache-intl\voyageschine.com';
$config['cache']['vac']['cache_path'] = 'D:\wwwcache-intl\viaje-a-china.com';
-$config['cache']['ru']['cache_path'] = 'D:\wwwcache-intl\chinahighlights.ru';
-$config['cache']['it']['cache_path'] = 'D:\wwwcache-intl\viaggio-in-cina.it';
+$config['cache']['ru']['cache_path'] = 'D:\wwwcache-intl\chinahighlights.ru';
+$config['cache']['it']['cache_path'] = 'D:\wwwcache-intl\viaggio-in-cina.it';
-$config['cache']['gh_jp']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.jp';
-$config['cache']['gh_gm']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.de';
-$config['cache']['gh_vc']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.fr';
+$config['cache']['gh_jp']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.jp';
+$config['cache']['gh_gm']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.de';
+$config['cache']['gh_vc']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.fr';
$config['cache']['gh_vac']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.es';
-$config['cache']['gh_ru']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.ru';
-$config['cache']['gh_it']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.it';
-
-/*
-globalhighlights.jp
-globalhighlights.de
-globalhighlights.fr
-globalhighlights.es
-globalhighlights.ru
-globalhighlights.it
-*/
+$config['cache']['gh_ru']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.ru';
+$config['cache']['gh_it']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.it';
//静态文件站点域名
-$config['cache']['jp']['site_url'] = 'https://www.arachina.com';
-$config['cache']['gm']['site_url'] = 'https://www.chinarundreisen.com';
-$config['cache']['vc']['site_url'] = 'https://www.voyageschine.com';
+$config['cache']['jp']['site_url'] = 'https://www.arachina.com';
+$config['cache']['gm']['site_url'] = 'https://www.chinarundreisen.com';
+$config['cache']['vc']['site_url'] = 'https://www.chinahighlights.fr';
$config['cache']['vac']['site_url'] = 'https://www.viaje-a-china.com';
-$config['cache']['ru']['site_url'] = 'https://www.chinahighlights.ru';
-$config['cache']['it']['site_url'] = 'https://www.viaggio-in-cina.it';
+$config['cache']['ru']['site_url'] = 'https://www.chinahighlights.ru';
+$config['cache']['it']['site_url'] = 'https://www.viaggio-in-cina.it';
-$config['cache']['gh_jp']['site_url'] = 'https://www.globalhighlights.jp';
-$config['cache']['gh_gm']['site_url'] = 'https://www.globalhighlights.de';
-$config['cache']['gh_vc']['site_url'] = 'https://www.globalhighlights.fr';
+$config['cache']['gh_jp']['site_url'] = 'https://www.globalhighlights.jp';
+$config['cache']['gh_gm']['site_url'] = 'https://www.globalhighlights.de';
+$config['cache']['gh_vc']['site_url'] = 'https://www.globalhighlights.fr';
$config['cache']['gh_vac']['site_url'] = 'https://www.globalhighlights.es';
-$config['cache']['gh_ru']['site_url'] = 'https://www.globalhighlights.ru';
-$config['cache']['gh_it']['site_url'] = 'https://www.globalhighlights.it';
+$config['cache']['gh_ru']['site_url'] = 'https://www.globalhighlights.ru';
+$config['cache']['gh_it']['site_url'] = 'https://www.globalhighlights.it';
//静态文件更新接口
-$config['cache']['jp']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['gm']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['vc']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['jp']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['gm']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['vc']['cache_api'] = '/info.php/information/update_cache/';
$config['cache']['vac']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['ru']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['it']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['ru']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['it']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['gh_jp']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['gh_gm']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['gh_vc']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['gh_jp']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['gh_gm']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['gh_vc']['cache_api'] = '/info.php/information/update_cache/';
$config['cache']['gh_vac']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['gh_ru']['cache_api'] = '/info.php/information/update_cache/';
-$config['cache']['gh_it']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['gh_ru']['cache_api'] = '/info.php/information/update_cache/';
+$config['cache']['gh_it']['cache_api'] = '/info.php/information/update_cache/';
//静态文件更新接口参数
-$config['cache']['jp']['cache_api_para'] = 'cache_url';
-$config['cache']['gm']['cache_api_para'] = 'cache_url';
-$config['cache']['vc']['cache_api_para'] = 'cache_url';
+$config['cache']['jp']['cache_api_para'] = 'cache_url';
+$config['cache']['gm']['cache_api_para'] = 'cache_url';
+$config['cache']['vc']['cache_api_para'] = 'cache_url';
$config['cache']['vac']['cache_api_para'] = 'cache_url';
-$config['cache']['ru']['cache_api_para'] = 'cache_url';
-$config['cache']['it']['cache_api_para'] = 'cache_url';
+$config['cache']['ru']['cache_api_para'] = 'cache_url';
+$config['cache']['it']['cache_api_para'] = 'cache_url';
-$config['cache']['gh_jp']['cache_api_para'] = 'cache_url';
-$config['cache']['gh_gm']['cache_api_para'] = 'cache_url';
-$config['cache']['gh_vc']['cache_api_para'] = 'cache_url';
+$config['cache']['gh_jp']['cache_api_para'] = 'cache_url';
+$config['cache']['gh_gm']['cache_api_para'] = 'cache_url';
+$config['cache']['gh_vc']['cache_api_para'] = 'cache_url';
$config['cache']['gh_vac']['cache_api_para'] = 'cache_url';
-$config['cache']['gh_ru']['cache_api_para'] = 'cache_url';
-$config['cache']['gh_it']['cache_api_para'] = 'cache_url';
-
-//本地测试用 - lmr
-if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '202.103.68.62:9999') {
- $config['site']['jp']['site_url'] = 'http://202.103.68.62:9093';
- $config['site']['gm']['site_url'] = 'http://202.103.68.62:9094';
- $config['site']['vc']['site_url'] = 'http://202.103.68.62:9095';
- $config['site']['vac']['site_url'] = 'http://202.103.68.62:9096';
- $config['site']['ru']['site_url'] = 'http://202.103.68.62:9097';
- $config['site']['it']['site_url'] = 'http://202.103.68.62:9098';
-}
-
-//本地测试用 - lyy
-if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '202.103.68.34:9999' || $_SERVER['HTTP_HOST'] == 'localhost:9999') {
- $config['site']['sht']['site_url'] = 'http://202.103.68.34:8880';
- $config['site']['gl']['site_url'] = 'http://202.103.68.34:8881';
- $config['site']['diy']['site_url'] = 'http://202.103.68.34:9091';
-}
-
-//德语网站信息平台-TDY
-if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '144.76.185.44:8576') {
- $config['cache']['gm']['cache_path'] = 'C:\inetpub\wwwroot\gmsite\static';
-}
-
-//country控制器用到了
-//信息类型
-$config['InfoType_country'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '基本数据' => 'n_facts',
- '国家艺术' => 'n_arts',
- '国家文化' => 'n_culture',
- '国家概述' => 'n_overview',
- '国家图片' => 'n_photos',
- '国家景点' => 'n_attraction',
- '国家旅游' => 'n_travel',
- '国家交通' => 'n_transport',
- '国家天气' => 'n_weather',
- '国家节庆' => 'n_festival',
- '国家美食' => 'n_food',
- '国家历史' => 'n_history',
- '国家地图' => 'n_map',
- '民族传统和文化遗产' => 'n_national',
- '产品附加信息' => 'product',
- '旅游工具箱' => 'n_tools',
-);
-
-//province控制器用到了
-$config['InfoType_province'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '基本数据' => 'p_facts',
- '地图' => 'p_map',
- '地图详细' => 'p_map_detail',
- '交通' => 'p_transport',
- '节庆' => 'p_festival',
- '天气' => 'p_weather',
- '旅游建议' => 'p_tips',
- '热门旅游城市' => 'p_popular_city',
- '产品附加信息' => 'product',
-);
-
-//city控制器用到了
-$config['InfoType_city'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '简介' => 'c_overview',
- '关于' => 'c_about',
- '食物' => 'c_food',
- '食物详细' => 'c_food_detail',
- '餐饮' => 'c_restaurant',
- '餐饮详细' => 'c_restaurant_detail',
- '历史' => 'c_history',
- '基本数据' => 'c_facts',
- '旅游' => 'c_travel',
- '交通' => 'c_transport',
- '地图' => 'c_map',
- '地图详细' => 'c_map_detail',
- '天气' => 'c_weather',
- '天气详细' => 'c_weather_detail',
- '购物' => 'c_shopping',
- '夜生活' => 'c_nightlife',
- '旅游建议' => 'c_tips',
- '值得做的' => 'c_todo',
- '景点概述' => 'c_attraction',
- '景点详细' => 'c_attraction_detail',
- '推荐做的' => 'c_toptodo',
- '儿童旅游' => 'c_kids',
- '推荐理由' => 'c_reason',
- '城市article' => 'c_article',
- '城市机票' => 'c_city_flights',
- '产品附加信息' => 'product',
- 'article-Place to Go' => 'a_placetogo',
- 'article-Things to Do' => 'a_thingstodo',
- 'article-Seasonal' => 'a_seasonal',
- 'article-Food' => 'a_food',
- 'article-Culture' => 'a_culture',
- 'article-Travel Tips' => 'a_traveltips',
- 'article-Tour Planning' => 'a_tourplanning',
- 'layout' => 'layout',
- '一地线路详细' => 'c_single_circuit',
- '一日游线路详细' => 'c_day_tour',
-);
-
-//special控制器用到了
-$config['InfoType_special'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '长江' => 't_yangtze_river',
- '长城' => 't_greatwall',
- '黄河' => 't_yellow_river',
- '丝路' => 't_silkroad',
- '茶马古道' => 't_tea_horse_road',
- '穆斯林' => 't_muslims_in_china',
- '自行车游' => 't_china_biking',
- '徒步' => 't_china_hiking',
- '青藏铁路' => 't_qinghai_tibet_railway',
- '水乡' => 't_water_town',
- 'Top专题' => 't_best_china',
- 'Spotlight文章' => 't_spotlight',
- '专题首页推介' => 't_topic_promotion',
- '产品附加信息' => 'product',
-);
-
-//special控制器用到了
-$config['InfoType_video'] = array(
- '不设置' => 'none',
-);
-
-//节庆
-$config['InfoType_festival'] = array(
- '不设置' => 'none',
- '民族节庆' => 'f_national',
- '传统节庆' => 'f_tradition',
- '旅游节庆' => 'f_travel',
-);
-
-//公民游
-$config['InfoType_citizen'] = array(
- '不设置' => 'none',
- '大洲' => 'w_continent',
- '国家' => 'w_country',
- '城市' => 'w_city',
- '签证信息' => 'w_visa',
- '景点目录' => 'w_attraction',
- '景点详细' => 'w_attraction_detail',
- '地图目录' => 'w_map',
- '地图详细' => 'w_map_detail',
- '产品' => 'product',
-);
+$config['cache']['gh_ru']['cache_api_para'] = 'cache_url';
+$config['cache']['gh_it']['cache_api_para'] = 'cache_url';
//可选模板
-$config['templates_i'] = array(
- '[城市]C通用模板' => 'guide_info_detail',
- '[城市]C列表模板' => 'city_info_list',
- '[城市]C首页模板' => 'city_info_index',
- '[城市]C景点列表模板' => 'city_info_attractions_list',
- '[城市]C景点详细模板' => 'city_attractions',
- '[专题]右侧广告导航模板' => 'r_right_ad',
- '[专题]T0空白' => 'r_tpl_empty',
- '[专题]T0空白(HTML构建工具)' => 'r_empty_container',
- '[专题]T0空白(H1+面包屑)' => 'r_empty2',
- '----------二级目录----------' => '------2------',
- '[专题]T2首页' => 'r_t2_index',
- '[专题]T2详细' => 'r_t2_detail',
- '----------三级目录----------' => '------3------',
- '[专题]T3首页' => 'r_tpl_empty_navi0', //=r_t3_index
- '[专题]T3列表' => 'r_tpl_empty_navi1', //=r_t3_list
- '[专题]T3列表+' => 'r_tpl_empty_navi1p', //=r_t3_list+
- '[专题]T3详细' => 'r_tpl_empty_navi2', //=r_t3_detail
- '----------四级目录----------' => '------4------',
- '[专题]T4首页' => 'r_t4_index',
- '[专题]T4列表1' => 'r_t4_list1',
- '[专题]T4列表2' => 'r_t4_list2',
- '[专题]T4详细' => 'r_t4_detail',
- '--------------------------------' => '--------------------------------',
- '[废弃]D空白模板' => 'tpl_empty',
- '[废弃]D专题-温暖' => 'warm',
- '[废弃]D专题-庄重' => 'solemn',
- '[废弃]D专题-节庆' => 'festival',
- '[废弃]D专题-促销' => 'promotion_tour',
-);
-
-//翰特产品类型,Information控制器的get_products函数有直接调用,在这里增加了信息需要去控制器写相关操作代码
-$config['ProductType_HT'] = array(
- '景点' => 't',
-);
-
-//区域类型对应字母
-$config['area_type'] = array(
- '机场' => 'a',
- '城市' => 'c',
- '大洲' => 'e',
- '节庆' => 'f',
- '团购' => 'g',
- '航空公司' => 'l',
- '国家' => 'n',
- '省份' => 'p',
- '火车站信息' => 'r',
- '新闻' => 's',
- '专题' => 't',
- '视频' => 'v',
- '大使馆' => 'y',
- '公民游' => 'z',
- '交换链接' => 'k',
- '首页' => 'h',
- 'FAQ' => 'q',
-);
-
-$config['auhtor_task_type'] = array(
- '翻译' => 'translate',
- '修改' => 'modify',
- '审核' => 'review',
- '投稿' => 'contribute',
-);
-$config['auhtor_task_status'] = array(
- '编辑中' => 'edit', //新建任务或作者编辑
- '待审核' => 'review', //作者提交,待管理员审核
- '审核通过' => 'reviewed', //审核通过,未付款,审核不通过则把状态改为“编辑中”
- '完结' => 'complete', //已付款。任务结束
-);
-$config['auhtor_task_detail_status'] = array(
- '使用的' => 'used', //表示目前正在使用的记录,用于区别草稿、版本等其他状态。原因是用同一个表保存不同属性的记录
- '原始' => 'original', //原始任务信息备份
- '版本' => 'version', //多份,每提交审核一次生成一份
-);
-//项目类型
-$config['project_types'] = array(
- 'base' => '绩效项目',
- 'dare' => '挑战项目',
- 'innovation' => '创新项目',
-);
-//项目状态
-$config['project_state'] = array(
- 'notstart' => '还没开始',
- 'runing' => '开发中',
- 'complete' => '完成',
-);
+$config['templates_i'] = [
+ '[城市]C通用模板' => 'guide_info_detail',
+ '[城市]C列表模板' => 'city_info_list',
+ '[城市]C首页模板' => 'city_info_index',
+ '[城市]C景点列表模板' => 'city_info_attractions_list',
+ '[城市]C景点详细模板' => 'city_attractions',
+ '[专题]右侧广告导航模板' => 'r_right_ad',
+ '[专题]T0空白' => 'r_tpl_empty',
+ '[专题]T0空白(HTML构建工具)' => 'r_empty_container',
+ '[专题]T0空白(H1+面包屑)' => 'r_empty2',
+ '----------二级目录----------' => '------2------',
+ '[专题]T2首页' => 'r_t2_index',
+ '[专题]T2详细' => 'r_t2_detail',
+ '----------三级目录----------' => '------3------',
+ '[专题]T3首页' => 'r_tpl_empty_navi0', //=r_t3_index
+ '[专题]T3列表' => 'r_tpl_empty_navi1', //=r_t3_list
+ '[专题]T3列表+' => 'r_tpl_empty_navi1p', //=r_t3_list+
+ '[专题]T3详细' => 'r_tpl_empty_navi2', //=r_t3_detail
+ '----------四级目录----------' => '------4------',
+ '[专题]T4首页' => 'r_t4_index',
+ '[专题]T4列表1' => 'r_t4_list1',
+ '[专题]T4列表2' => 'r_t4_list2',
+ '[专题]T4详细' => 'r_t4_detail',
+ '--------------------------------' => '--------------------------------',
+ '[废弃]D空白模板' => 'tpl_empty',
+ '[废弃]D专题-温暖' => 'warm',
+ '[废弃]D专题-庄重' => 'solemn',
+ '[废弃]D专题-节庆' => 'festival',
+ '[废弃]D专题-促销' => 'promotion_tour',
+];
//是否开启权限控制
$config['check_access'] = true;
//权限管理超级管理
-$config['access_super_manage'] = array('ycc', 'lmr', 'lyj', 'rz', 'zp');
+$config['access_super_manage'] = ['ycc', 'lmr', 'lyj', 'rz', 'zp'];
//编辑器预览样式路径
$config['css_source_cht'] = 'https://data.chinahighlights.com/css/min.php?f=/public/css/global.min.css,/css/festival-detail.css';
-$config['css_source_ch'] = 'https://data.chinahighlights.com/css/mobile-first.css';
+$config['css_source_ch'] = 'https://data.chinahighlights.com/css/mobile-first.css';
$config['css_source_gm'] = 'https://data.chinarundreisen.com/public/pkg/css/baselAlRkXMnl750806T065919409Z.css';
-$config['css_source_vc'] = 'https://data.voyageschine.com/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-vc.css';
+$config['css_source_vc'] = 'https://data.chinahighlights.fr/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-vc.css';
$config['css_source_vac'] = 'https://data.viaje-a-china.com/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-vac.css';
-$config['css_source_ru'] = 'https://data.chinahighlights.ru/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-ru.css';
-$config['css_source_it'] = 'https://data.viaggio-in-cina.it/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-it.css';
-$config['css_source_jp'] = 'https://data.arachina.com/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-jp.css';
-
-$config['css_source_sht'] = 'https://www.shanghaihighlights.com/css/css3/bootstrap/bootstrap.css';
-$config['css_source_gl'] = 'https://www.guilinchina.net/css/css3/bootstrap/bootstrap.css';
-$config['css_source_tbt'] = 'https://www.tibetguru.com/css/style.css';
-$config['css_source_mbj'] = 'https://www.mybeijingchina.com/css/layout.css';
-$config['css_source_yz'] = 'https://www.yangtzeriver.org/css/css3/bootstrap/bootstrap.css';
-$config['css_source_ah'] = 'https://data.asiahighlights.com/css/mobile-first.css';
-$config['css_source_jh'] = 'https://data.japanhighlights.com/css/mobile-first.css';
-$config['css_source_gh'] = 'https://data.globalhighlights.com/css/gh-global.css';
-$config['css_source_ct'] = 'https://data.chinatravel.com/css/min.php?f=/css/css3/bootstrap/bootstrap.css,/css/css3/style.css,/css/css3/destination-details.css';
+$config['css_source_ru'] = 'https://data.chinahighlights.ru/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-ru.css';
+$config['css_source_it'] = 'https://data.viaggio-in-cina.it/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-it.css';
+$config['css_source_jp'] = 'https://data.arachina.com/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-jp.css';
+
+$config['css_source_sht'] = 'https://www.shanghaihighlights.com/css/css3/bootstrap/bootstrap.css';
+$config['css_source_gl'] = 'https://www.guilinchina.net/css/css3/bootstrap/bootstrap.css';
+$config['css_source_tbt'] = 'https://www.tibetguru.com/css/style.css';
+$config['css_source_mbj'] = 'https://www.mybeijingchina.com/css/layout.css';
+$config['css_source_yz'] = 'https://www.yangtzeriver.org/css/css3/bootstrap/bootstrap.css';
+$config['css_source_ah'] = 'https://data.asiahighlights.com/css/mobile-first.css';
+$config['css_source_jh'] = 'https://data.japanhighlights.com/css/mobile-first.css';
+$config['css_source_gh'] = 'https://data.globalhighlights.com/css/gh-global.css';
+$config['css_source_ct'] = 'https://data.chinatravel.com/css/min.php?f=/css/css3/bootstrap/bootstrap.css,/css/css3/style.css,/css/css3/destination-details.css';
$config['css_source_chinatravel'] = 'https://data.chinatravel.com/css/newcss3/base.css';
-$config['css_source_shanghai'] = 'https://data.shanghaihighlights.com/css/css3/base.css';
-$config['css_source_beijing'] = 'https://www.mybeijingchina.com/css/css3/base.css';
+$config['css_source_shanghai'] = 'https://data.shanghaihighlights.com/css/css3/base.css';
+$config['css_source_beijing'] = 'https://www.mybeijingchina.com/css/css3/base.css';
$config['css_source_trainspread'] = 'https://data.trainspread.com/css/base.css';
$config['css_source_guilin'] = 'https://data.guilinchina.net/css/css3/base.css';
$config['css_source_hly'] = 'https://www.hualiyingtravel.com/css/csse3/base.css';
$config['css_source_ts'] = 'https://www.trainspread.com/css/bootstrap.min.css';
//静态文件生成路径
-
-$config['cache']['jp']['cache_path'] = 'D:\wwwcache-intl\arachina.com';
-$config['cache']['gm']['cache_path'] = 'D:\wwwcache-gm\chinarundreisen.com';
-$config['cache']['vc']['cache_path'] = 'D:\wwwcache-intl\voyageschine.com';
-$config['cache']['vac']['cache_path'] = 'D:\wwwcache-intl\viaje-a-china.com';
-$config['cache']['ru']['cache_path'] = 'D:\wwwcache-intl\chinahighlights.ru';
-$config['cache']['it']['cache_path'] = 'D:\wwwcache-intl\viaggio-in-cina.it';
-$config['cache']['ch']['cache_path'] = 'D:\wwwcache\chinahighlights.com';
-$config['cache']['ah']['cache_path'] = 'D:\wwwcache\asiahighlights.com';
-$config['cache']['jh']['cache_path'] = 'D:\wwwcache\japanhighlights.com';
-$config['cache']['gh']['cache_path'] = 'D:\wwwcache\globalhighlights.com';
+$config['cache']['ch']['cache_path'] = 'D:\wwwcache\chinahighlights.com';
+$config['cache']['ah']['cache_path'] = 'D:\wwwcache\asiahighlights.com';
+$config['cache']['jh']['cache_path'] = 'D:\wwwcache\japanhighlights.com';
+$config['cache']['gh']['cache_path'] = 'D:\wwwcache\globalhighlights.com';
$config['cache']['chinatravel']['cache_path'] = 'D:\wwwcache\mobile-first\chinatravel.com';
-$config['cache']['shanghai']['cache_path'] = 'D:\wwwcache\mobile-first\shanghaihighlights.com';
-$config['cache']['beijing']['cache_path'] = 'D:\wwwcache\mobile-first\mybeijingchina.com';
+$config['cache']['shanghai']['cache_path'] = 'D:\wwwcache\mobile-first\shanghaihighlights.com';
+$config['cache']['beijing']['cache_path'] = 'D:\wwwcache\mobile-first\mybeijingchina.com';
$config['cache']['trainspread']['cache_path'] = 'D:\wwwcache\mobile-first\trainspread.com';
$config['cache']['hly']['cache_path'] = 'D:\wwwcache\mobile-first\hualiyingtravel.com';
$config['cache']['guilin']['cache_path'] = 'D:\wwwcache\mobile-first\guilinchina.net';
@@ -810,423 +589,423 @@ $config['cache']['it']['cache_api_para'] = 'cache_url';
//本地测试用 - lmr
if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '202.103.68.62:9999') {
- $config['site']['jp']['site_url'] = 'http://202.103.68.62:9093';
- $config['site']['gm']['site_url'] = 'http://202.103.68.62:9094';
- $config['site']['vc']['site_url'] = 'http://202.103.68.62:9095';
- $config['site']['vac']['site_url'] = 'http://202.103.68.62:9096';
- $config['site']['ru']['site_url'] = 'http://202.103.68.62:9097';
- $config['site']['it']['site_url'] = 'http://202.103.68.62:9098';
+ $config['site']['jp']['site_url'] = 'http://202.103.68.62:9093';
+ $config['site']['gm']['site_url'] = 'http://202.103.68.62:9094';
+ $config['site']['vc']['site_url'] = 'http://202.103.68.62:9095';
+ $config['site']['vac']['site_url'] = 'http://202.103.68.62:9096';
+ $config['site']['ru']['site_url'] = 'http://202.103.68.62:9097';
+ $config['site']['it']['site_url'] = 'http://202.103.68.62:9098';
}
//本地测试用 - lyy
if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '202.103.68.34:9999' || $_SERVER['HTTP_HOST'] == 'localhost:9999') {
- $config['site']['sht']['site_url'] = 'http://202.103.68.34:8880';
- $config['site']['gl']['site_url'] = 'http://202.103.68.34:8881';
- $config['site']['diy']['site_url'] = 'http://202.103.68.34:9091';
+ $config['site']['sht']['site_url'] = 'http://202.103.68.34:8880';
+ $config['site']['gl']['site_url'] = 'http://202.103.68.34:8881';
+ $config['site']['diy']['site_url'] = 'http://202.103.68.34:9091';
}
//德语网站信息平台-TDY
if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == '144.76.185.44:8576') {
- $config['cache']['gm']['cache_path'] = 'C:\inetpub\wwwroot\gmsite\static';
+ $config['cache']['gm']['cache_path'] = 'C:\inetpub\wwwroot\gmsite\static';
}
//country控制器用到了
//信息类型
-$config['InfoType_country'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '基本数据' => 'n_facts',
- '国家艺术' => 'n_arts',
- '国家文化' => 'n_culture',
- '国家概述' => 'n_overview',
- '国家图片' => 'n_photos',
- '国家景点' => 'n_attraction',
- '国家旅游' => 'n_travel',
- '国家交通' => 'n_transport',
- '国家天气' => 'n_weather',
- '国家节庆' => 'n_festival',
- '国家美食' => 'n_food',
- '国家历史' => 'n_history',
- '国家地图' => 'n_map',
- '民族传统和文化遗产' => 'n_national',
- '产品附加信息' => 'product',
- '旅游工具箱' => 'n_tools',
-);
+$config['InfoType_country'] = [
+ '不设置' => 'none',
+ '首页' => 'root',
+ '基本数据' => 'n_facts',
+ '国家艺术' => 'n_arts',
+ '国家文化' => 'n_culture',
+ '国家概述' => 'n_overview',
+ '国家图片' => 'n_photos',
+ '国家景点' => 'n_attraction',
+ '国家旅游' => 'n_travel',
+ '国家交通' => 'n_transport',
+ '国家天气' => 'n_weather',
+ '国家节庆' => 'n_festival',
+ '国家美食' => 'n_food',
+ '国家历史' => 'n_history',
+ '国家地图' => 'n_map',
+ '民族传统和文化遗产' => 'n_national',
+ '产品附加信息' => 'product',
+ '旅游工具箱' => 'n_tools',
+];
//province控制器用到了
-$config['InfoType_province'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '基本数据' => 'p_facts',
- '地图' => 'p_map',
- '地图详细' => 'p_map_detail',
- '交通' => 'p_transport',
- '节庆' => 'p_festival',
- '天气' => 'p_weather',
- '旅游建议' => 'p_tips',
- '热门旅游城市' => 'p_popular_city',
- '产品附加信息' => 'product',
-);
+$config['InfoType_province'] = [
+ '不设置' => 'none',
+ '首页' => 'root',
+ '基本数据' => 'p_facts',
+ '地图' => 'p_map',
+ '地图详细' => 'p_map_detail',
+ '交通' => 'p_transport',
+ '节庆' => 'p_festival',
+ '天气' => 'p_weather',
+ '旅游建议' => 'p_tips',
+ '热门旅游城市' => 'p_popular_city',
+ '产品附加信息' => 'product',
+];
//city控制器用到了
-$config['InfoType_city'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '简介' => 'c_overview',
- '关于' => 'c_about',
- '食物' => 'c_food',
- '食物详细' => 'c_food_detail',
- '餐饮' => 'c_restaurant',
- '餐饮详细' => 'c_restaurant_detail',
- '历史' => 'c_history',
- '基本数据' => 'c_facts',
- '旅游' => 'c_travel',
- '交通' => 'c_transport',
- '地图' => 'c_map',
- '地图详细' => 'c_map_detail',
- '天气' => 'c_weather',
- '天气详细' => 'c_weather_detail',
- '购物' => 'c_shopping',
- '夜生活' => 'c_nightlife',
- '旅游建议' => 'c_tips',
- '值得做的' => 'c_todo',
- '景点概述' => 'c_attraction',
- '景点详细' => 'c_attraction_detail',
- '推荐做的' => 'c_toptodo',
- '儿童旅游' => 'c_kids',
- '推荐理由' => 'c_reason',
- '城市article' => 'c_article',
- '城市机票' => 'c_city_flights',
- '产品附加信息' => 'product',
- 'article-Place to Go' => 'a_placetogo',
- 'article-Things to Do' => 'a_thingstodo',
- 'article-Seasonal' => 'a_seasonal',
- 'article-Food' => 'a_food',
- 'article-Culture' => 'a_culture',
- 'article-Travel Tips' => 'a_traveltips',
- 'article-Tour Planning' => 'a_tourplanning',
- 'layout' => 'layout',
- '一地线路详细' => 'c_single_circuit',
- '一日游线路详细' => 'c_day_tour',
-);
+$config['InfoType_city'] = [
+ '不设置' => 'none',
+ '首页' => 'root',
+ '简介' => 'c_overview',
+ '关于' => 'c_about',
+ '食物' => 'c_food',
+ '食物详细' => 'c_food_detail',
+ '餐饮' => 'c_restaurant',
+ '餐饮详细' => 'c_restaurant_detail',
+ '历史' => 'c_history',
+ '基本数据' => 'c_facts',
+ '旅游' => 'c_travel',
+ '交通' => 'c_transport',
+ '地图' => 'c_map',
+ '地图详细' => 'c_map_detail',
+ '天气' => 'c_weather',
+ '天气详细' => 'c_weather_detail',
+ '购物' => 'c_shopping',
+ '夜生活' => 'c_nightlife',
+ '旅游建议' => 'c_tips',
+ '值得做的' => 'c_todo',
+ '景点概述' => 'c_attraction',
+ '景点详细' => 'c_attraction_detail',
+ '推荐做的' => 'c_toptodo',
+ '儿童旅游' => 'c_kids',
+ '推荐理由' => 'c_reason',
+ '城市article' => 'c_article',
+ '城市机票' => 'c_city_flights',
+ '产品附加信息' => 'product',
+ 'article-Place to Go' => 'a_placetogo',
+ 'article-Things to Do' => 'a_thingstodo',
+ 'article-Seasonal' => 'a_seasonal',
+ 'article-Food' => 'a_food',
+ 'article-Culture' => 'a_culture',
+ 'article-Travel Tips' => 'a_traveltips',
+ 'article-Tour Planning' => 'a_tourplanning',
+ 'layout' => 'layout',
+ '一地线路详细' => 'c_single_circuit',
+ '一日游线路详细' => 'c_day_tour',
+];
//special控制器用到了
-$config['InfoType_special'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '长江' => 't_yangtze_river',
- '长城' => 't_greatwall',
- '黄河' => 't_yellow_river',
- '丝路' => 't_silkroad',
- '茶马古道' => 't_tea_horse_road',
- '穆斯林' => 't_muslims_in_china',
- '自行车游' => 't_china_biking',
- '徒步' => 't_china_hiking',
- '青藏铁路' => 't_qinghai_tibet_railway',
- '水乡' => 't_water_town',
- 'Top专题' => 't_best_china',
- 'Spotlight文章' => 't_spotlight',
- '专题首页推介' => 't_topic_promotion',
- '产品附加信息' => 'product',
-);
+$config['InfoType_special'] = [
+ '不设置' => 'none',
+ '首页' => 'root',
+ '长江' => 't_yangtze_river',
+ '长城' => 't_greatwall',
+ '黄河' => 't_yellow_river',
+ '丝路' => 't_silkroad',
+ '茶马古道' => 't_tea_horse_road',
+ '穆斯林' => 't_muslims_in_china',
+ '自行车游' => 't_china_biking',
+ '徒步' => 't_china_hiking',
+ '青藏铁路' => 't_qinghai_tibet_railway',
+ '水乡' => 't_water_town',
+ 'Top专题' => 't_best_china',
+ 'Spotlight文章' => 't_spotlight',
+ '专题首页推介' => 't_topic_promotion',
+ '产品附加信息' => 'product',
+];
//special控制器用到了
-$config['InfoType_video'] = array(
- '不设置' => 'none',
-);
+$config['InfoType_video'] = [
+ '不设置' => 'none',
+];
//节庆
-$config['InfoType_festival'] = array(
- '不设置' => 'none',
- '民族节庆' => 'f_national',
- '传统节庆' => 'f_tradition',
- '旅游节庆' => 'f_travel',
-);
+$config['InfoType_festival'] = [
+ '不设置' => 'none',
+ '民族节庆' => 'f_national',
+ '传统节庆' => 'f_tradition',
+ '旅游节庆' => 'f_travel',
+];
//产品类型
-$config['InfoType_product'] = array(
- '不设置' => 'none',
- '线路' => 'pd_tour',
- '包价线路' => 'pd_package',
- '信息页' => 'pd_info',
- '移动端' => 'pd_phone',
-);
+$config['InfoType_product'] = [
+ '不设置' => 'none',
+ '线路' => 'pd_tour',
+ '包价线路' => 'pd_package',
+ '信息页' => 'pd_info',
+ '移动端' => 'pd_phone',
+];
//产品类型 - 德语
-$config['InfoType_product_gm'] = array(
- '不设置' => 'none',
- '线路' => 'pd_tour',
- '包价线路' => 'pd_package',
- '信息页' => 'pd_info',
- '移动端' => 'pd_phone',
- '---------' => 'split_line',
- '首页' => 'root',
- '基本数据' => 'n_facts',
- '国家艺术' => 'n_arts',
- '国家文化' => 'n_culture',
- '国家概述' => 'n_overview',
- '国家图片' => 'n_photos',
- '国家景点' => 'n_attraction',
- '国家旅游' => 'n_travel',
- '国家交通' => 'n_transport',
- '国家天气' => 'n_weather',
- '国家节庆' => 'n_festival',
- '国家美食' => 'n_food',
- '国家历史' => 'n_history',
- '国家地图' => 'n_map',
- '民族传统和文化遗产' => 'n_national',
- '产品附加信息' => 'product',
- '旅游工具箱' => 'n_tools',
-
-);
+$config['InfoType_product_gm'] = [
+ '不设置' => 'none',
+ '线路' => 'pd_tour',
+ '包价线路' => 'pd_package',
+ '信息页' => 'pd_info',
+ '移动端' => 'pd_phone',
+ '---------' => 'split_line',
+ '首页' => 'root',
+ '基本数据' => 'n_facts',
+ '国家艺术' => 'n_arts',
+ '国家文化' => 'n_culture',
+ '国家概述' => 'n_overview',
+ '国家图片' => 'n_photos',
+ '国家景点' => 'n_attraction',
+ '国家旅游' => 'n_travel',
+ '国家交通' => 'n_transport',
+ '国家天气' => 'n_weather',
+ '国家节庆' => 'n_festival',
+ '国家美食' => 'n_food',
+ '国家历史' => 'n_history',
+ '国家地图' => 'n_map',
+ '民族传统和文化遗产' => 'n_national',
+ '产品附加信息' => 'product',
+ '旅游工具箱' => 'n_tools',
+
+];
//公民游
-$config['InfoType_citizen'] = array(
- '不设置' => 'none',
- '大洲' => 'w_continent',
- '国家' => 'w_country',
- '城市' => 'w_city',
- '签证信息' => 'w_visa',
- '景点目录' => 'w_attraction',
- '景点详细' => 'w_attraction_detail',
- '地图目录' => 'w_map',
- '地图详细' => 'w_map_detail',
- '产品' => 'product',
-);
+$config['InfoType_citizen'] = [
+ '不设置' => 'none',
+ '大洲' => 'w_continent',
+ '国家' => 'w_country',
+ '城市' => 'w_city',
+ '签证信息' => 'w_visa',
+ '景点目录' => 'w_attraction',
+ '景点详细' => 'w_attraction_detail',
+ '地图目录' => 'w_map',
+ '地图详细' => 'w_map_detail',
+ '产品' => 'product',
+];
//ct站点用到了
-$config['InfoType_ct'] = array(
- '不设置' => 'none',
- '首页' => 'root',
- '简介' => 'c_overview',
- '关于' => 'c_about',
- '食物' => 'c_food',
- '食物详细' => 'c_food_detail',
- '餐饮' => 'c_restaurant',
- '餐饮详细' => 'c_restaurant_detail',
- '历史' => 'c_history',
- 'Facts信息' => 'c_facts',
- '旅游' => 'c_travel',
- '交通' => 'c_transport',
- '交通详细' => 'c_transport_detail',
- '地图' => 'c_map',
- '地图详细' => 'c_map_detail',
- '天气' => 'c_weather',
- '天气详细' => 'c_weather_detail',
- '购物' => 'c_shopping',
- '夜生活' => 'c_nightlife',
- '旅游建议' => 'c_tips',
- '景点概述' => 'c_attraction',
- '景点详细' => 'c_attraction_detail',
- '推荐做的' => 'c_toptodo',
- '城市article' => 'c_article',
- '产品' => 'c_product',
- '产品详细' => 'c_product_detail',
- '游记' => 'story',
- '一地线路详细' => 'c_single_circuit',
- '一日游线路详细' => 'c_day_tour',
-);
+$config['InfoType_ct'] = [
+ '不设置' => 'none',
+ '首页' => 'root',
+ '简介' => 'c_overview',
+ '关于' => 'c_about',
+ '食物' => 'c_food',
+ '食物详细' => 'c_food_detail',
+ '餐饮' => 'c_restaurant',
+ '餐饮详细' => 'c_restaurant_detail',
+ '历史' => 'c_history',
+ 'Facts信息' => 'c_facts',
+ '旅游' => 'c_travel',
+ '交通' => 'c_transport',
+ '交通详细' => 'c_transport_detail',
+ '地图' => 'c_map',
+ '地图详细' => 'c_map_detail',
+ '天气' => 'c_weather',
+ '天气详细' => 'c_weather_detail',
+ '购物' => 'c_shopping',
+ '夜生活' => 'c_nightlife',
+ '旅游建议' => 'c_tips',
+ '景点概述' => 'c_attraction',
+ '景点详细' => 'c_attraction_detail',
+ '推荐做的' => 'c_toptodo',
+ '城市article' => 'c_article',
+ '产品' => 'c_product',
+ '产品详细' => 'c_product_detail',
+ '游记' => 'story',
+ '一地线路详细' => 'c_single_circuit',
+ '一日游线路详细' => 'c_day_tour',
+];
//AH站点用到了
-$config['InfoType_ah'] = array(
- '国家信息' => 'country_info',
- '区域信息' => 'area_info',
- '国家信息列表页' => 'country_info_list',
- '区域信息列表页' => 'area_info_list',
- '线路' => 'pd_tour',
- '包价线路' => 'pd_package',
-);
+$config['InfoType_ah'] = [
+ '国家信息' => 'country_info',
+ '区域信息' => 'area_info',
+ '国家信息列表页' => 'country_info_list',
+ '区域信息列表页' => 'area_info_list',
+ '线路' => 'pd_tour',
+ '包价线路' => 'pd_package',
+];
//可选模板
-$config['templates'] = array(
- '通用内容模板' => 'guide_info_detail',
- '城市-列表模板' => 'city_info_list',
- '城市-首页模板' => 'city_info_index',
- '城市-首页模板(GM)' => 'city_info_index_new',
- '城市-首页模板[简]' => 'city_info_s_index',
- '城市-景点列表模板' => 'city_info_attractions_list',
- '城市-景点列表模板[简]' => 'city_info_s_attractions_list',
- '城市-特色产品模板' => 'city_info_diytour',
- '城市-一线城市首页' => 'city_info_index_one',
- '省份-首页' => "area_info_index",
- '省份-列表模板' => 'area_info_list',
- '省份-通用内容模板' => 'area_info_detail',
- '文化模板 [列表式]' => "culture_info_detail_just_list",
- '文化模板 [单页式]' => 'culture_info_detail_one_page',
- '文化模板 [导航式]' => 'culture_info_detail_with_category',
- '信息专题模板' => 'guide_top_series',
- '火车专题模板' => 'train_top_series',
- '旅游攻略' => 'travel_story',
- '节庆-详细模板' => 'festival_detail',
- '节庆-列表模板' => 'festival_list',
- '大使馆-详细页' => 'embassy_info_detail',
- '[国际站]响应式-空白模板' => 'r_tpl_empty',
- '[国际站]空白模板' => 'tpl_empty',
- '[国际站]空白模板+H1' => 'tpl_empty_h1',
- '[国际站]空白模板+H1+左导航' => 'tpl_empty_navi_h1',
- '[国际站]城市线路模板' => 'tpl_city_tour',
- '[德语站]chinareisen' => 'chinareisen',
- '[已废弃]专题-温暖' => 'warm',
- '[已废弃]专题-庄重' => 'solemn',
- '[已废弃]专题-节庆' => 'festival',
- '[已废弃]专题-线路促销' => 'promotion_tour',
- '[已废弃]城市-景点详细模板' => 'city_attractions',
- '城市-线路详细' => 'city_circuit',
- '专题模板(大)' => 'guide_big_series',
- '三峡游船' => 'yangtze',
- '城市article列表' => 'city_article_list',
- 'food列表' => 'food_list',
-);
+$config['templates'] = [
+ '通用内容模板' => 'guide_info_detail',
+ '城市-列表模板' => 'city_info_list',
+ '城市-首页模板' => 'city_info_index',
+ '城市-首页模板(GM)' => 'city_info_index_new',
+ '城市-首页模板[简]' => 'city_info_s_index',
+ '城市-景点列表模板' => 'city_info_attractions_list',
+ '城市-景点列表模板[简]' => 'city_info_s_attractions_list',
+ '城市-特色产品模板' => 'city_info_diytour',
+ '城市-一线城市首页' => 'city_info_index_one',
+ '省份-首页' => "area_info_index",
+ '省份-列表模板' => 'area_info_list',
+ '省份-通用内容模板' => 'area_info_detail',
+ '文化模板 [列表式]' => "culture_info_detail_just_list",
+ '文化模板 [单页式]' => 'culture_info_detail_one_page',
+ '文化模板 [导航式]' => 'culture_info_detail_with_category',
+ '信息专题模板' => 'guide_top_series',
+ '火车专题模板' => 'train_top_series',
+ '旅游攻略' => 'travel_story',
+ '节庆-详细模板' => 'festival_detail',
+ '节庆-列表模板' => 'festival_list',
+ '大使馆-详细页' => 'embassy_info_detail',
+ '[国际站]响应式-空白模板' => 'r_tpl_empty',
+ '[国际站]空白模板' => 'tpl_empty',
+ '[国际站]空白模板+H1' => 'tpl_empty_h1',
+ '[国际站]空白模板+H1+左导航' => 'tpl_empty_navi_h1',
+ '[国际站]城市线路模板' => 'tpl_city_tour',
+ '[德语站]chinareisen' => 'chinareisen',
+ '[已废弃]专题-温暖' => 'warm',
+ '[已废弃]专题-庄重' => 'solemn',
+ '[已废弃]专题-节庆' => 'festival',
+ '[已废弃]专题-线路促销' => 'promotion_tour',
+ '[已废弃]城市-景点详细模板' => 'city_attractions',
+ '城市-线路详细' => 'city_circuit',
+ '专题模板(大)' => 'guide_big_series',
+ '三峡游船' => 'yangtze',
+ '城市article列表' => 'city_article_list',
+ 'food列表' => 'food_list',
+];
//德语信息模板
-$config['templates_gm'] = array(
- '通用内容模板' => 'guide_info_detail',
- '城市-首页模板(GM)' => 'city_info_index',
- '文化模板 [单页式]' => 'culture_info_detail_one_page',
- '文化模板 [导航式]' => 'culture_info_detail_with_category',
- '信息专题模板' => 'guide_top_series',
- '列表式' => 'guide_info_list',
- '空白模板' => 'none',
-);
+$config['templates_gm'] = [
+ '通用内容模板' => 'guide_info_detail',
+ '城市-首页模板(GM)' => 'city_info_index',
+ '文化模板 [单页式]' => 'culture_info_detail_one_page',
+ '文化模板 [导航式]' => 'culture_info_detail_with_category',
+ '信息专题模板' => 'guide_top_series',
+ '列表式' => 'guide_info_list',
+ '空白模板' => 'none',
+];
//德语信息模板
-$config['templates_gh'] = array(
- '通用内容模板' => 'guide_info_detail',
- '带导航' => 'guide_with_nav'
-);
+$config['templates_gh'] = [
+ '通用内容模板' => 'guide_info_detail',
+ '带导航' => 'guide_with_nav',
+];
// CHT 信息模板
-$config['templates_cht'] = array(
- '通用内容模板' => 'guide_info_detail',
- '城市-列表模板' => 'city_info_list',
- '城市-首页模板' => 'city_info_index',
- '城市-首页模板[简]' => 'city_info_s_index',
- '城市-景点列表模板' => 'city_info_attractions_list',
- '城市-景点列表模板[简]' => 'city_info_s_attractions_list',
- '城市-特色产品模板' => 'city_info_diytour',
- '城市-一线城市首页' => 'city_info_index_one',
- '省份-首页' => "area_info_index",
- '省份-列表模板' => 'area_info_list',
- '省份-通用内容模板' => 'area_info_detail',
- '文化模板 [列表式]' => "culture_info_detail_just_list",
- '文化模板 [单页式]' => 'culture_info_detail_one_page',
- '文化模板 [导航式]' => 'culture_info_detail_with_category',
- '信息专题模板' => 'guide_top_series',
- '火车专题模板' => 'train_top_series',
- '旅游攻略' => 'travel_story',
- '节庆-详细模板' => 'festival_detail',
- '节庆-列表模板' => 'festival_list',
- '大使馆-详细页' => 'embassy_info_detail',
- '城市-线路详细' => 'city_circuit',
- '专题模板(大)' => 'guide_big_series',
- '三峡游船' => 'yangtze',
- '城市article列表' => 'city_article_list',
- 'food列表' => 'food_list',
- 'FAQ模板' => 'faq_detail',
-);
+$config['templates_cht'] = [
+ '通用内容模板' => 'guide_info_detail',
+ '城市-列表模板' => 'city_info_list',
+ '城市-首页模板' => 'city_info_index',
+ '城市-首页模板[简]' => 'city_info_s_index',
+ '城市-景点列表模板' => 'city_info_attractions_list',
+ '城市-景点列表模板[简]' => 'city_info_s_attractions_list',
+ '城市-特色产品模板' => 'city_info_diytour',
+ '城市-一线城市首页' => 'city_info_index_one',
+ '省份-首页' => "area_info_index",
+ '省份-列表模板' => 'area_info_list',
+ '省份-通用内容模板' => 'area_info_detail',
+ '文化模板 [列表式]' => "culture_info_detail_just_list",
+ '文化模板 [单页式]' => 'culture_info_detail_one_page',
+ '文化模板 [导航式]' => 'culture_info_detail_with_category',
+ '信息专题模板' => 'guide_top_series',
+ '火车专题模板' => 'train_top_series',
+ '旅游攻略' => 'travel_story',
+ '节庆-详细模板' => 'festival_detail',
+ '节庆-列表模板' => 'festival_list',
+ '大使馆-详细页' => 'embassy_info_detail',
+ '城市-线路详细' => 'city_circuit',
+ '专题模板(大)' => 'guide_big_series',
+ '三峡游船' => 'yangtze',
+ '城市article列表' => 'city_article_list',
+ 'food列表' => 'food_list',
+ 'FAQ模板' => 'faq_detail',
+];
//产品管理板块模板
-$config['templates_product'] = array(
- '空白模板' => 'none',
-);
+$config['templates_product'] = [
+ '空白模板' => 'none',
+];
//产品管理板块模板
-$config['templates_product_gm'] = array(
- '空白模板' => 'none',
- '通用内容模板' => 'guide_info_detail',
- '城市-首页模板(GM)' => 'city_info_index',
- '文化模板 [单页式]' => 'culture_info_detail_one_page',
- '文化模板 [导航式]' => 'culture_info_detail_with_category',
- '信息专题模板' => 'guide_top_series',
- '列表式' => 'guide_info_list',
-);
+$config['templates_product_gm'] = [
+ '空白模板' => 'none',
+ '通用内容模板' => 'guide_info_detail',
+ '城市-首页模板(GM)' => 'city_info_index',
+ '文化模板 [单页式]' => 'culture_info_detail_one_page',
+ '文化模板 [导航式]' => 'culture_info_detail_with_category',
+ '信息专题模板' => 'guide_top_series',
+ '列表式' => 'guide_info_list',
+];
//产品管理板块模板(国际站使用)
-$config['templates_product_i'] = array(
- '空白模板(HTML构建工具)' => 'r_empty_container',
- '空白模板(新)' => 'r_tpl_empty_2017',
- '空白模板(旧)' => 'r_tpl_empty',
-);
+$config['templates_product_i'] = [
+ '空白模板(HTML构建工具)' => 'r_empty_container',
+ '空白模板(新)' => 'r_tpl_empty_2017',
+ '空白模板(旧)' => 'r_tpl_empty',
+];
//亚洲组专用模板
-$config['templates_ah'] = array(
- '空白模板' => 'none',
- '静态页面' => 'static',
-);
+$config['templates_ah'] = [
+ '空白模板' => 'none',
+ '静态页面' => 'static',
+];
// 出境游网站模板
-$config['templates_pgr'] = array(
- '空白模板' => 'guide_info_detail',
- '导航模板' => 'culture_info_detail_with_category',
-);
+$config['templates_pgr'] = [
+ '空白模板' => 'guide_info_detail',
+ '导航模板' => 'culture_info_detail_with_category',
+];
// 国际火车网站模板
-$config['templates_ts'] = array(
- '空白模板' => 'guide_info_detail',
- '信息导航模板' => 'train_series_with_category',
-);
+$config['templates_ts'] = [
+ '空白模板' => 'guide_info_detail',
+ '信息导航模板' => 'train_series_with_category',
+];
//翰特产品类型,Information控制器的get_products函数有直接调用,在这里增加了信息需要去控制器写相关操作代码
-$config['ProductType_HT'] = array(
- '景点' => 't',
-);
+$config['ProductType_HT'] = [
+ '景点' => 't',
+];
//区域类型对应字母
-$config['area_type'] = array(
- '机场' => 'a',
- '城市' => 'c',
- '大洲' => 'e',
- '节庆' => 'f',
- '团购' => 'g',
- '航空公司' => 'l',
- '国家' => 'n',
- '省份' => 'p',
- '火车站信息' => 'r',
- '新闻' => 's',
- '专题' => 't',
- '视频' => 'v',
- '大使馆' => 'y',
- '公民游' => 'z',
- '交换链接' => 'k',
- 'FAQ' => 'q',
-);
-
-$config['auhtor_task_type'] = array(
- '翻译' => 'translate',
- '修改' => 'modify',
- '审核' => 'review',
- '投稿' => 'contribute',
-);
-$config['auhtor_task_status'] = array(
- '编辑中' => 'edit', //新建任务或作者编辑
- '待审核' => 'review', //作者提交,待管理员审核
- '审核通过' => 'reviewed', //审核通过,未付款,审核不通过则把状态改为“编辑中”
- '完结' => 'complete', //已付款。任务结束
-);
-$config['auhtor_task_detail_status'] = array(
- '使用的' => 'used', //表示目前正在使用的记录,用于区别草稿、版本等其他状态。原因是用同一个表保存不同属性的记录
- '原始' => 'original', //原始任务信息备份
- '版本' => 'version', //多份,每提交审核一次生成一份
-);
+$config['area_type'] = [
+ '机场' => 'a',
+ '城市' => 'c',
+ '大洲' => 'e',
+ '节庆' => 'f',
+ '团购' => 'g',
+ '航空公司' => 'l',
+ '国家' => 'n',
+ '省份' => 'p',
+ '火车站信息' => 'r',
+ '新闻' => 's',
+ '专题' => 't',
+ '视频' => 'v',
+ '大使馆' => 'y',
+ '公民游' => 'z',
+ '交换链接' => 'k',
+ 'FAQ' => 'q',
+];
+
+$config['auhtor_task_type'] = [
+ '翻译' => 'translate',
+ '修改' => 'modify',
+ '审核' => 'review',
+ '投稿' => 'contribute',
+];
+$config['auhtor_task_status'] = [
+ '编辑中' => 'edit', //新建任务或作者编辑
+ '待审核' => 'review', //作者提交,待管理员审核
+ '审核通过' => 'reviewed', //审核通过,未付款,审核不通过则把状态改为“编辑中”
+ '完结' => 'complete', //已付款。任务结束
+];
+$config['auhtor_task_detail_status'] = [
+ '使用的' => 'used', //表示目前正在使用的记录,用于区别草稿、版本等其他状态。原因是用同一个表保存不同属性的记录
+ '原始' => 'original', //原始任务信息备份
+ '版本' => 'version', //多份,每提交审核一次生成一份
+];
//项目类型
-$config['project_types'] = array(
- 'base' => '绩效项目',
- 'dare' => '挑战项目',
- 'innovation' => '创新项目',
-);
+$config['project_types'] = [
+ 'base' => '绩效项目',
+ 'dare' => '挑战项目',
+ 'innovation' => '创新项目',
+];
//项目状态
-$config['project_state'] = array(
- 'notstart' => '还没开始',
- 'runing' => '开发中',
- 'complete' => '完成',
-);
+$config['project_state'] = [
+ 'notstart' => '还没开始',
+ 'runing' => '开发中',
+ 'complete' => '完成',
+];
//多媒体中心的本地图片路径
//上传图片是异步上网的,所以用此url进行本地预览
-$config['media_image_url'] = 'https://video.chtcdn.com/upload';
-$config['media_image_url2'] = 'http://video.chtcdn.com/upload';
-$config['media_image_url3'] = 'http://202.103.68.44/upload';
-$config['media_image_url_org'] = 'http://photo.chtcdn.com:3581/upload';
-$config['media_image_url_org2'] = 'https://media-center.mycht.cn/upload';
-$config['media_image_url_remote'] = 'http://photo.chtcdn.com/upload';
+$config['media_image_url'] = 'https://video.chtcdn.com/upload';
+$config['media_image_url2'] = 'http://video.chtcdn.com/upload';
+$config['media_image_url3'] = 'http://202.103.68.44/upload';
+$config['media_image_url_org'] = 'http://photo.chtcdn.com:3581/upload';
+$config['media_image_url_org2'] = 'https://media-center.mycht.cn/upload';
+$config['media_image_url_remote'] = 'http://photo.chtcdn.com/upload';
$config['media_image_url_remote2'] = 'http://116.251.217.48:3581/upload';
/* End of file config.php */
diff --git a/application/controllers/information.php b/application/controllers/information.php
index 97868112..74a76c32 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -1095,12 +1095,13 @@ class Information extends CI_Controller
$data_H1 = array();
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
$data_H1['author'] = ''; //获取作者信息
- $data_H1['meta_news_createdate'] = get_meta($information->ic_id, 'meta_news_createdate');
+ $data_H1['meta_news_createdate'] = $this->get_publish_date_in_6_month($information);
+ $author_url = '';
$author = $this->Operator_model->get_author_nikename($information->ic_author);
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);
+ $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)) {
@@ -1154,7 +1155,7 @@ 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'], 'author_url' => $data_H1['author_url']),
+ array('information' => $information, 'author_name' => $data_H1['author'], 'author_url' => $author_url),
true
);
$template = str_replace('', $article_structured_data_content, $template);
@@ -1485,6 +1486,26 @@ class Information extends CI_Controller
file_put_contents($html_path, $template, LOCK_EX);
}
+ // 六个月以前的文章不显示发布时间
+ private function get_publish_date_in_6_month($information)
+ {
+ $publish_date_in_6_month = NULL;
+ $meta_news_createdate = get_meta($information->ic_id, 'meta_news_createdate');
+
+ if (!empty($meta_news_createdate) && strtotime($meta_news_createdate)) {
+ $publish_date = new DateTime($meta_news_createdate, new DateTimeZone('UTC'));
+ $current_date = new DateTime('now', new DateTimeZone('UTC'));
+ $interval = $current_date->diff($publish_date);
+ $total_months = $interval->y * 12 + $interval->m;
+
+ if ($total_months < 6) {
+ $publish_date_in_6_month = $meta_news_createdate;
+ }
+ }
+
+ return $publish_date_in_6_month;
+ }
+
public function test_recommand()
{
$information = $this->Information_model->Detail($this->input->get('is_id'));
@@ -1835,13 +1856,13 @@ class Information extends CI_Controller
$data_H1 = array();
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
$data_H1['author'] = ''; //获取作者信息
- $data_H1['meta_news_createdate'] = get_meta($information->ic_id, 'meta_news_createdate');
+ $data_H1['meta_news_createdate'] = $this->get_publish_date_in_6_month($information);
$author = $this->Operator_model->get_author_nikename($information->ic_author);
-
+ $author_url = '';
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);
+ $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)) {
@@ -1862,7 +1883,7 @@ class Information extends CI_Controller
$article_structured_data_content = $this->load->view(
'mobile_first/gh-structured-data-article',
- array('information' => $information, 'author_name' => $data_H1['author'], 'author_url' => $data_H1['author_url']),
+ array('information' => $information, 'author_name' => $data_H1['author'], 'author_url' => $author_url),
true
);
$template = str_replace('', $article_structured_data_content, $template);
@@ -2224,14 +2245,17 @@ class Information extends CI_Controller
$breadcrumb_data = $this->Information_model->get_breadcrumb_data($information->is_id, $information->is_path, $group_map);
$ads_by_google = !empty(get_meta($information->ic_id, 'meta_google_ad_article'));
- $data['meta_news_createdate'] = get_meta($information->ic_id, 'meta_news_createdate');
+ $data['meta_news_createdate'] = $this->get_publish_date_in_6_month($information);
$data['ads_by_google'] = $ads_by_google;
$data['author'] = ''; //获取作者信息
+ $author_url = '';
$author = $this->Operator_model->get_author_nikename($information->ic_author);
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);
+ $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)) {
@@ -2244,7 +2268,7 @@ class Information extends CI_Controller
// 结构化标签:Article
$article_structured_data_content = $this->load->view(
$template_path . '-structured-data-article',
- array('information' => $information, 'author_name' => $data['author'], 'author_url' => $data['author_url']),
+ array('information' => $information, 'author_name' => $data['author'], 'author_url' => $author_url),
true
);
$template = str_replace('', $article_structured_data_content, $template);
@@ -2630,14 +2654,15 @@ class Information extends CI_Controller
$breadcrumb_data = $this->Information_model->get_breadcrumb_data($information->is_id, $information->is_path, $group_map);
$ads_by_google = !empty(get_meta($information->ic_id, 'meta_google_ad_article'));
- $data['meta_news_createdate'] = get_meta($information->ic_id, 'meta_news_createdate');
+ $data['meta_news_createdate'] = $this->get_publish_date_in_6_month($information);
$data['ads_by_google'] = $ads_by_google;
$data['author'] = ''; //获取作者信息
$author = $this->Operator_model->get_author_nikename($information->ic_author);
+ $author_url = '';
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);
+ $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)) {
@@ -2650,7 +2675,7 @@ class Information extends CI_Controller
// 结构化标签:Article
$article_structured_data_content = $this->load->view(
$template_path . '-structured-data-article',
- array('information' => $information, 'author_name' => $data['author'], 'author_url' => $data['author_url']),
+ array('information' => $information, 'author_name' => $data['author'], 'author_url' => $author_url),
true
);
$template = str_replace('', $article_structured_data_content, $template);
diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php
index 27f23a84..594647ce 100644
--- a/application/views/bootstrap3/information_edit.php
+++ b/application/views/bootstrap3/information_edit.php
@@ -354,6 +354,13 @@
return true;
}
+//JH 跳转测试页面
+function goto_jhtest_page() {
+ var site_url = 'https://proxy-www.japanhighlights.com';
+ $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val());
+ return true;
+}
+
//GH 跳转测试页面
function goto_ghtest_page() {
var site_url = 'https://proxy-www.globalhighlights.com';
@@ -758,6 +765,11 @@ if ($embody == 1) {
name="goto_test_page_button" target="_blank" title="查看测试页面">
+ ic_sitecode == 'jh') {?>
+
+
diff --git a/media/popselectpicture.php b/media/popselectpicture.php
index 65790e80..121bc9f6 100644
--- a/media/popselectpicture.php
+++ b/media/popselectpicture.php
@@ -94,6 +94,9 @@
case 'guilin':
$media_site_code = 'guilin';
break;
+ case 'hly':
+ $media_site_code = 'hly';
+ break;
default:
$media_site_code = 'ch';
}
diff --git a/wysiwyg/ckfinder/安装说明.txt b/wysiwyg/ckfinder/安装说明.txt
index 893a2776..76555862 100644
--- a/wysiwyg/ckfinder/安装说明.txt
+++ b/wysiwyg/ckfinder/安装说明.txt
@@ -28,4 +28,7 @@ mklink /D "D:\wwwroot-ct\uploader-file\trainspread\image" "D:\wwwroot-ct\origin-
//guilin
mklink /D "D:\wwwroot-ct\uploader-file\guilin\image" "D:\wwwroot-ct\guilinchina.net\image"
-mklink /D "D:\wwwroot-ct\uploader-file\guilin\pic" "D:\wwwroot-ct\guilinchina.net\pic"
\ No newline at end of file
+mklink /D "D:\wwwroot-ct\uploader-file\guilin\pic" "D:\wwwroot-ct\guilinchina.net\pic"
+
+//hly
+mklink /D "D:\wwwroot-ct\uploader-file\hly\image" "D:\wwwroot-ct\hualiyingtravel.com\image"
\ No newline at end of file