mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
fix #954 위젯 페이지에서 모바일용 페이지 설정이 없을 때 PC용 콘텐츠를 가져오면서 임의의 CSS를 추가하지 않도록 변경
This commit is contained in:
parent
7283576eac
commit
ca3c3be4ae
1 changed files with 2 additions and 6 deletions
|
|
@ -84,13 +84,9 @@ class pageMobile extends pageView
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
preg_match_all('!(<img)([^\>]*)(widget=)([^\>]*?)(\>)!is', $this->module_info->content, $matches);
|
$page_content = $this->module_info->content;
|
||||||
$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";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $page_content;
|
return $page_content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue