正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -557,8 +557,8 @@ class BTemplateLogic extends BaseLogic | @@ -557,8 +557,8 @@ class BTemplateLogic extends BaseLogic | ||
| 557 | //字符串截取 | 557 | //字符串截取 |
| 558 | $param['head_html'] = characterTruncation($html,'/<header\b[^>]*>(.*?)<\/header>/s'); | 558 | $param['head_html'] = characterTruncation($html,'/<header\b[^>]*>(.*?)<\/header>/s'); |
| 559 | $param['footer_html'] = characterTruncation($html,'/<footer\b[^>]*>(.*?)<\/footer>/s'); | 559 | $param['footer_html'] = characterTruncation($html,'/<footer\b[^>]*>(.*?)<\/footer>/s'); |
| 560 | - $param['head_css'] = characterTruncation($html,'/<style id="globalsojs-header">(.*?)<\/style>/s'); | ||
| 561 | - $param['footer_css'] = characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<\/style>/s'); | 560 | + $param['head_style'] = characterTruncation($html,'/<style id="globalsojs-header">(.*?)<\/style>/s'); |
| 561 | + $param['footer_style'] = characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<\/style>/s'); | ||
| 562 | $footer_other = str_replace('<header','',characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<header/s')); | 562 | $footer_other = str_replace('<header','',characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<header/s')); |
| 563 | $param['other'] = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', '', $footer_other); | 563 | $param['other'] = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', '', $footer_other); |
| 564 | return $this->success($param); | 564 | return $this->success($param); |
-
请 注册 或 登录 后发表评论