正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论