diff --git a/application/config/config.php b/application/config/config.php index 3aec1bec..8cb207d0 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -1070,6 +1070,12 @@ $config['templates_gm'] = array( '空白模板' => 'none', ); +//德语信息模板 +$config['templates_gh'] = array( + '通用内容模板' => 'guide_info_detail', + '带导航' => 'guide_with_nav' +); + // CHT 信息模板 $config['templates_cht'] = array( '通用内容模板' => 'guide_info_detail', diff --git a/application/controllers/information.php b/application/controllers/information.php index 4ed8490f..6e08b221 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -306,6 +306,11 @@ class Information extends CI_Controller $this->config->set_item('templates', $this->config->item('templates_i')); } + //可选的展示模板 + if (in_array($this->config->item('site_code'), array('gh_vac', 'gh_vc', 'gh_jp', 'gh_ru', 'gh_it'))) { + $this->config->set_item('templates', $this->config->item('templates_gh')); + } + if (in_array($this->config->item('site_code'), array('ah'))) { $this->config->set_item('templates', $this->config->item('templates_ah')); } @@ -1283,8 +1288,9 @@ class Information extends CI_Controller } } - public function test_get_feedback_by_city_name() { - + public function test_get_feedback_by_city_name() + { + $feedback_list = $this->Feedback_model->get_feedback_by_city_name('Bangkok', 5); var_dump($feedback_list); } diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 2dc5e7c3..4f5f3304 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -54,7 +54,8 @@ w.gh_template_name = w.gh_template_name || 'desktop'; })(window); - +
@@ -73,6 +74,68 @@