답변 3개
답변에 대한 댓글 2개
이 함수를 호출할 때
thumb_width,thumb_height
를 파라미터로 넘길 겁니다. 그 부분을 찾아 보세요.
댓글을 작성하려면 로그인이 필요합니다.
PC버전 파일경로:
/skin/board/gallery/
폴드에서 list.skin.php
대략120줄
수정전 :
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
수정후:
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" style="width: 100%; height: auto;>';
모바일버전 파일경로:
/mobile/skin/boar/gallery/
폴드에서 list.skin.php
대략96줄
수정전:
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_mobile_gallery_width'].'" height="'.$board['bo_mobile_gallery_height'].'">';
수정후:
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="100%" height="auto" style="width: 100%; height: auto;>';
이지지파일이 자동으로 비율에따라 맞취집니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인

https://sir.kr/g5_theme/7495?sfl=wr_subject%7C%7Cwr_content&stx=atstore
[code]
if( $thumbnail_info = run_replace('get_list_thumbnail_info', array(), array('bo_table'=>$bo_table, 'wr_id'=>$wr_id, 'data_path'=>$data_path, 'edt'=>$edt, 'filename'=>$filename, 'filepath'=>$filepath, 'thumb_width'=>$thumb_width, 'thumb_height'=>$thumb_height, 'is_create'=>$is_create, 'is_crop'=>$is_crop, 'crop_mode'=>$crop_mode, 'is_sharpen'=>$is_sharpen, 'um_value'=>$um_value)) ){
return $thumbnail_info;
}
$tname = thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value);
if($tname) {
if($edt) {
// 오리지날 이미지
$ori = G5_URL.$data_path;
// 썸네일 이미지
$src = G5_URL.str_replace($filename, $tname, $data_path);
} else {
$ori = G5_DATA_URL.'/file/'.$bo_table.'/'.$filename;
$src = G5_DATA_URL.'/file/'.$bo_table.'/'.$tname;
}
} else {
return $empty_array;
}
$thumb = array("src"=>$src, "ori"=>$ori, "alt"=>$alt);
return $thumb;
}
[/code]