모바일 썸네일 생성시 width 계산 코드 제거
This commit is contained in:
@ -80,27 +80,8 @@ function get_view_thumbnail($contents, $thumb_width=0)
|
|||||||
{
|
{
|
||||||
global $board, $config;
|
global $board, $config;
|
||||||
|
|
||||||
if (!$thumb_width) {
|
if (!$thumb_width)
|
||||||
$dvc_width = intval($_COOKIE['device_width']);
|
$thumb_width = $board['bo_image_width'];
|
||||||
if(G5_IS_MOBILE && $dvc_width) {
|
|
||||||
// 썸네일 width 설정
|
|
||||||
$thumb_width = 320;
|
|
||||||
|
|
||||||
if($dvc_width > $board['bo_image_width']) {
|
|
||||||
$thumb_width = $board['bo_image_width'];
|
|
||||||
} else {
|
|
||||||
if($dvc_width >= 1000) {
|
|
||||||
$thumb_width = 1000;
|
|
||||||
} else if($dvc_width >= 760 && $dvc_width < 1000) {
|
|
||||||
$thumb_width = 760;
|
|
||||||
} else if($dvc_width >= 480 && $dvc_width < 760) {
|
|
||||||
$thumb_width = 480;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$thumb_width = $board['bo_image_width'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// $contents 중 img 태그 추출
|
// $contents 중 img 태그 추출
|
||||||
$matchs = get_editor_image($contents);
|
$matchs = get_editor_image($contents);
|
||||||
|
|||||||
Reference in New Issue
Block a user