正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -52,7 +52,11 @@ class CustomTemplateLogic extends BaseLogic | @@ -52,7 +52,11 @@ class CustomTemplateLogic extends BaseLogic | ||
| 52 | if(!empty($info['html'])){ | 52 | if(!empty($info['html'])){ |
| 53 | $info['is_renovation'] = 1; | 53 | $info['is_renovation'] = 1; |
| 54 | }else{ | 54 | }else{ |
| 55 | - $info['html'] = "<main>".$info['text']."</main>"; | 55 | + if(strpos($info['text'],"<main>") === false){ |
| 56 | + $info['html'] = "<main>".$info['text']."</main>"; | ||
| 57 | + }else{ | ||
| 58 | + $info['html'] = $info['text']; | ||
| 59 | + } | ||
| 56 | $info['html_style'] = "<style id='globalsojs-styles'></style>"; | 60 | $info['html_style'] = "<style id='globalsojs-styles'></style>"; |
| 57 | $info['is_renovation'] = 0; | 61 | $info['is_renovation'] = 0; |
| 58 | } | 62 | } |
-
请 注册 或 登录 后发表评论