|
...
|
...
|
@@ -78,23 +78,22 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$templateInfo = $this->webTemplateInfo($settingInfo['template_id'],$source,$source_id,$is_custom);
|
|
|
|
if($templateInfo === false){
|
|
|
|
if($this->user['is_customized'] == BTemplate::SOURCE_VISUALIZATION){//处理定制页面初始数据
|
|
|
|
$resultCode = $this->isCustomizedPage($source,$source_id);//查看当前页面是否定制
|
|
|
|
if($resultCode !== true){
|
|
|
|
return ['html'=>$resultCode['html'],'template_id'=>$resultCode['template_id']];
|
|
|
|
$result = $this->isCustomizedPage($source,$source_id);//查看当前页面是否定制
|
|
|
|
if($result !== true){
|
|
|
|
return ['html'=>$result['html'],'template_id'=>$result['template_id']];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$mainInfo = $this->getCommonMain($source,$source_id);//获取中间部分代码
|
|
|
|
}else{
|
|
|
|
$mainInfo = [
|
|
|
|
'main_html'=>$templateInfo['main_html'],
|
|
|
|
'main_css'=>$templateInfo['main_css'],
|
|
|
|
];
|
|
|
|
$mainInfo = ['main_html'=>$templateInfo['main_html'], 'main_css'=>$templateInfo['main_css']];
|
|
|
|
}
|
|
|
|
$commonInfo = $this->getCommonPage($source,$source_id,$settingInfo['template_id']);//获取头部
|
|
|
|
if($templateInfo['type'] == BTemplate::ALL_HTML){//返回整个html代码
|
|
|
|
$type = $this->getCustomizedType($source, $source_id);//定制获取头部底部类型
|
|
|
|
$commonInfo = $this->getCommonPage(['template_id'=>0,'project_id'=>$this->user['project_id'],'type'=>$type]);//获取定制头部
|
|
|
|
$html = $this->handleAllHtml($commonInfo,$templateInfo['html']);
|
|
|
|
return ['html'=>$html,'template_id'=>$settingInfo['template_id']];
|
|
|
|
}
|
|
|
|
$commonInfo = $this->getCommonPage($source,$source_id,$settingInfo['template_id']);//获取头部
|
|
|
|
$html = $commonInfo['head_css'].$mainInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other'].
|
|
|
|
$commonInfo['head_html'].$mainInfo['main_html'].$commonInfo['footer_html'];
|
|
|
|
$html = $this->getHeadFooter($html);
|
|
...
|
...
|
@@ -117,7 +116,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :页面是否为定制页面
|
|
|
|
* @remark :页面是否为定制页面获取初始代码
|
|
|
|
* @name :watchProjectIsCustomized
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
...
|
...
|
|