移动优先模板调整

ct-mobile-first
ycc 5 years ago
parent c20e4e2905
commit 7cf0c771d4

@ -623,6 +623,22 @@ class Information extends CI_Controller
return $this->load->view($mobile_first_template_path.'-h1', $data, TRUE); return $this->load->view($mobile_first_template_path.'-h1', $data, TRUE);
} }
function call_mobile_template_NEXT($template_path,$is_parent_id,$ic_author,$ic_title,$ic_photo){
//how to plan
//best time to visit
//top things to do
//hotel , where to stay
$data['infocategory']=$this->Information_model->Detail($is_parent_id);//信息所属分类获取信息父级节点url title
$data['author']=$this->Operator_model->get_author_nikename($ic_author);//获取作者信息
$data['ic_title']=$ic_title;
$data['ic_photo']=$ic_photo;
return $this->load->view($template_path.'-next', $data, TRUE);
}
//更新静态文件 //更新静态文件
//不用参数提交的原因是可能url带有特殊字符CI会报错 //不用参数提交的原因是可能url带有特殊字符CI会报错
public function update_cache($static_html_url = false, $delete_only = false) public function update_cache($static_html_url = false, $delete_only = false)

@ -421,7 +421,7 @@ class Information_model extends CI_Model {
function group_list(){ function group_list(){
$this->init(); $this->init();
$this->search =' AND is_level<=1 '; $this->search =' AND is_level<=1 ';
$this->orderBy = ' ORDER BY is1.is_level ASC, is1.is_sort ASC,is1.is_path ASC '; $this->orderBy = ' ORDER BY is1.is_level ASC, is1.is_sort ASC,ic.ic_title ASC,is1.is_path ASC ';
return $this->GetList(); return $this->GetList();
} }

@ -1470,7 +1470,7 @@ foreach ($infoTypeList as $key => $value) {
<?php <?php
}?> }?>
</select> </select>
<?php if ($rootInformation->ic_ht_area_type == 'pd') {?>
<div id="bind_product_code"> <div id="bind_product_code">
<br/> <br/>
<div class="input-group"> <div class="input-group">
@ -1479,7 +1479,7 @@ foreach ($infoTypeList as $key => $value) {
<a href="javascript:void(0);" class="input-group-addon" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_product_code', $('#meta_product_code').val())"><i class="text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove"></i></a> <a href="javascript:void(0);" class="input-group-addon" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_product_code', $('#meta_product_code').val())"><i class="text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove"></i></a>
</div> </div>
</div> </div>
<?php }?>
<label style="width:48px;">模板</label> <label style="width:48px;">模板</label>
<select name="ic_template" id="ic_template" class="form-control"> <select name="ic_template" id="ic_template" class="form-control">
<?php <?php

@ -1,9 +1,11 @@
<div class=topcontent> <div class=topcontent>
<?php if(!empty($ic_photo)) { ?>
<div class="infotopimage"> <div class="infotopimage">
<img src="<?php echo !empty($ic_photo)?'https://images.chinahighlights.com'.$ic_photo:'https://data.chinahighlights.com/image/tour-detail/harbin/harbin-ice-snow-festival-2020-info-top.jpg'; ?>" <img src="<?php echo 'https://images.chinahighlights.com'.$ic_photo; ?>"
alt="<?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?>" class="img-responsive"> alt="<?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?>" class="img-responsive">
</div> </div>
<?php } ?>
<div class="infocategory"><?php echo !empty($infocategory)?$infocategory->ic_url_title:'infocategory'; ?></div> <div class="infocategory"><?php echo !empty($infocategory)?$infocategory->ic_url_title:'infocategory'; ?></div>
<h1><?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?></h1> <h1><?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?></h1>

@ -154,7 +154,9 @@
<!--@CUSTOM-CONENT@--> <!--@CUSTOM-CONENT@-->
</div> </div>
<div id="main_content_next">
<!--@ARTICLENEXT@-->
</div>
</div> </div>
<!--PC底部--> <!--PC底部-->

Loading…
Cancel
Save