diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php index 172bfafc..edbb7e23 100644 --- a/application/controllers/welcome.php +++ b/application/controllers/welcome.php @@ -27,7 +27,7 @@ class Welcome extends CI_Controller { $data['groupList']=$this->Information_model->group_list(); - if($this->config->item('site_code')=='ch' || $this->config->item('site_code')=='ah' ){ + if(is_mobile_first() ){ $this->load->view('bootstrap3/header', $data); $this->load->view('bootstrap3/welcome'); diff --git a/application/helpers/info_helper.php b/application/helpers/info_helper.php index e1043955..59801a06 100644 --- a/application/helpers/info_helper.php +++ b/application/helpers/info_helper.php @@ -97,6 +97,19 @@ function is_sub_site() } } + +//是否是移动优先站点 +function is_mobile_first() +{ + $CI = &get_instance(); + $sitecode = $CI->config->item('site_code'); + if ($sitecode == 'ch' || $sitecode == 'ah') { + return true; + } else { + return false; + } +} + function add_meta($im_ic_id, $im_key, $im_value) { $CI = &get_instance(); diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index d5785f89..6b3d060f 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -463,33 +463,6 @@ }); - /* - var editor; - KindEditor.ready(function (K) { - editor = K.create('#ic_content', { - width: '100%', - height: '560px', - //fileManagerJson:'/js/kcfinder/browse.php', - //allowFileManager:true, - afterCreate: function() { - editor.readonly(ic_id, 'AMP_BODY_PC_STATUS') === 'yes' ? 'true' : 'false'); ?>); - }, - filterMode: false, - allowImageUpload: false, - items: [ - 'ace', '|', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', - 'italic', 'underline', 'strikethrough', 'lineheight', '|', - 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|', - 'clearhtml', 'removeformat', '|', 'plainpaste', 'wordpaste', '|', 'table', 'hr', 'image', 'template', 'link', 'unlink', 'mediacits', 'character', 'undo', 'source', 'fullscreen' - ], - afterChange: function () { - K('#display_count').html(getWordCount(editor.text())); - content_length = this.count('text'); - $("iframe.ke-edit-iframe").contents().find(".ke-content").css({"padding-right": "25px", "padding-top": "12px"}); - } - }); - }); - */ var editor; window.onload = function () { @@ -569,7 +542,7 @@