fix #954 위젯 페이지에서 모바일용 페이지 설정이 없을 때 PC용 콘텐츠를 가져오면서 임의의 CSS를 추가하지 않도록 변경

This commit is contained in:
bnu 2014-09-04 19:54:01 +09:00
parent 05c30bce71
commit 58fdc3a084

View file

@ -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;
}