正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -118,10 +118,10 @@ class CustomTemplateLogic extends BaseLogic | @@ -118,10 +118,10 @@ class CustomTemplateLogic extends BaseLogic | ||
| 118 | $bSettingInfo = $bSettingModel->read(['project_id'=>$this->user['project_id']]); | 118 | $bSettingInfo = $bSettingModel->read(['project_id'=>$this->user['project_id']]); |
| 119 | $info = $templateCommonModel->read(['template_id'=>$bSettingInfo['template_id'],'project_id'=>$this->user['project_id'],'type'=>$type]); | 119 | $info = $templateCommonModel->read(['template_id'=>$bSettingInfo['template_id'],'project_id'=>$this->user['project_id'],'type'=>$type]); |
| 120 | $data = [ | 120 | $data = [ |
| 121 | - 'head_html'=>$param['head_html'], | ||
| 122 | - 'head_css'=>$param['head_css'], | ||
| 123 | - 'footer_html'=>$param['footer_html'], | ||
| 124 | - 'footer_css'=>$param['footer_css'], | 121 | + 'head_html'=>characterTruncation($param['html'],'/<header\b[^>]*>(.*?)<\/header>/s'), |
| 122 | + 'head_css'=>characterTruncation($param['html'],'/<style id="globalsojs-header">(.*?)<\/style>/s'), | ||
| 123 | + 'footer_html'=>characterTruncation($param['html'],'/<footer\b[^>]*>(.*?)<\/footer>/s'), | ||
| 124 | + 'footer_css'=>characterTruncation($param['html'],'/<style id="globalsojs-footer">(.*?)<\/style>/s'), | ||
| 125 | 'other'=>str_replace('<header','',characterTruncation($param['html'],"/<link id=\"google-fonts-link\"(.*?)<header/s")), | 125 | 'other'=>str_replace('<header','',characterTruncation($param['html'],"/<link id=\"google-fonts-link\"(.*?)<header/s")), |
| 126 | ]; | 126 | ]; |
| 127 | if($info === false){ | 127 | if($info === false){ |
-
请 注册 或 登录 后发表评论