갤러리 리스트 섬네일 크기
본문
갤러리 리스트 썸네일 세로 크기를 늘리고 싶은데 height 값을 늘리려면 어디를 손대야 되나요? ㅠㅠ
<?php
// notice
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
} else {
$img_content = '<span class="no_image">no image</span>';
}
echo $img_content;
?>
<?php } else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
} else {
$img_content = '<span class="no_image">no image</span>';
}
echo $img_content;
}
?>
답변 1
다음과 같이 해 볼 수 있을 것 같습니다.
우선 관이자페이지 -> 게시판 관리에서 이미지 가로, 세로 크기 지정해보세요
아래 코드 부분에서 bo_gallery_height 변수를 조정하면 됩니다.
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
현재 코드에서는 $board['bo_gallery_height']를 사용하고 있으므로. 이 변수를 찾아서 원하는 크기로 수정하면 됩니다.
예를들어 height를 500으로 늘리고 싶다면 다음과 같이 하시면 됩니다.
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], 500, false, true);
!-->!-->