开放广告选项

hotfix/paypal-note
ycc 4 years ago
parent ecd1a3b365
commit cfae4d1241

@ -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');

@ -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();

@ -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(<?php echo(get_meta($information->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 @@
<ul id="treeDemo" name="treeDemo" class="ztree" style="height:1035px;overflow-x:auto;"></ul>
<ul class="nav nav-list">
<li class="nav-header">
<?php if($this->config->item('site_code')!=='ch'){ ?>
<?php if(!is_mobile_first()){ ?>
<a href="<?php echo site_url('welcome/create_infomation_urls/' . $information->is_id); ?>"
target="_blank" class="col-sm-5" title="批量更新静态化页面"><i
class="text-muted glyphicon glyphicon-retweet"></i></a>
@ -2075,7 +2048,7 @@
</div>
</div>
<?php if ($this->config->item('site_code') == 'ch') { ?>
<?php if (is_mobile_first()) { ?>
<script>
function show_ad_mate(mate_name, value) {
if ($('#' + mate_name).prop("checked")) {
@ -2091,10 +2064,10 @@
<div class="input-group">
<label class="checkbox col-xs-24"
style="font-weight: normal;margin-top:0;padding-left: 21px;">
<input type="checkbox" disabled name="meta_google_ad_content"
<input type="checkbox" name="meta_google_ad_content"
id="meta_google_ad_content"
onclick="show_ad_mate('meta_google_ad_content','show')" <?php echo empty(get_meta($information->ic_id, 'meta_google_ad_content')) ? '' : 'checked'; ?> />Match
Content 广告,1.31后开放
Content 广告
</label>
</div>
</div>
@ -2111,7 +2084,7 @@
</div>
<?php } ?>
<?php if ($this->config->item('site_code') !== 'ch') { ?>
<?php if (!is_mobile_first()) { ?>
<label>信息类型</label>
<select name="ic_type" id="ic_type" class="form-control" onselect="">
<?php

Loading…
Cancel
Save