|
...
|
...
|
@@ -108,7 +108,10 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
if(empty($preg_html)){
|
|
|
|
$preg_html = "<main></main>";
|
|
|
|
}
|
|
|
|
//删除内容
|
|
|
|
$html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', $preg_html, $TemplateInfo['html']);
|
|
|
|
//删除样式
|
|
|
|
$html = preg_replace('/<style id="vvvebjs-styles">(.*?)<\/style>/s', "<style id='vvvebjs-styles'></style>", $html);
|
|
|
|
return $html;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|