diff --git a/application/config/config.php b/application/config/config.php index f04b8859..fa2b0f4e 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -920,6 +920,14 @@ $config['InfoType_ct'] = array( '一日游线路详细' => 'c_day_tour' ); +//AH站点用到了 +$config['InfoType_ah'] = array( + '国家信息' => 'country_info', + '区域信息' => 'area_info', + '国家信息列表页' => 'country_info_list', + '区域信息列表页' => 'area_info_list' +); + //可选模板 $config['templates'] = array( '通用内容模板' => 'guide_info_detail', diff --git a/application/controllers/information.php b/application/controllers/information.php index 9de4109c..2a982b4a 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -198,8 +198,9 @@ class Information extends CI_Controller if ($Structure->is_sitecode == 'ct') { $data['infoTypeList'] = $this->config->item('InfoType_ct'); - } else { - + } elseif($Structure->is_sitecode == 'ah'){ + $data['infoTypeList'] = $this->config->item('InfoType_ah'); + }else { switch ($data['rootInformation']->ic_ht_area_type) { case 'c': //城市 $data['infoTypeList'] = $this->config->item('InfoType_city'); diff --git a/application/third_party/htmlcompressor/views/amp-template/ah.php b/application/third_party/htmlcompressor/views/amp-template/ah.php index bf0ee52f..e7c66b5a 100644 --- a/application/third_party/htmlcompressor/views/amp-template/ah.php +++ b/application/third_party/htmlcompressor/views/amp-template/ah.php @@ -61,7 +61,8 @@