mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
fix #954 위젯 페이지에서 모바일용 페이지 설정이 없을 때 PC용 콘텐츠를 가져오면서 임의의 CSS를 추가하지 않도록 변경
This commit is contained in:
parent
05c30bce71
commit
58fdc3a084
1 changed files with 2 additions and 6 deletions
|
|
@ -84,13 +84,9 @@ class pageMobile extends pageView
|
|||
}
|
||||
else
|
||||
{
|
||||
preg_match_all('!(<img)([^\>]*)(widget=)([^\>]*?)(\>)!is', $this->module_info->content, $matches);
|
||||
$page_content = '';
|
||||
for($i=0,$c=count($matches[0]);$i<$c;$i++)
|
||||
{
|
||||
$page_content .= preg_replace('/ style\=\"([^\"]+)\" /i',' style="overflow:hidden;clear:both;margin:0 0 20px 0; _margin-right:10px;" ',$matches[0][$i])."\n\n";
|
||||
}
|
||||
$page_content = $this->module_info->content;
|
||||
}
|
||||
|
||||
return $page_content;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue