|
...
|
...
|
@@ -108,7 +108,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
if(empty($preg_html)){
|
|
|
|
$preg_html = "<main></main>";
|
|
|
|
}
|
|
|
|
$html = preg_replace('/<main>.*<\/main>/', $preg_html, $TemplateInfo['html']);
|
|
|
|
$html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', $preg_html, $TemplateInfo['html']);
|
|
|
|
var_dump($html);
|
|
|
|
die();
|
|
|
|
return $html;
|
...
|
...
|
|