作者 lyh

gx

@@ -139,7 +139,7 @@ class BTemplateLogic extends BaseLogic @@ -139,7 +139,7 @@ class BTemplateLogic extends BaseLogic
139 $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id']]); 139 $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id']]);
140 if($commonInfo !== false){ 140 if($commonInfo !== false){
141 $html = $commonInfo['head_css']."<style id='globalsojs-styles'></style>".$commonInfo['footer_css'].$commonInfo['other']. 141 $html = $commonInfo['head_css']."<style id='globalsojs-styles'></style>".$commonInfo['footer_css'].$commonInfo['other'].
142 - $commonInfo['head_html'].$this->getProductModule().$commonInfo['footer_html']; 142 + $commonInfo['head_html']."<main>{$this->getProductModule()}</main>".$commonInfo['footer_html'];
143 }else{ 143 }else{
144 $html = preg_replace('/<style id="globalsojs-styles">(.*?)<\/style>/s', "<style id='globalsojs-styles'></style>", $homeTemplateInfo['html']); 144 $html = preg_replace('/<style id="globalsojs-styles">(.*?)<\/style>/s', "<style id='globalsojs-styles'></style>", $homeTemplateInfo['html']);
145 $html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main>{$this->getProductModule()}</main>", $html); 145 $html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main>{$this->getProductModule()}</main>", $html);