From 05a5615e95dc9bb560be2cd83fe24b02b5fc8c65 Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 2 Mar 2018 13:42:18 +0800 Subject: [PATCH] =?UTF-8?q?pgr=20=E5=87=BA=E5=A2=83=E6=B8=B8=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config/config.php | 5 +++++ application/controllers/information.php | 3 +++ application/views/bootstrap3/header.php | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index bac17f35..d9a4772c 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -958,6 +958,11 @@ $config['templates_ah'] = array( '静态页面' => 'static' ); +// 出境游网站模板 +$config['templates_pgr'] = array( + '空白模板' => 'guide_info_detail' + ,'导航模板' => 'culture_info_detail_with_category' +); //翰特产品类型,Information控制器的get_products函数有直接调用,在这里增加了信息需要去控制器写相关操作代码 $config['ProductType_HT'] = array( diff --git a/application/controllers/information.php b/application/controllers/information.php index 8caa36e8..95351fde 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -187,6 +187,9 @@ class Information extends CI_Controller { if (in_array($this->config->item('site_code'), array('ah'))) { $this->config->set_item('templates', $this->config->item('templates_ah')); } + if (in_array($this->config->item('site_code'), array('pgr'))) { + $this->config->set_item('templates', $this->config->item('templates_pgr')); + } //信息区域类型 switch ($data['rootInformation']->ic_ht_area_type) { diff --git a/application/views/bootstrap3/header.php b/application/views/bootstrap3/header.php index 65a5bcbf..313d1f73 100644 --- a/application/views/bootstrap3/header.php +++ b/application/views/bootstrap3/header.php @@ -4,9 +4,9 @@ 信息平台 - - - + + +