Skip to content

Commit

Permalink
fix #954 위젯 페이지에서 모바일용 페이지 설정이 없을 때 PC용 콘텐츠를 가져오면서 임의의 CSS를 추가하지 않도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Sep 4, 2014
1 parent 7283576 commit ca3c3be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/page/page.mobile.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,9 @@ function _getWidgetContent()
}
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;
}

Expand Down

0 comments on commit ca3c3be

Please sign in to comment.